php.ini domain specific settings

elkabong

Verified User
Joined
Apr 28, 2005
Messages
36
Hello,

Can you tell me what is the best practice for creating php.ini settings specific to a particular domain. I can't seem to find the information on forum or sitehelper.

The reason is that I am in the process of installing Modern Bill for mydomain.com and it requires the following php.ini settings:

* open_basedir = no value
* memory_limit = at least 64M
* safe_mode = off
* allow_url_fopen = on
* register_globals = off or on
* register_long_arrays = on

Regards,

Elkabong
 
You can set open_basedir and safe_mode via directadmin.

In .htaccess you can set:
php_flag register_globals off
php_flag register_long_arrays on

And you can set memory_limit into /usr/local/lib/php.ini or you can add it to virtualhost's httpd.conf file. You must read http://us2.php.net/configuration.changes too :)
 
smtalk,

Thanks for the response. I was able to edit all the relevant files

regards,

Elkabong
 
Back
Top