We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
php.ini
Re: php.ini
No this option is not supported.
-
- Posts: 88
- Joined: Thu Mar 06, 2014 7:52 pm
- Contact:
Re: php.ini
Can't find that functionality, so I guess it's not implemented yet. Would be a useful feature though. Maybe a feature request?enterpr1se wrote:Is there any per-user php.ini in Vesta?
Edit: Haven't seen previous response, sorry.
Re: php.ini
This option is not supportedIs there any per-user php.ini in Vesta?
All tasks you can see in our bugtracker and there you can add this suggestion
https://bugs.vestacp.com/
-
- Posts: 4
- Joined: Wed Mar 26, 2014 1:19 am
Re: php.ini
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.
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.
Last edited by pingram3541 on Wed Mar 26, 2014 4:44 pm, edited 1 time in total.
Re: php.ini
pingram3541, this option is not supported
currently php.ini general for all domains
currently php.ini general for all domains
-
- Posts: 4
- Joined: Wed Mar 26, 2014 1:19 am
Re: php.ini
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
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
Last edited by pingram3541 on Wed Mar 26, 2014 4:59 pm, edited 1 time in total.
Re: php.ini
you need to modify this directives
for example:
After change php.ini
You need to restart apache
Code: Select all
post_max_size =
upload_max_filesize =
Code: Select all
post_max_size = 50
upload_max_filesize = 50
You need to restart apache
Code: Select all
service apache2 restart
-
- Posts: 4
- Joined: Wed Mar 26, 2014 1:19 am
Re: php.ini
ok, so thinking further, if I change template assigned to user in vestcp, do I need to restart apache then too?
-
- Posts: 10
- Joined: Fri Mar 14, 2014 5:35 am
Re: php.ini
May I ask what files are the config files of phpfcgi?
Re: php.ini
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.
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.