PHP include auserhalb des basedirs, wie?

Apache, Lighttpd, nginx, Cherokee
Post Reply
big_nicky
Posts: 9
Joined: 2003-09-06 20:33
 

PHP include auserhalb des basedirs, wie?

Post by big_nicky »

Warning: Unknown(): open_basedir restriction in effect. File(/var/www/includes/banner.php) is not within the allowed path(s): (/var/www/web1/) in Unknown on line 0

Warning: Unknown(/var/www/includes/banner.php): failed to open stream: Operation not permitted in Unknown on line 0

was muss da noch in die apache conf, damit man alles in var/www/includes/ includen darf? am basedir soll nichts geändert werden...

thx schonmal :)
mem
Posts: 45
Joined: 2003-12-22 11:09
 

Re: PHP include auserhalb des basedirs, wie?

Post by mem »

Je VHOST (oder ohne php_admin_value in php.ini angeben):

Code: Select all

php_admin_value open_basedir /var/www/username/,/var/www/includes/
big_nicky
Posts: 9
Joined: 2003-09-06 20:33
 

Re: PHP include auserhalb des basedirs, wie?

Post by big_nicky »

thx, man musses aber mit nem : trennen ;)
mem
Posts: 45
Joined: 2003-12-22 11:09
 

Re: PHP include auserhalb des basedirs, wie?

Post by mem »

Oh, danke ebenfalls :)
Post Reply