Problem with DirectoryIndex and PHP not processing
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.