Comments on How To Set Up Apache2 With mod_fcgid And PHP5 On Ubuntu 10.04

How To Set Up Apache2 With mod_fcgid And PHP5 On Ubuntu 10.04 This tutorial describes how you can install Apache2 with mod_fcgid and PHP5 on Ubuntu 10.04. mod_fcgid is a compatible alternative to the older mod_fastcgi. It lets you execute PHP scripts with the permissions of their owners instead of the Apache user.

3 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Anonymous

In case you want to serve static files alongside your PHP files and want to keep web1 and web2 separated from each other, you can add the www-data user (Apache server) to the web1 and web2 groups.

As long as files from either web1 or web2 have group read rights, the Apache server can read and serve the files while keeping web1 and web2 unable to read each others files.

Do not forget to restart the Apache webserver.

Hope this helps someone.

By: Loggy

This seems the best way to do it so then a single script owned by www-data:www-data can be installed in each document root to php with the appropriate changes to the apache2 config file.

I will try this with fcgi because I really don't want to have to change all the sites-enabled virtual host configuration files.  And it *should* improve the memory usage as well.

[All my users have group www-data with permissions 0640, 0660, 2751 or 2771 as appropriate.  This way there is no visibility across users.]


 

 

 

 

By: Anonymous

Why is this article about mod_fastcgi, when the title states that it is about mod_fcgid?.  Either change the tite, or the content to reflect what the title says - otherwise, you will be wasting peoples time