A
A
AndreyBerezov2018-04-24 16:55:00
PHP
AndreyBerezov, 2018-04-24 16:55:00

Uploading files to the server. Where can there be a limitation?

Good day everyone!
Asked for help with setting up the site, but ran into a problem loading files. Apache server. PHP version 5.4.39 (native). The most common form is enctype="multipart/form-data" in the most common php file (not on CMS). But it only accepts files up to 128KB. Less is no problem. More - in any. Error 500
crashes. Useful in .htaccess. There is nothing specific. Only the settings of WordPress itself, which is located in the neighboring directory. Through this CMS, by the way, it also fails to load.
Useful in php.ini. The parameters are: post_max_size = 8M, upload_max_filesize = 128M. The only thing that somehow correlates with 128 kilobytes is the parameter log_errors_max_len = 1024. But these things are unlikely to be connected. What else can be? VPS managed through ISP manager 5.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vitaly Arkhipov, 2018-04-24
@AndreyBerezov

AndreyBerezov , in apache vhost settings change the directive to something more
httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgi...
Default, 131072

A
Artem, 2018-04-24
@proudmore

php.net/manual/en/ini.core.php#ini.post-max-size
php.net/manual/en/ini.core.php#ini.upload-max-filesize

L
leni_m, 2018-04-24
@leni_m

mb post_max_size to make the same upload_max_filesize or more?
The manual is simple:

To upload large files, this value must be greater than the value of the upload_max_filesize directive.

R
Roma, 2018-04-24
@B_Roma

and the rights to the folder? what, try to decide 777

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question