Page 2 of 5

Re: php.ini

Posted: Fri Mar 14, 2014 2:20 pm
by imperio
No this option is not supported.

Re: php.ini

Posted: Sun Mar 23, 2014 6:35 pm
by drMacFaulty
enterpr1se wrote:Is there any per-user php.ini in Vesta?
Can't find that functionality, so I guess it's not implemented yet. Would be a useful feature though. Maybe a feature request?

Edit: Haven't seen previous response, sorry.

Re: php.ini

Posted: Sun Mar 23, 2014 6:48 pm
by imperio
Is there any per-user php.ini in Vesta?
This option is not supported

All tasks you can see in our bugtracker and there you can add this suggestion
https://bugs.vestacp.com/

Re: php.ini

Posted: Wed Mar 26, 2014 4:27 pm
by pingram3541
Setup a 1g DO server yesterday running about 9 small wordpress sites and everything seems to be running well after I added some swap. But the php configuration and template offering is a bit unclear to me.

I can set memory limits etc system wide in /etc/php5/apache2/php.ini but how to I set per domain limits to override this as suggested by the "hosting" template? i.e. where would the individual php.ini paths per domain reside? Thanks.

Edit: I have templates set to "default" and edited /etc/php5/apache2/php.ini post_max_size = 64M and upload_max_filesize = 64M but still limited to 2M on all sites.

Re: php.ini

Posted: Wed Mar 26, 2014 4:33 pm
by imperio
pingram3541, this option is not supported
currently php.ini general for all domains

Re: php.ini

Posted: Wed Mar 26, 2014 4:48 pm
by pingram3541
Thx for the quick response, I am definitely confused on what the below means then. How do we set separate php limits as suggested by the following statement in the docs?

hosting - separate php limits for each domain (php_admin_value memory/safemode/etc)

Also I edited my previous post and editing /etc/php5/apache2/php.ini does not seem to change anything globaly or at all for me, still getting max upload 2M. Thx

edit: fixed global change, it's now working, ..."service apache2 restart" instead =)

still confused on the hosting template however

Re: php.ini

Posted: Wed Mar 26, 2014 4:57 pm
by imperio
you need to modify this directives

Code: Select all

post_max_size =
upload_max_filesize =
for example:

Code: Select all

post_max_size = 50
upload_max_filesize = 50
After change php.ini
You need to restart apache

Code: Select all

service apache2 restart

Re: php.ini

Posted: Wed Mar 26, 2014 5:02 pm
by pingram3541
ok, so thinking further, if I change template assigned to user in vestcp, do I need to restart apache then too?

Re: php.ini

Posted: Fri Mar 28, 2014 2:04 am
by enterpr1se
May I ask what files are the config files of phpfcgi?

Re: php.ini

Posted: Sun May 04, 2014 6:02 pm
by justqt
Guys after searching through file structure and everything I figured it out.
It's related to the "templates" . Each template in "package" has its own setting. So take note of what package/template you are using then login through telnet or whatever and browse to: /usr/local/vesta/data/templates/web/httpd/
Since I am using the "hosting" template I will be editing the hosting.tpl
Make sure after editing to restart the server.

Now I can set it to whatever.