ispCP - Board - Support
Change default php.ini for clients - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Change default php.ini for clients (/thread-16307.html)



Change default php.ini for clients - hungnm144 - 09-25-2012 07:27 PM

I'm a newbie to use ispCP. I've a problem. When i create a new clients, ispCP'll be created a new php.ini in /var/www/fcgi/domain.com/php5/php.ini.
And now, i want to change something in php.ini for all new clients.

Ex: Disable Magic quotes
; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off

I don't know why all my clients enabled Magic Quotes. Thanks


RE: Change default php.ini for clients - FeG - 09-25-2012 11:20 PM

Hi,

first of all:

(09-25-2012 07:27 PM)hungnm144 Wrote:  I don't know why all my clients enabled Magic Quotes. Thanks

Well, it's simply the default setting (cf. the PHP documentation) and the safer one.

However, it's possible to change the default php.ini configuration for new domains; if I'm correct (never tried it though...) you simply have to change the files /etc/ispcp/fcgi/parts/php{4,5}/php.ini.

Best,
FeG


RE: Change default php.ini for clients - hungnm144 - 09-26-2012 05:49 AM

wow, thank you very much,
/etc/ispcp/fcgi/parts/php{4,5}/php.ini. => This path is what I need to find