LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache/PHP - failed to open stream (https://www.linuxquestions.org/questions/linux-software-2/apache-php-failed-to-open-stream-215092/)

ridertech 08-08-2004 04:33 PM

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.

cli_man 08-10-2004 09:38 PM

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.


All times are GMT -5. The time now is 11:49 PM.