3.78 PHP mode : Apache mod_php as default !?

8 posts / 0 new
Last post
#1 Wed, 04/28/2010 - 19:24
julien04

3.78 PHP mode : Apache mod_php as default !?

Hi,

Thx to the 3.78 release, we can now choose the PHP exec mode.

Note: my websites were added before update. So they should be in "classic cgi mode", called "CGI wrapper (run as virtual server owner)" in the new settings.

But on all sites, it is "Apache mod_php (run as Apache's user)" !!

Is it an update bug ? Or I don't understand.

Thx,

Julien

Wed, 04/28/2010 - 23:49
andreychek

Howdy,

Actually, Virtualmin GPL used mod_php by default -- if you wanted to use cgi or fcgid, you'd have needed to manually configure that.

So in Server Configuration -> Website Options, I'd expect to see it list "mod_php" there for the PHP execution mode... and you can change it to CGi or fcgid if you like.

-Eric

Thu, 04/29/2010 - 05:36 (Reply to #2)
julien04

In GPL < 3.78, I thought it worked in cgi since the suexec method was used.

I was wrong? There was no security between websites ?

Thu, 04/29/2010 - 10:57 (Reply to #3)
andreychek

Prior to 3.78, the GPL version used mod_php by default.

Unfortunately, mod_php is not able to utilize suexec. In order to gain the benefits of suexec and use cgi or fcgid, you'd have needed to set it up manually.

With 3.78, you can use Virtualmin GPL to change that now :-)

-Eric

Thu, 04/29/2010 - 08:48
BossHog

Howdy, Eric, this brought to my mind an interesting question. For those of us who use V-min(GPL) that have customized the php, by following the "how to"(/home/{user}/etc/php....), will the 3.78-1 update cause a conflict?

IIRC, this is the post that I followed to get the setup needed: http://www.virtualmin.com/node/8462

Thanks Joe

Thu, 04/29/2010 - 10:55 (Reply to #5)
andreychek

What I'd probably recommend doing, is setting up a test domain, or at least using one that's not mission critical, and test switching it before trying the others.

I'm not quite sure how it'll effect things, so best to try it first on a non-critical site :-)

-Eric

Thu, 04/29/2010 - 23:02
julien04

I can't run an existing website in Fcgid, it shutdown the site.

When I'll have time to check, I'll try to find why. (for now, return to mod_php and it work).

Mon, 01/29/2018 - 02:09
andrewwinkler
andrewwinkler's picture

Is there a way to set the default php execution mode to CGI so that the administrator does not need to to change it for every single virtual server?

Andrew Winkler