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 |
Re: Problem with DirectoryIndex and PHP not processing
Quote:
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.... |
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 |
Dumb answer removed |
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.
|
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. |