• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

open_basedir problem

B

BojanK

Guest
Hello,

I'm using Ubuntu server and Plesk 10.0.1 latest version, and since this morning out of the sudden whiteout any changes made to server for past 20 days my php sites are not working. Once I have enabled display errors in php.ini file located at /etc/php5/apache2/php.ini file I sow this error message

Warning: Unknown: open_basedir restriction in effect. File(/var/www/vhosts/neseco.co/httpdocs/index.php) is not within the allowed path(s): (/var/www/vhosts/neseco.co/httpdocs/:/tmp/) in Unknown on line 0

Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0

Fatal error: Unknown: Failed opening required '/var/www/vhosts/neseco.co/httpdocs/index.php' (include_path='.:') in Unknown on line 0

Now I tried any reasonable solution.

1. Adding vhost.conf file to each domain and setting open_basedir none option
2. Modifying php.ini file

It is strange that every website that I'm hosting is not working, Plesk Panel is the only thing that is working under php.

Can anyone suggest as I don't know where and what to look for anymore.

Thank you!
 
Try to configure this domain for run PHP in Application CGI... This setting is in Web Site and Domain and click in domain name you can change php runtime...

I attempt your news! Have a nice day!
 
Problem solved!!

Marco

Thank you, you have saved me the time and trouble, now everything works PERFECT!!

Thank you again.
 
It's a Ubuntu Package BUG!

yesterday night I update php5-common and libapache2-mod-php5 to 5.2.4-2ubuntu5.13....

all php were in blank ...

this is the bug: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/701765


I manually install 5.2.4-2ubuntu5.12 to fix the server.
this morning ubuntu has updated the package to .2.4-2ubuntu5.14 solving the problem but 1and1 official repository still have .2.4-2ubuntu5.13 version....
 
yesterday night I update php5-common and libapache2-mod-php5 to 5.2.4-2ubuntu5.13....

all php were in blank ...

this is the bug: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/701765


I manually install 5.2.4-2ubuntu5.12 to fix the server.
this morning ubuntu has updated the package to .2.4-2ubuntu5.14 solving the problem but 1and1 official repository still have .2.4-2ubuntu5.13 version....

thanks for that, it was realy an ubuntu problem. bug is fixed now.
 
Back
Top