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

Change upload_max_filesize for specific customer/website

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
Spheerys
Posts: 225
Joined: Tue Dec 29, 2015 12:36 pm

Os: Debian 7x
Web: apache + nginx
Change upload_max_filesize for specific customer/website
  • Quote

Post by Spheerys » Wed Nov 16, 2016 5:16 pm

Hi,

Is it possible to change the upload_max_filesize only for specific customer or website, instead of changing it globally on /etc/php5/{apache2,cgi,cli}/php.ini file ?
Top

Naldinho
Posts: 34
Joined: Sat Nov 05, 2016 12:54 am

Re: Change upload_max_filesize for specific customer/website
  • Quote

Post by Naldinho » Mon Nov 21, 2016 3:35 pm

Yes it is possible -- I've seen ISPs do it using a user.ini file which is a user specific php.ini -- I've never done it myself nor do I know anything about how to configure that but it is possible.
Top

Spheerys
Posts: 225
Joined: Tue Dec 29, 2015 12:36 pm

Os: Debian 7x
Web: apache + nginx
Re: Change upload_max_filesize for specific customer/website
  • Quote

Post by Spheerys » Mon Nov 21, 2016 4:36 pm

You mean create a user.ini file on the /public_html directory, with specific directive should works ?
I don't think so, because if the admin sys set globally a upload_max_filesize (for example) to 10Mo, he probably don't want specific user can set this parameter to 500Mo.

But maybe I'm wrong !
I'll test it :)
Top

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

Re: Change upload_max_filesize for specific customer/website
  • Quote

Post by skurudo » Wed Nov 23, 2016 6:07 am

Spheerys wrote:You mean create a user.ini file on the /public_html directory, with specific directive should works ?
I don't think so, because if the admin sys set globally a upload_max_filesize (for example) to 10Mo, he probably don't want specific user can set this parameter to 500Mo.
If you use php as cgi / fcgi you can add to users separate php.ini files with own values.

In other case, you can edit /home/$user/conf/web/apache2.conf (or httpd.conf) and add upload_max_filesize value. But remebmer, if you will rebuild user or WEB those changes will be lost.
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
 

 

cron

Login  •  Register

I forgot my password