problems with Apache using mod_php

7 posts / 0 new
Last post
#1 Thu, 03/01/2012 - 15:29
wirgen

problems with Apache using mod_php

Hello, there is a problem. Perhaps it is already covered in the forum, but I have not found a solution specifically for you. I'm trying to configure Apache with mod_php. libphp5.so connected, but the problem is that referring to php-file is simply output to the screen without processing. If, however, refer to the file by default (index.php), it is downloading. P.S. sorry for bad english, I'm from Belarus. thanks

Thu, 03/01/2012 - 17:32
andreychek

Howdy,

By default, Virtualmin used FCGID.

You can change a domain from FCGID to mod_php by clicking Server Configuration -> Website Options, and changing the PHP Execution Mode to mod_php.

-Eric

Fri, 03/02/2012 - 01:28 (Reply to #2)
wirgen

I've already changed the settings on mod_php

Fri, 03/02/2012 - 06:53
ronald
ronald's picture

did you do a yum install php-mysql if you are on Centos or
apt-get install php-mysql for Debian ?

Sat, 03/03/2012 - 14:35 (Reply to #4)
wirgen

i'm install apache and mysql with lamp. all works do on Ubuntu 11.04

Sat, 03/03/2012 - 15:47
wirgen

Opened up new facts. I tried to reinstall the system. Ubuntu 11.04 + Lamp + Webmin + Virtualmin. The site of the default /var/www php is processed normally, but a virtual hosting, which is created using Virtualmin, just go download the file. In the logs there is nothing about this. It seems that just are not processed files with the extension php.

Sun, 03/04/2012 - 13:04
andreychek

Howdy,

Well, remember that Virtualmin doesn't support Ubuntu 11.04... you can see a list of supported distros here:

http://www.virtualmin.com/os-support.html

Although it should be possible to get things working on Ubuntu 11.04, it might be a lot of work... you may have more luck with Ubuntu 10.04 LTS.

-Eric

Topic locked