One PHP.ini for all folders

Here you can find tutorials and notes for server-side maintenance/configuration

One PHP.ini for all folders

Postby lik » Tue Jan 27, 2009 7:51 am

If you want to use only one php.ini file for all your sites you need to create .htaccess file in main directory (/public_html/.htaccess) and put into variable:
================
SetEnv PHPRC /location/to_dir/containing/phpinifile
================
For example:
SetEnv PHPRC /home/user/public_html/php.ini


Note: This solution highly depends on PHP mode.
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Return to Server Side Actions