PHP config
Hi,
I have a little problem with my linux server. I have php (v. 4.0) installed on the server (SuSe Linux 7.3). But when i want to use a php script the following error message comes: Warning: Faild opening '/home/getcrazy/browsertest.php' for inclusion (include_path='.:/usr/share/php') in Unknown on line 0 The php was installed with the linux distribution. I think the include_path is wrong. But where can i change it? I have searched in the php.ini and httpd.conf but have not found something. When i type which php it comes the following: /usr/bin/php Thanks for help greetings DATA |
usually you have to set the 'document root' in /etc/httpd/httpd.conf to the path where you want to execute your php files. Some lines below that there is sth like >directory where you place the same. But the error message is kinda bewildering. give it a try. or is there an 'include' in your php script?
|
...to make that clear: if you set the doc root to '/home/getcrazy' you can browse the script with http://linux.local/yourscript.php, maybe replace linux.local by localhost
bye jens |
actually... i don't think that's what the problem is, jens. :-)
it looks like apache is trying to load the php binary from /usr/share/. i'm almost positive it's located in /usr/bin/. a fix for this *might* be to create a symlink to the php binary located in the /usr/bin/ dir. try this: ln -s /usr/bin/php /usr/share/php that way when apache tried to load the php binary from /usr/share/ it will be redirected to /usr/bin/. i could be way off though, but with any luck this was a quick fix. :-) |
it works
Hi,
thanks to all your help. It finally works (with the solution of Syncrm). greetings data |
All times are GMT -5. The time now is 11:02 AM. |