Hi, i’m trying to set fcgid use to a virtual server instead of the regular mod_php, i’ve set in website options “PHP script execution mode” as “FCGId”, it creates the files, the config, but in phpinfo i still read that’s run as apache module.
Any help? I’ve also tried to reload/restart apache…
Thanks for the reply, yes i’ve set it in “Server Configuration -> Website Options -> PHP script execution mode”, also using CGI mode doesn’t work. I had to remove the mod_php5 module in apache.
It seems that you can’t use module or fcgid for each virtualhost.
I am also running testing on a new ubuntu 10.04 server fresh install. I too am having this problem. I have created 3 virtual servers. 2 are top level servers and one is a sub-server. The problem I am having is only with the sub-server. The Server Configuration> Website Options> PHP script execution mode> is set to “FCGId (run as virtual server owner)” this was set by virtualmin when I created the Virtual server and is what I want. However the php scripts running on the sub-server are running as www-data.
I’ve reached the same conclusion too. That’s what i’ve done to get it working…
Also for me it would be nice to don’t put the fcgi wrapper inside the home dir, cause user can change it every time he wants and so he can run system commands inside of it. Right?
The fcgi wrappers should be setup with the “immutable” attribute. That a filesystem attribute that prevents any modification to the file until that attribute is removed. And only the root user can remove it.
With that in mind, it shouldn’t be possible for a user to modify or delete the fcgi wrapper files.
Hi Eric
I want to run this past you before I report it to jamie. I think I have narrowed down the problem I am having with FCGId.
Explanation
Goto Virtualmin> System Settings> Server Templates> Default Settings For Sub-Servers> form “Edit template section:” select “Apache website”. The first option is “Directives and settings for new websites” with two radio button choices “From default settings” and “Apache directives below …”. The radio button next to “From default settings” is selected and most of the page is greyed out. Which I assumed meant that the information on the Sub-Servers Apache website page was replaced with the information from Apache website default template settings page.
My first question is, is that assumption supposed to be correct?
Because what happens is the Sub-Server is being created with the information that has been greyed out on the Sub-Servers Apache website page.