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 08-08-2004, 04:33 PM   #1
ridertech
Member
 
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85

Rep: Reputation: 15
Apache/PHP - failed to open stream


I running Apache 2 and PHP 5 on a Debian host and everything seems to be working, except PHP...

I created the standard info file:
<? phpinfo(); ?>

But I get the following errors:

Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Warning: Unknown: Failed opening '/web/mysite/info.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0

Any idea what is wrong? I can't seem to find the cause of this problem.
 
Old 08-10-2004, 09:38 PM   #2
cli_man
Member
 
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428

Rep: Reputation: 30
what are the permissions for that file and the directory it is in? You can try typing in the following:

chmod 755 /web/mysite
chmod 755 /web/mysite/info.php

That should give you loose enought permissions for it to work, also your info.php file is in the /web/mysite directory right? If not then your path for this site in your httpd.conf file is set wrong.
 
  


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
Open source IDE for PHP, MySQL, Apache, Red Hat 9 lothario Red Hat 2 06-02-2010 02:27 AM
php error failed to open stream mhatre kedar Linux - Newbie 2 03-20-2005 03:47 PM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
Stream mpw with apache?Hi thee alaios Linux - Networking 2 11-27-2003 03:29 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


All times are GMT -5. The time now is 02:17 PM.

Main Menu
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