ispCP - Board - Support
update all the php.ini files - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: update all the php.ini files (/thread-15776.html)



update all the php.ini files - kingxerxes - 01-31-2012 08:13 PM

hi there,
i am using version 1.0.7 in a production environment and want to update all the php.ini files for my domains as i am tightening security after a recent intrusion through a wordpress theme vulnerability.

is there a way i can updated them all at once and how can i set the template for future domains?


RE: update all the php.ini files - joximu - 01-31-2012 11:28 PM

for future:
/etc/ispcp/fcgi/parts/php5/php.ini

change existing: manually, with a script (sed, awk etc) or set the domain status to "change", remove all the php.ini below /var/www/fcgi/*/php5/php.ini and run the request manager... (they are recreated if they do not exist, based on the template... see above).

/J


RE: update all the php.ini files - kingxerxes - 01-31-2012 11:30 PM

thanks for the reply. where do i set the domain status to changed? is this in the db?

how do i run the request manager please?

thanks!


RE: update all the php.ini files - joximu - 02-02-2012 12:42 AM

change the default/template php.ini

make clear that not others are in ispcp (maintenance mode) - just to reduce the time php is not working...

set in table "domain", field domain_status to change
(UPDATE `domain` SET `domain_status` = 'change')

remove or rename all the php below /var/www/fcgi/ - except for the "master" domain... (ispcp itself)

kick /var/www/ispcp/engine/ispcp-rqst-mngr

/Joxi