PHP Not working after Virtualmin Install

3 posts / 0 new
Last post
#1 Sun, 04/13/2008 - 14:00
pschubitzke

PHP Not working after Virtualmin Install

I installed Virtualmin over the top of an existing LAMP install. I setup a virtual server and everything seemed to be fine.

When I go to my newly created virtual site, my browser tries to download index.php instead of displaying it.

DirectoryIndex looks like it's set correctly in the site configuration in /etc/apache2/sites-enabled/mysite.conf.

Help!?!

Mon, 04/14/2008 - 13:34
razmirz

I've got the same issue however my server has been working fine since I got it. suddenly I have a problem? seems a little odd I'm using gpl on Debian etch php5 etc

Mon, 04/14/2008 - 14:42
Joe
Joe's picture

You haven't told us anything about your system by saying "LAMP". We're pretty much all running a LAMP system here (LAMP=Linux, Apache, MySQL, PHP/Perl/Python).

Anyway, presumably during installation your PHP configuration was changed to something incorrect.

If you want PHP to run under mod_php (rather than mod_fcgid+mod_suexec), you need:

LoadModule php5_module modules/libphp5.so
AddHandler php5-script .php
AddType text/html .php

In addition to the DirectoryIndex line you already have.

--

Check out the forum guidelines!

Topic locked