I setup webmin and virtualmin GPL as package (ubuntu 11.04).
Every needed packages are installed for FCGID mode, but never run with this mode.
here is a phpinfo sample
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php5/apache2
Loaded Configuration File /etc/php5/apache2/php.ini
on my virtual server I’m using FCGID
I disabled mod php5 in apache mod settings, and now it’s running fcgid.
With an other server I was able to have choice for mod_php or mod_fcgid.
The problem that you’re seeing is an issue that comes up on Ubuntu, but is automatically corrected by the installer
However, if you wish to do a manual installation, what you’d need to do is edit /etc/apache2/conf.d/php5.conf, comment out the two SetHandler lines, and then restart Apache.
I’m unfortunately not sure what might cause that… it’s possible you’re seeing an issue with that particular distro, which isn’t one we’ve done any testing on.
My suggestion would be to use one of the Ubuntu LTS releases if getting this working is important, as we’d be able to better support you in that case.
If you do figure it out though, by all means let us know and we’ll add the problem to the OS notes for Ubuntu.
I noticed that i am experiencing the same issue. I thought my sites where running in FCGID but apparently they are not. I think the issue occurred after updating using “apt-get update” but i`m not sure.
Im running: Ubuntu 10.04.2 LTS \n \l and Virtualmin version 3.84.gpl GPL
I just found this link but it does not seem to fix my issues.
So to clarify what steps you’ve taken – what we’d suggest is reviewing /etc/apache2/mods-available/php5.conf, comment out the SetHandler lines, and then restart Apache.
What is different when running under CGI/FCGID is that, whenever PHP code is executed, Apache will spawn a new PHP process that runs the PHP code as your username, and then exits.
Selecting Apache mod_php (run as Apache’s user) tells me Server API Apache 2.0 Handler
Selecting FCGId (run as virtual server owner) tells me Server API = CGI/FastCGI
finally, I try again after some days, and I comment the SetHandler lines again.
Before I commented out as I could see in this thread but didn’tchange anything.