Skip to content

Instantly share code, notes, and snippets.

@deanet
Created December 5, 2011 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deanet/1433829 to your computer and use it in GitHub Desktop.
Save deanet/1433829 to your computer and use it in GitHub Desktop.
php.ini suPHP apache trouble maker
[phprc_paths]
;Uncommenting these will force all requests to that handler to use the php.ini
;in the specified directory regardless of suPHP_ConfigPath settings.
application/x-httpd-php=/usr/local/lib/
application/x-httpd-php4=/usr/local/php4/lib/
application/x-httpd-php5=/usr/local/lib/
[phprc_paths]
;Uncommenting these will force all requests to that handler to use the php.ini
;in the specified directory regardless of suPHP_ConfigPath settings.
application/x-httpd-php=/usr/local/lib/
application/x-httpd-php4=/usr/local/php4/lib/
application/x-httpd-php5=/usr/local/lib/
root@venus [/home/rottwe/www]# php -c php.ini t.php | grep global
auto_globals_jit => On => On
register_globals => On => On
root@venus [/home/rottwe/www]#
http://www.sant-media.co.uk/2010/02/whmcpanel-per-user-php-ini-under-apache-2-x-and-suphp/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment