Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-20-2005, 03: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, 03:39 PM   #2
Registered: Dec 2004
Distribution: SuSE, RedHat, ubuntu, Debian
Posts: 734

Rep: Reputation: 30
Are you following the HOWTO's at The Linux Documentation Project?
Old 03-20-2005, 03:47 PM   #3
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

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


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

All times are GMT -5. The time now is 10:26 AM.

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