Getting HTTP Auth to play nice with PHP run under FastCGI
* @license PHP License v3.01 */
TextSnippets > fastcgi >php >
Post code snippets. Sort by tags, people, people and tags, etc..
? Earlier | 6 items total | Later ? |
* @license PHP License v3.01 */
fastcgi.server = ( ".fcgi" => ( "localhost" => ( "socket" => "/tmp/textdrive-new.socket", "bin-path" => "/users/home/website/web/public/dispatch.fcgi", "bin-environment" => ( "RAILS_ENV" => "production" ) ) ), ".php" => ( "localhost" => ( "socket" => "/tmp/textdrive-php5-fcgi.socket", "bin-path" => "/usr/local/www/cgi-bin/php5-fcgi", "bin-environment" => ( "PHP_FCGI_CHILDREN" => "4", "PHP_FCGI_MAX_REQUESTS" => "5000" ) ) ) )
./configure --prefix=/usr/local/php5-fcgi --enable-fastcgi --enable-force-cgi-redirect --disable-cli --enable-memory-limit --with-layout=GNU --with-regex=php make sudo make install
fastcgi.server = ( ".php" => ( "localhost" => ( "socket" => "/tmp/php5-fcgi.socket", "bin-path" => "/usr/local/php5-fcgi/bin/php" ) ) )
./configure --enable-memory-limit --with-layout=GNU --with-config-file-scan-dir=/usr/local/etc/php --disable-all --enable-libxml --with-libxml-dir=/usr/local --enable-spl --with-regex=php --disable-cli --enable-force-cgi-redirect --enable-fastcgi
mv /usr/local/bin/php /usr/local/bin/php-fcgi
fastcgi.server = ( ".php" => ( "localhost" => ( "socket" => "/home/jah/tmp/jah-php5-fcgi.socket", "bin-path" => "/usr/local/www/cgi-bin/php5-fcgi -c /home/jah/etc/php.ini", "bin-environment" => ( "PHP_FCGI_CHILDREN" => "4", "PHP_FCGI_MAX_REQUESTS" => "5000" ) ) ) )
> /usr/local/www/cgi-bin/php5-fcgi -v PHP 5.0.3 (cgi-fcgi) (built: Dec 30 2004 22:44:32)
FastCgiIpcDir /usr/local/www/fcgi_ipc/tmp AddHandler fastcgi-script .fcgi FastCgiSuexec /usr/local/sbin/suexec FastCgiConfig -singleThreshold 100 -killInterval 300 -autoUpdate -idle-timeout 240 -pass-header HTTP_AUTHORIZATION Options ExecCGI SetHandler fastcgi-script
SuexecUserGroup ${USER} ${GROUP} ScriptAlias /php-fastcgi/ ${HOME}/php-fastcgi/ AddType application/x-httpd-fastphp .php Action application/x-httpd-fastphp /php-fastcgi/php5-fcgi
#!/bin/sh PHPRC="/usr/local/etc" export PHPRC PHP_FCGI_CHILDREN=8 export PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=5000 export PHP_FCGI_MAX_REQUESTS exec /usr/local/www/cgi-bin/php5-fcgi
? Earlier | 6 items total | Later ? |