Post Reply 
How do I specify different php config values for each subdomain?
Author Message
motin Offline
Newbie
*

Posts: 8
Joined: Sep 2007
Reputation: 0
Post: #1
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
Find all posts by this user Quote this message in a reply
rbtux Offline
Member
***

Posts: 1,200
Joined: Feb 2007
Reputation: 22
Post: #2
RE: How do I specify different php config values for each subdomain?
set the subdomain up as a normal domain...

OS: Debian Lenny
ispCP Version: Trunk r1033
Activated: AWStats dynamic, Dovecot, Avelsieve, Selective Greylisting, Bogus MX Filter,
No Webtools, Roundcube, Some own modifications
12-11-2007 11:14 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
Moderator
*****

Posts: 3,889
Joined: Jan 2007
Reputation: 47
Post: #3
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
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


| All rights reserved : isp-control.net |