Current time: 11-17-2024, 10:47 PM Hello There, Guest! (LoginRegister)


Post Reply 
Change default php.ini for clients
Author Message
hungnm144 Offline


Posts: 2
Joined: Sep 2012
Reputation: 0
Post: #1
Change default php.ini for clients
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
09-25-2012 07:27 PM
Find all posts by this user Quote this message in a reply
FeG Offline
Banned

Posts: 222
Joined: Aug 2007
Post: #2
RE: Change default php.ini for clients
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
(This post was last modified: 09-25-2012 11:21 PM by FeG.)
09-25-2012 11:20 PM
Find all posts by this user Quote this message in a reply
hungnm144 Offline


Posts: 2
Joined: Sep 2012
Reputation: 0
Post: #3
RE: Change default php.ini for clients
wow, thank you very much,
/etc/ispcp/fcgi/parts/php{4,5}/php.ini. => This path is what I need to find
09-26-2012 05:49 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)