开发者

PHP & CodeIgniter Error: open_basedir restriction in effect

开发者 https://www.devze.com 2022-12-30 21:48 出处:网络
open_basedir re开发者_如何学Cstriction in effect. File(/var/www/vhosts/domain.com) is not within the allowed path(s): (/var/www/vhosts/domain.com/httpdocs:/tmp)
open_basedir re开发者_如何学Cstriction in effect. File(/var/www/vhosts/domain.com) is not within the allowed path(s): (/var/www/vhosts/domain.com/httpdocs:/tmp)

How do I securely fix this? This is preventing me from listing and creating directories outside of the current directory. What I mean by securely is that I don't want to remove a piece of code from a configuration file and potentially make it easier for hackers to do whatever.


well, if you want your open_basedir to be /var/www/vhosts/domain.com/, just make it /var/www/vhosts/domain.com/

/var/www/vhosts/domain.com:/tmp
0

精彩评论

暂无评论...
验证码 换一张
取 消