Control Web Panel

WebPanel => PHP => Topic started by: rsolo on November 13, 2019, 08:14:54 PM

Title: PHP upload size questions
Post by: rsolo on November 13, 2019, 08:14:54 PM
Because of mode secure i`m not able to upload vita http files which are above 100MB , can anyone tell me what to modify in order to have no upload restrictions ?
If i disable ModSecure ..it`s all good ..but i want to use and just add this exception can someone assist ?
Title: Re: ModSecure questions
Post by: Netino on November 16, 2019, 09:59:09 PM
This is not a mod_security related question.

Login with ssh as root to your server.
Type the following command to edit the php.ini:
======================================
# nano /opt/alt/php-fpm70/usr/php/php.ini
======================================
(or any other php.ini file you are using)

Find the following two values (with [CTRL]+W):
Code: [Select]
post_max_size = 100M
upload_max_filesize = 100M

Set them to any value you want.
Save and close the file. Where,

Restart Apache server:

$ systemctl restart apache2.service

Now you should able to upload bigger files.