Question about mod_fcgid FastCgi
Hi,
I have many question about mod_fcgid related to Cpanel configurations but the principal one is
How can I have different fcgid values per user/account/site?
I need to have different values per user for these fast cgi parameters
[url=http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidbusytimeout]mod_fcgid - Apache HTTP Server
[url=http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidoutputbuffersize]mod_fcgid - Apache HTTP Server
actually fcgidoutputbuffersize is great to test if the values are working or not
I did some experiments
in my php.conf (I left the # just for safe copy paste and test)
but these two sentences produce different errors after
in my fcgid wrapper I tried this (that should be perfect)
where [[ -f ~/php.conf ]] && source ~/php.conf is the line that should load or include the fcgid settings if the file exists but this file should be included outside the wrapper I guess. Other of my questions is how can I see after a "ps aux" what script is being executed I am trying to add manually in the wrapper [[ -f ~/php.flag ]] && itgadd=" -d file=$0:$1:$2:$3:$4"; but it only show php5:::: I hope is easy to understand Thanks!
LoadModule fcgid_module modules/mod_fcgid.so
#
# FcgidOutputBufferSize 0
#
#
# FcgidOutputBufferSize 0
#
but these two sentences produce different errors after
service httpd restartin my fcgid wrapper I tried this (that should be perfect)
itgadd=' -d noflag ';
#source $dir/incl.sh
[[ -f ~/php.flag ]] && itgadd=" -d file=$0:$1:$2:$3:$4";
[[ -f ~/php.conf ]] && source ~/php.conf
[[ -f ~/php.ini ]] && exec /usr/bin/php -c ~/php.ini -d wrapper3 $itgadd
[[ -f ~/public_html/php.ini ]] && exec /usr/bin/php -c ~/public_html/php.ini -d wrapper2 $itgadd
exec /usr/bin/php -d wrapper1 $itgaddwhere [[ -f ~/php.conf ]] && source ~/php.conf is the line that should load or include the fcgid settings if the file exists but this file should be included outside the wrapper I guess. Other of my questions is how can I see after a "ps aux" what script is being executed I am trying to add manually in the wrapper [[ -f ~/php.flag ]] && itgadd=" -d file=$0:$1:$2:$3:$4"; but it only show php5:::: I hope is easy to understand Thanks!
-
I am a bit closer I edited the /usr/local/apache/conf/httpd.conf for example ... ServerName itgabs.com ServerAlias www.itgabs.com DocumentRoot /home/itgc0034/public_html UseCanonicalName Off Options -ExecCGI -Includes RemoveHandler cgi-script .cgi .pl .plx .ppl .perl ## User itgc0034 # Needed for Cpanel::ApacheConf UserDir disabled UserDir enabled itgc0034 FcgidOutputBufferSize 100 ... and in another FcgidOutputBufferSize 0
after a service httpd restart the two sites work with different buffer settings I am testing with Chrome default settings and with a php script like this one (must work good with a default php.ini) [PHP]'.$cwb.''."\n"; //echo "\r\n"; flush(); ob_flush(); usleep(100000); } ?>[/PHP] In itgabs.com I can see the numbers coming on the fly but and in the another in blocks of 100 bytes. So my question now is "how can I include a apache conf per user/virtualhost that can read the ~fcgid.conf so special accounts have different fastcgi settings?"
0 -
[quote="ITGabs, post: 1481462">So my question now is "how can I include a apache conf per user/virtualhost that can read the ~fcgid.conf so special accounts have different fastcgi settings?"
You can find information on customizing the Apache configuration file in our documentation: [url=http://docs.cpanel.net/twiki/bin/view/EasyApache/EasyApacheCustomDirectivesOutsideVirtualHost]EasyApache: Custom Directives Outside of a VirtualHost Tag [url=http://docs.cpanel.net/twiki/bin/view/EasyApache/EasyApacheChangesWithinVirtualHost]EasyApache: Changes Contained Within a VirtualHost Directive0
Please sign in to leave a comment.
Comments
2 comments