LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-20-2005, 04:18 PM   #1
mhatre kedar
LQ Newbie
 
Registered: Jan 2004
Location: mumbai, India
Posts: 9

Rep: Reputation: 0
php error failed to open stream


i just compiled and installed php-4.3.10 on apache 1.3.3
and included include_path='.:/usr/local/lib/php'
in php.ini as suggested while compiling

however i get the following message while trying phpinfo();







Warning: Unknown(/www/htdocs/1.php): failed to open stream: Permission denied in Unknown on line 0

Warning: (null)(): Failed opening '/www/htdocs/1.php' for inclusion (include_path='.:/usr/local/lib/php/') in Unknown on line 0


i also tried on apache 2.0 and php-5
i am running fedora core 3
also tried configtest but nothing in that too...
please help

also when i remove include_path in php.ini
it gives same error

and changing include_path also changes the path in servers output i.e for inclusion(inclue_path="new_path")
 
Old 03-20-2005, 04:39 PM   #2
t3gah
Member
 
Registered: Dec 2004
Distribution: SuSE, RedHat, ubuntu, Debian
Posts: 734

Rep: Reputation: 30
Are you following the HOWTO's at The Linux Documentation Project?

http://www.tldp.org/HOWTO/
 
Old 03-20-2005, 04:47 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
What are the permissions on 1.php - is it readable by the webserver?
 
  


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
Failed to open device gt68xxLlibusb 004:002 invalid arguments error message radatan71 Linux - Hardware 1 10-24-2005 09:07 PM
Apache/PHP - failed to open stream ridertech Linux - Software 1 08-10-2004 10:38 PM
Error: failed dependencies installing php-4.3.5 on redhat linux 9 lynsue Linux - Software 3 04-30-2004 05:50 AM
PHP/IMAP open error heartache. costasm Programming 2 04-08-2004 05:06 PM
Couldn't open stream {localhost/imap : 143} in /usr/local/httpd/htdocs/view.php nshoboul Linux - Newbie 12 10-24-2003 03:23 PM


All times are GMT -5. The time now is 06:17 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration