LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Problem with DirectoryIndex and PHP not processing (https://www.linuxquestions.org/questions/debian-26/problem-with-directoryindex-and-php-not-processing-261534/)

t3kn0lu5t 12-01-2004 08:17 PM

Problem with DirectoryIndex and PHP not processing
 
I have just installed Sarge, apache2, and php4 (with libapache2-mod-php4)

my DirectoryIndex list index.php, and when I go to http://www.mysite.com/index.php PHP will process the page like normal. However when I go to http://www.mysite.com, it sends me the php source in a file as opposed to processing it first.

Anyone experienced this? or know what I can do to solve my problem?

Thanks

Wells 12-01-2004 08:55 PM

Re: Problem with DirectoryIndex and PHP not processing
 
Quote:

Originally posted by t3kn0lu5t
I have just installed Sarge, apache2, and php4 (with libapache2-mod-php4)

my DirectoryIndex list index.php, and when I go to http://www.mysite.com/index.php PHP will process the page like normal. However when I go to http://www.mysite.com, it sends me the php source in a file as opposed to processing it first.

Anyone experienced this? or know what I can do to solve my problem?

Thanks

This might sound insane, but I did find a reference to this exact problem for you. Take a look at this webpage:

http://httpd.apache.org/docs/misc/FA...set-servername

It appears that if you do not have your webserver properly named, it does not know how to handle the redirection that you are describing above....

t3kn0lu5t 12-01-2004 10:47 PM

Thanks for the info.
Unfortunately the symptoms aren't exactly the same, and my servername is set correctly.

I haven't had this problem with any other OS.. I know it's not the OS but some configuration that's deeper than my knowledge


help please

debian_dummy 12-02-2004 01:17 AM


Dumb answer removed

Wells 12-02-2004 06:03 AM

One other thing to check is to see if there is anything in /etc/apache{2}/conf.d that might be causing some issues. I know that php can sometimes put configuration files in there as well.

t3kn0lu5t 12-02-2004 12:33 PM

Well, after hours last night of toiling, rebooting, reinstalling all to no avail, I woke up this morning and it 'just works'. Thanks to those who tried to help, must have just been one of those weird unsolvable occurances. :)


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