1.5.090412: Turn VirtualHost to mod_fcgid

FreeWebs is an Artica Feature that enables build websites or web userspaces.

1.5.090412: Turn VirtualHost to mod_fcgid

New postby admin » Sun Sep 04, 2011 10:37 am

The 1.5.090412 version allow you to use both mod_php or mod_fcgid on FreeWebs.
mod_fcgid allows you to turn php execution by using a specific user.
So when according a Website to an user, this user can handle files trough FTP without deal with www-data main apache account.
AN another benefit is that each website can handle it's own php configuration so the behavior can be totally independant from the main apache service.

if you have just updated your version trough 1.5.090412,you need to install necessaries modules.
Periodically Artica checks necessaries modules but if you need to test it quickly, do

Code: Select all
apt-get install apache2-suexec
apt-get install libapache2-mod-fcgid
/usr/share/artica-postfix/bin/process1 --force


Once installed, you need to enable mod_fcgi globally.
This not turn all websites to fcgid but allow some of them to activate mod fcgid.
So mod_php and mod_fcgid will be executed at the same time, some of them will use mod_php, some of them mod_fcgid

Click on the FreeWeb section and choose the Parameters tab check the "Activate FastCGI interface module" box
2011-09-04_122133.png
2011-09-04_122133.png (84.69 KiB) Viewed 4554 times


Create or choose your website.
Activate the module by checking the enable checkbox.
Define appropriate settings for the module.
Take a look of the Edit link under the "PHP Values" you are able to modify the php values...

Have fun.
2011-09-04_122259.png
2011-09-04_122259.png (102.44 KiB) Viewed 4554 times
User avatar
admin
Site Admin
 
Posts: 11943
Joined: Wed Oct 17, 2007 7:59 am
Location: France

Re: 1.5.090412: Turn VirtualHost to mod_fcgid

New postby chris_c_ » Sun Sep 04, 2011 10:52 am

Excellent!

By the way... this (php running as user ID of the freeweb owner) is required for SugarCRM to function correctly on a shared server (intranet, internet).

Sugar needs this to feel like it's running in a dedicated/VPS-like execution environment.

The reason? Sugar applies permissions under the php process to dynamically created files in its cache directory.

When running as mod_php, these "cache" files are impossible for the apache user to read later (the 2nd time the file is served to a web user, 3rd time, etc..) because of permissions.

So Sugar requires the php user be the same as the public_html (freeweb) directory user.
chris_c_
 
Posts: 794
Joined: Wed Oct 20, 2010 7:15 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A Geek


Return to FreeWebs

Who is online

Users browsing this forum: No registered users and 1 guest

cron