1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

including php file

Discussion in 'Plesk for Linux - 8.x and Older' started by w110fr, Oct 28, 2007.

  1. w110fr

    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))).
    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.
  2. tiramisu

    tiramisu Guest

    looks like the problem in php file and php itself