Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Make Apache use mod_fcgid for php globally?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
planet-admin
Apprentice
Apprentice


Joined: 27 Mar 2004
Posts: 213
Location: Boise, ID

PostPosted: Tue Mar 06, 2007 4:26 am    Post subject: [solved] Make Apache use mod_fcgid for php globally? Reply with quote

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
View user's profile Send private message
planet-admin
Apprentice
Apprentice


Joined: 27 Mar 2004
Posts: 213
Location: Boise, ID

PostPosted: Mon Mar 19, 2007 11:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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