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

php.ini

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
49 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next
imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: php.ini
  • Quote

Post by imperio » Fri Mar 14, 2014 2:20 pm

No this option is not supported.
Top

drMacFaulty
Posts: 88
Joined: Thu Mar 06, 2014 7:52 pm
Contact:
Contact drMacFaulty
Website

Re: php.ini
  • Quote

Post by drMacFaulty » Sun Mar 23, 2014 6:35 pm

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

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: php.ini
  • Quote

Post by imperio » Sun Mar 23, 2014 6:48 pm

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

pingram3541
Posts: 4
Joined: Wed Mar 26, 2014 1:19 am

Re: php.ini
  • Quote

Post by pingram3541 » Wed Mar 26, 2014 4:27 pm

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.
Last edited by pingram3541 on Wed Mar 26, 2014 4:44 pm, edited 1 time in total.
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: php.ini
  • Quote

Post by imperio » Wed Mar 26, 2014 4:33 pm

pingram3541, this option is not supported
currently php.ini general for all domains
Top

pingram3541
Posts: 4
Joined: Wed Mar 26, 2014 1:19 am

Re: php.ini
  • Quote

Post by pingram3541 » Wed Mar 26, 2014 4:48 pm

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
Last edited by pingram3541 on Wed Mar 26, 2014 4:59 pm, edited 1 time in total.
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: php.ini
  • Quote

Post by imperio » Wed Mar 26, 2014 4:57 pm

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
Top

pingram3541
Posts: 4
Joined: Wed Mar 26, 2014 1:19 am

Re: php.ini
  • Quote

Post by pingram3541 » Wed Mar 26, 2014 5:02 pm

ok, so thinking further, if I change template assigned to user in vestcp, do I need to restart apache then too?
Top

enterpr1se
Posts: 10
Joined: Fri Mar 14, 2014 5:35 am

Re: php.ini
  • Quote

Post by enterpr1se » Fri Mar 28, 2014 2:04 am

May I ask what files are the config files of phpfcgi?
Top

justqt
Posts: 2
Joined: Sun May 04, 2014 5:06 pm

Re: php.ini
  • Quote

Post by justqt » Sun May 04, 2014 6:02 pm

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


Post Reply
  • Print view

49 posts
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next

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