View previous topic :: View next topic |
Author |
Message |
planet-admin Apprentice

Joined: 27 Mar 2004 Posts: 213 Location: Boise, ID
|
Posted: Tue Mar 06, 2007 4:26 am Post subject: [solved] Make Apache use mod_fcgid for php globally? |
|
|
Is there a way in apache to make it use mod_fcgid instead of mod_php for php globally instead of on a per directory basis? I was wondering if setting a handler in the main httpd.conf would do the trick?
Thanks,
Michael _________________ Michael S. Moody
Sr. Systems Engineer
Global Systems Consulting
Web: http://www.GlobalSystemsConsulting.com
Last edited by planet-admin on Mon Mar 19, 2007 11:10 pm; edited 1 time in total |
|
Back to top |
|
 |
planet-admin Apprentice

Joined: 27 Mar 2004 Posts: 213 Location: Boise, ID
|
Posted: Mon Mar 19, 2007 11:09 pm Post subject: |
|
|
Solved....here are the details:
Install mod_fcgid
Make sure it's turned on in /etc/conf.d/apache2 (-D FCGID)
Open your httpd.conf, add:
Code: |
<Location />
AddHandler fcgid-script .php
FCGIWrapper /usr/bin/php-cgi .php
</Location>
|
Make sure that your
DirectoryIndex index.html index.html.var index.php
is correct, or you'll get 403 errors. _________________ Michael S. Moody
Sr. Systems Engineer
Global Systems Consulting
Web: http://www.GlobalSystemsConsulting.com |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|