Upload_max_filesize - the ideal ubuntu ISPConfig 3 server

I looked through all the posts regarding upload_max_filesize, but I still don't have time! Any help would be appreciated.

I have installed

vi /etc/php5/apache2/php.ini upload_max_filesize = 10M post_max_size = 20M 

and

 vi /etc/php5/cli/php.ini upload_max_filesize = 10M post_max_size = 20M 

ini_get ('upload_max_filesize') reports 2M

mem limit - 128M Where else do I need to look for [apache config?].

In addition, I can’t make it work for my whole life!

 error_reporting = E_ALL & ~E_DEPRECATED display_errors = On 

error_reporting receives an OK message, so at least I have some feedback. chrome gives an internal firefox server error giving a blank page.

I am using ubuntu server 10.10 ISPConfig 3 to learn about Linux and php programming.

thanks

+6
source share
4 answers

This method works and is great for your settings for one website or for rejecting cgi servers, if you have several sites that require different settings for each site, your path will be the default for all sites added to the panel.

If you have multiple sites

what you can do is set as default as above.

and for each individual site you can add custom values ​​in the sites tab on ispconfig 3 ..

click on your site in the sites tab in ispconfig, and then select the options tab for this website.

There should be two input fields for setting the custom parameters php and apache2 for this site separately on ispconfig 3.

in php settings add your user settings

 display_errors = On post_max_size = 48M upload_max_filesize = 24M 

below where u can manually edit php.ini.

cgi website will be:

 /etc/php5/cgi 

sites in configurations belonging to a separate php.ini should be located in:

 /var/www/conf/web1/php.ini 

web1 above for site number 1 on the panel. for other sites it will be b web 2, for site 2, etc. etc.

if you want to create your own php.ini you can host your own:

 /etc/php5/cgi/conf.d 

also be sure to create info.php using any text editor,

 <? phpinfo(); ?> 

save as info.php

and upload it to your website to find the exact locations of your php.ini if ​​you are not sure where they are.

http://yourdomain.com/info.php

+8
source

update: upload_max_filesize I was able to solve my problem myself. Install vars in the following file.

 /etc/php5/cgi vi php.ini error_reporting = E_ALL & ~E_DEPRECATED display_errors = On post_max_size = 48M upload_max_filesize = 24M 
+2
source

My method is described in detail here: http://www.breckers.co.uk/increase-php-maximum-upload-size-with-ispconfig/

Basically, in ISPConfig, set the following parameters for php.ini user parameters:> ### site ###> Parameters tab

 upload_max_filesize = 25M post_max_size = 25M 

Save, wait until the Jobquue is complete (view under the monitor)

Finally, restart the web service or server to make sure.

+2
source

Your def method works great and has helped me a lot to figure out. Manually always works best.

I just thought badly add to your method, in case any new members trying to use ispconfig will experience the same problem as me, and you need more information on where to manually set the settings, or through the panel save some time.

Glad it works.

0
source

Source: https://habr.com/ru/post/896051/


All Articles