Hello All, Havng read a lot of articles about FastCGI, I decided to use this module to speed up processing of php and RoR applications. I use CPanel as a hosting panel. And I use Apache with suexec support as a web server. After compilling apache php and mod_fcgid I faced the problem of determination PHP directives for our server users. Tasks of PHP directives don't work with .htaccess file, I wouldn't change the variables in global php.ini file. I have looked through the documentation and I discovered that the way to php.ini file can be pointed via variable PHPRC. I've wrote wrapper which installs PHPRC before php execution. Everything works perfect if the full path to php.ini file in PHPRC is set up, e.g.:
[ttyp0:hr4] [13:17] [EMAIL PROTECTED]> cat /usr/local/cpanel/cgi-sys/php5 #!/bin/bash export PHPRC=~ssitest/public_html/php.ini exec /usr/local/cpanel/cgi-sys/php5.bin But I don't want to make a new wrapper and change PHPRC variable after each new user creation. Is it able to get such data as user's DOCUMENT_ROOT to use this data for PHPRC var value, e.g.: export PHPRC=$DOCUMENT_ROOT/php.ini exec /usr/local/cpanel/cgi-sys/php5.bin -- Regards, Igor R. WebHostingBuzz.com ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Mod-fcgid-users mailing list Mod-fcgid-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users