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

Problems with php includes outside of the site directories

Discussion in 'Plesk for Linux - 8.x and Older' started by paleck, Jun 24, 2008.

  1. paleck

    paleck Guest

    0
     
    I have been fighting for two days to get sites on the server to be able to access the php pear libraries in /usr/share/pear. As far as I can tell the permission are correct to allow apache access to the files. I have overridden the default include path, safemode include path and the open_basdir directive.

    This is the message I get(The only change I have made from the logs is removing my IP and replacing the sitename with X):
    Text of test.php minus the php code tags, to keep from pissing off the forum software:
    Running the same code from the command line works fine as the apache user(I temporarily gave it a shell long enough to attempt to execute it as apache, then turned its shell off again). I have also tried providing the full path to the file in the require_once statement, but it still had the same error messages.

    To me it almost seems like the apache is running in some type of jailed configuration to prevent access to the rest of the system, but I have never had a plesk server have this problem before.

    Currently I am running on Plesk 8.2.0-rhel5.build82070706.15.

    Any help would be much appreciated.
     
  2. wsani

    wsani Silver Pleskian

    28
    40%
    Joined:
    Mar 4, 2005
    Messages:
    509
    Likes Received:
    0
    How? Did you configure httpd.include for the site?
     
  3. paleck

    paleck Guest

    0
     
    I know better than to edit the http.include file. I have used vhosts.conf to override the defaults and even tried editting it the php.ini with it. The php.ini file shows the directories in the include path as does the error message in my original post.
     
  4. wsani

    wsani Silver Pleskian

    28
    40%
    Joined:
    Mar 4, 2005
    Messages:
    509
    Likes Received:
    0
    Oh no, I didn't mean to question you. Just inquisitive. I take it that you ran /usr/local/psa/admin/bin/websrvmng -a ?
     
  5. paleck

    paleck Guest

    0
     
    Yep, I didn't think you were, just letting you know that I didn't put it in the place I'm not supposed to.
     
Loading...