|
How do I specify different php config values for each subdomain?
|
| Author |
Message |
motin
Newbie

Posts: 8
Joined: Sep 2007
Reputation: 0
|
How do I specify different php config values for each subdomain?
I have a testing subdomain and a live subdomain, and in vhcs I used php_admin_value to set display_errors to 1 resp 0 for the different domains.
Also, for some directories I use special error_log directives.
With ispcp's fastcgi-based and one-php.ini-per-customer approach - how can I differentiate the configuration on a subdomain basis?
Thanks for your reply!
|
|
| 12-11-2007 10:44 PM |
|
joximu
Moderator
    
Posts: 3,889
Joined: Jan 2007
Reputation: 47
|
RE: How do I specify different php config values for each subdomain?
You alos can change it manually in the apache config (ispcp.conf)
Code:
<IfModule mod_fastcgi.c>
ScriptAlias /php4/ /var/www/fcgi/domain/
ScriptAlias /php5/ /var/www/fcgi/domain/
<Directory "/var/www/fcgi/domain">
AllowOverride None
Options +ExecCGI -MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
just make another folder for the starterscripts and the php.ini
and copy th changed file also to /etc/ispcp/apache/working - otherwise you'll loose them on the next ispcp change...
/Joximu
2008-08-05 ispCP RC6 released!!!
|
|
| 12-11-2007 11:26 PM |
|