I had a project working right, but suddenly I'm getting a Database connection error. Looking at the Apache2 logs I can see these lines:
PHP Warning: file_exists(): open_basedir restriction in effect. File(STYLESHEETPATH/index.php) is not within the allowed path(s): (...) in /webDir/project/wp-includes/template.php on line 467
PHP Warning: file_exists(): open_basedir restriction in effect. File(TEMPLATEPATH/index.php) is not within the allowed path(s): (...) in /webDir/project/wp-includes/template.php on line 470
But in php.ini
the project IS within the allowed paths:
open_basedir = /webDir/project:/usr/share/phpmyadmin
So what could be happening here?
I had a project working right, but suddenly I'm getting a Database connection error. Looking at the Apache2 logs I can see these lines:
PHP Warning: file_exists(): open_basedir restriction in effect. File(STYLESHEETPATH/index.php) is not within the allowed path(s): (...) in /webDir/project/wp-includes/template.php on line 467
PHP Warning: file_exists(): open_basedir restriction in effect. File(TEMPLATEPATH/index.php) is not within the allowed path(s): (...) in /webDir/project/wp-includes/template.php on line 470
But in php.ini
the project IS within the allowed paths:
open_basedir = /webDir/project:/usr/share/phpmyadmin
So what could be happening here?
Share Improve this question edited Jun 15, 2020 at 8:21 CommunityBot 1 asked Aug 3, 2014 at 12:40 ManoloManolo 5331 gold badge9 silver badges27 bronze badges1 Answer
Reset to default 0Strange behavior, but solved just restarting the mysql
service:
service mysql restart