Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: DangerD2 on March 02, 2023, 09:10:38 AM

Title: File upload limit
Post by: DangerD2 on March 02, 2023, 09:10:38 AM
Upload is limited to 128Mb

Code: [Select]
sh /scripts/php_big_file_upload 512 all
New Configuration:
---------------------
upload_max_filesize = 512M
post_max_size = 517M
memory_limit = 536M
max_input_time = 300
max_execution_time = 300
---------------------
Editing File: /opt/alt/php74/usr/php/php.ini
Editing File: /opt/alt/php-fpm56/usr/php/php.ini
Editing File: /opt/alt/php-fpm74/usr/php/php.ini
Editing File: /usr/local/php/php.ini


Editing File: /usr/local/cwp/php71/php.ini
Editing File: /usr/local/cwpsrv/conf/cwpsrv.conf
Redirecting to /bin/systemctl restart cwpsrv.service
Redirecting to /bin/systemctl restart cwpsrv-phpfpm.service

Editing File: /etc/nginx/nginx.conf
Redirecting to /bin/systemctl restart nginx.service

Editing File: /usr/local/apache/conf/httpd.conf
Redirecting to /bin/systemctl restart httpd.service

Trying to upload 129MB:

Code: [Select]
Request Entity Too Large
The requested resource does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit.

Where also limit can be?
Title: Re: File upload limit
Post by: Starburst on March 02, 2023, 03:56:53 PM
What PHP are you running?

via Selector PHP-FPM?
Title: Re: File upload limit
Post by: Biswashost on March 03, 2023, 10:18:10 AM
Check user end PHP.INI value. The user may be have own custom value. You need to increase that value to higher.
Title: Re: File upload limit
Post by: Starburst on March 03, 2023, 02:58:41 PM
Correct, but depending on what is being run, the php.ini is in different locations.

Which is why I was asking what version.