LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache Virtualhosts + PHP error (https://www.linuxquestions.org/questions/linux-software-2/apache-virtualhosts-php-error-349442/)

critical 08-02-2005 11:33 PM

Apache Virtualhosts + PHP error
 
Hey guys :D

I'm getting a weird error message in PHP

Warning: Failed opening '/home/pakage/public_html/index.php' for inclusion (include_path='.:/usr/share/pear') in Unknown on line 0

I have a virtual host pointing to /home/pakage/public_html

I can access index.html but I get that error when running index.php

any ideas?

thanks guys and girls =)

guideweb 08-03-2005 12:05 AM

Re: Apache Virtualhosts + PHP error
 
Quote:

Originally posted by critical
Hey guys :D

I'm getting a weird error message in PHP

Warning: Failed opening '/home/pakage/public_html/index.php' for inclusion (include_path='.:/usr/share/pear') in Unknown on line 0
Strange ....
Maybe you have set 'auto_prepend_file' or 'auto_append_file' in your php.ini ?
If you do make sure file is readable.
Quote:


I have a virtual host pointing to /home/pakage/public_html

I can access index.html but I get that error when running index.php
If you want to load by default 'index.php' you can add in your httpd.conf (under /etc/httpd/conf/)
DirectoryIndex index.php index.html (and the other index file you want to load)
Quote:

any ideas?

thanks guys and girls =) [/B]

critical 08-03-2005 12:16 AM

Thanks for replying guideweb :D

I checked those 2 settings, they were uncommented but no set, I commented them out and it still doesn't work

I also checked and the file is readable and executable by all users

Thanks for the tip about the DefaultDocument, I had that set... the only reason I have 2 index's is for testing php...

Any more ideas? :confused:

critical 08-03-2005 12:21 AM

oooh! found the problem

I doubled checked the permissions and I had set the directory right but it didn't pass the settings down :rolleyes:

Anyways it's working find now!

Thanks for your help! :D


All times are GMT -5. The time now is 01:05 AM.