Submitted by expro on Fri, 12/18/2009 - 05:21
Hi,
I tried to force some virtual-serves to switch to cgi from fcgid. The virtual servers were first created using template with fcgid enabled. Then I wanted them to use cgi. I created new template with cgi enabled. I then edited virtual-servers and assigned them template with cgi but with no effect. The same situation with modifing fcgid template to use cgi instead. Still with no luck. At the end I had to manualy create php5.cgi wrapper in cgi-bin and edit apache file with virtualhost deinitions.
Regards, Filip.
Status:
Closed (fixed)
Comments
Submitted by andreychek on Fri, 12/18/2009 - 08:53 Comment #1
Howdy -- I suspect the issue is that there's going to be some settings that may need to be manually applied once the Virtual Server is created... changing the Server Template may not be able to pick up on all the settings that you have, and convert that to what they should be, without risking some breakage.
In your case, new Virtual Servers using your CGI-based template should indeed be created with settings to use CGI, but moving a server over to that template isn't likely to affect that particular setting.
To change that after a Virtual Server is created -- you could go into Server Configuration-> Website Options, and choose CGI from within there for that particular Virtual Server.
You can also change that from the command line, using something like:
virtualmin modify-web --domain name example.com --mode cgi
Submitted by expro on Mon, 12/21/2009 - 02:33 Comment #2
Yup, it works! Thanks andreychek;-)
Submitted by andreychek on Mon, 12/21/2009 - 08:50 Comment #3
Glad to hear it, thanks for the update!
Submitted by Issues on Mon, 01/04/2010 - 13:19 Comment #4
Automatically closed -- issue fixed for 2 weeks with no activity.