Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

where i can edit php.ini settings for phpcgi template

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
donsreeraj
Posts: 2
Joined: Tue Sep 22, 2015 4:22 pm

where i can edit php.ini settings for phpcgi template
  • Quote

Post by donsreeraj » Tue Sep 22, 2015 4:30 pm

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 ..
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

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

Post by skurudo » Wed Sep 23, 2015 11:12 am

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
Top

donsreeraj
Posts: 2
Joined: Tue Sep 22, 2015 4:22 pm

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

Post by donsreeraj » Wed Sep 23, 2015 5:56 pm

how do i globally apply this settings ?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

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

Post by skurudo » Fri Sep 25, 2015 7:26 am

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.
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password