最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php.ini - "open_basedir restriction" but project is within the allowed paths

programmeradmin12浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

Strange behavior, but solved just restarting the mysql service:

service mysql restart
发布评论

评论列表(0)

  1. 暂无评论