Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Hi is it possible? My script not work with mod_fcgid, but work with suphp so I would like run one domain with suphp and other with mod_fcgid+xcache on one server. I don't want run every sites with suphp because xcache don't work with it.

share|improve this question

1 Answer 1

it is possible look at this : http://brinet.net/enable-fastcgi-per-site

First configure your server to use suPHP using cpanel and enable mod_fcgid with easyphp

edit /usr/local/apache/conf/php.conf

add module and wrapper directive

# Fastcgi configuration for PHP5
LoadModule fcgid_module modules/mod_fcgid.so
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php

create/edit /usr/local/cpanel/cgi-sys/php5 containing

#!/bin/sh

# If you customize the contents of this wrapper script, place
# a copy at /var/cpanel/conf/apache/wrappers/php5
# so that it will be reinstalled when Apache is updated or the
# PHP handler configuration is changed

exec /usr/bin/php

make executable and owned by root chown root:wheel /usr/local/cpanel/cgi-sys/php5 chmod 755 /usr/local/cpanel/cgi-sys/php5

Now add a handler in your .htaccess for .php and fcgid-script

restart apache

/etc/init.d/httpd restart
share|improve this answer
    
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. –  Ward Aug 23 '12 at 9:06
    
good point , will do –  maazza Aug 23 '12 at 9:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.