LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-19-2002, 07:52 AM   #1
DATA_OK
LQ Newbie
 
Registered: Sep 2001
Location: Stuttgart, Germany
Distribution: Debian (2.6 Kernel)
Posts: 25

Rep: Reputation: 15
Question 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
 
Old 02-19-2002, 01:10 PM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,532

Rep: Reputation: 132Reputation: 132
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?
 
Old 02-19-2002, 01:19 PM   #3
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,532

Rep: Reputation: 132Reputation: 132
...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
 
Old 02-20-2002, 11:55 AM   #4
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
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. :-)
 
Old 02-21-2002, 03:07 AM   #5
DATA_OK
LQ Newbie
 
Registered: Sep 2001
Location: Stuttgart, Germany
Distribution: Debian (2.6 Kernel)
Posts: 25

Original Poster
Rep: Reputation: 15
Talking it works

Hi,

thanks to all your help. It finally works (with the solution of Syncrm).

greetings data
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP parse error in config.inc.php.in Confusedious Linux - Software 2 11-03-2005 06:08 AM
php parseing config irvken Linux - Software 3 12-09-2004 03:08 PM
Can't find php config? gakom Mandriva 2 12-01-2004 08:34 AM
PHP config HeDZ Linux - Networking 1 05-16-2003 06:01 PM
php config? knueven7 Linux - Software 3 03-21-2003 04:58 PM


All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration