• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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