• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

including php file

W

w110fr

Guest
os : fedoraC4
plesk :8.0
A problem detected during includes files
*. Php only server with plesk (no
problem with server without plesk (kimsufi(OVH))).
Example:
Root:
Index.php
Function (file): fn.php, db.php

In index.php
Include 'function/fn.php';

In fn.php:
Include 'db.php'; // Parameter connection

----> Connection error:
Access denied for user 'apache' @ 'localhost' (using Password: NO) :confused:

If one replaces --- include 'db.php' -- by
--- Include './Function/db.php' --
The problem was resolved.

Thanks for your help.
Sincerely,
 
Back
Top