• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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