include_path Problem auf RedHat9 Apache 2 und PHP 4.2.2

Apache, Lighttpd, nginx, Cherokee
Post Reply
thefreeman
Posts: 84
Joined: 2003-04-24 18:58
Location: Bayern
 

include_path Problem auf RedHat9 Apache 2 und PHP 4.2.2

Post by thefreeman »

Folgemde Fehlermeldung bekomme ich, wenn ich in meiner PHP-Datei einen Include versuche:
Warning: open_basedir restriction in effect. File is in wrong directory in /home/www/web1/html/scripts/sendmail.php on line 9

Warning: Failed opening 'connect.inc.php' for inclusion (include_path='.:/usr/share/php') in /home/www/web1/html/scripts/sendmail.php on line 9
Warum? Der Eintrag in der PHP.ini ist doch correct, oder?

thx :)
superuser1
Posts: 291
Joined: 2003-11-26 18:43
Location: earth
 

Re: include_path Problem auf RedHat9 Apache 2 und PHP 4.2.2

Post by superuser1 »

Hi...
Warning: open_basedir restriction in effect. File is in wrong directory in /home/www/web1/html/scripts/sendmail.php on line 9
Da steht ja schon alles - open_basedir ist bei dir gesetzt, entweder in einem VHost per php_admin_value oder in der php.ini selbst.

Füge den entsprechenden Pfad hinzu und es sollte funktionieren.

:roll:
thefreeman
Posts: 84
Joined: 2003-04-24 18:58
Location: Bayern
 

Re: include_path Problem auf RedHat9 Apache 2 und PHP 4.2.2

Post by thefreeman »

basedir?

Versteh ich nicht. :(
丨-丨4rp3r
Posts: 16
Joined: 2003-12-07 15:53
 

Re: include_path Problem auf RedHat9 Apache 2 und PHP 4.2.2

Post by 丨-丨4rp3r »

dein open_basedir ist "/home/www/web1/html" d.h. er kann nur auf darunterliegende Ordner zugreifen.
Da du anscheinend Confixx einsetzt, solltest du im Adminbereich im HTTP Spezial dein open_basedir ändern.

Code: Select all

php_admin_value open_basedir {pfad}
thefreeman
Posts: 84
Joined: 2003-04-24 18:58
Location: Bayern
 

Re: include_path Problem auf RedHat9 Apache 2 und PHP 4.2.2

Post by thefreeman »

Aha. Versuch ich glech mal...

Danke
Post Reply