Page 1 of 1

where i can edit php.ini settings for phpcgi template

Posted: Tue Sep 22, 2015 4:30 pm
by donsreeraj
Web Template i choose phpcgi and there is no php.ini file loading there is anyway to override the default values? i want to run on cgi .. why you made like this? there is no php.ini files for this ..

Re: where i can edit php.ini settings for phpcgi template

Posted: Wed Sep 23, 2015 11:12 am
by skurudo
Edit your /home/user/web/domain.ru/cgi-bin/php and paste something like this

Code: Select all

#!/usr/bin/php-cgi -c/etc/php5/cgi/php.ini
And new settings make in /etc/php5/cgi/php.ini

Re: where i can edit php.ini settings for phpcgi template

Posted: Wed Sep 23, 2015 5:56 pm
by donsreeraj
how do i globally apply this settings ?

Re: where i can edit php.ini settings for phpcgi template

Posted: Fri Sep 25, 2015 7:26 am
by skurudo
donsreeraj wrote:how do i globally apply this settings ?
Make change in /usr/local/vesta/data/templates/web/apache2/phpcgi.sh

Old set

Code: Select all

wrapper_script='#!/usr/bin/php-cgi -cphp5-cgi.ini'
New set

Code: Select all

wrapper_script='#!/usr/bin/php-cgi -c/etc/php5/cgi/php.ini'
And rebuild web for your users.