500 error page when I try to upload images

I have installed Vesta panel on my VPS.
When I try via form (php) to upload PNG image greater than 500kb, received 500 error page
I can upload JPG images greater than 500 kb but less than 1000 kb

In a log file I found this:

ModSecurity: Access denied with code 44 (phase 2). Match of "eq 0" against "MULTIPART_UNMATCHED_BOUNDARY" required. [file "/etc/httpd/conf.d/mod_security.conf"] [line "39"] [id "200003"] [msg "Multipart parser detected a possible unmatched boundary."] [hostname "www.mydomain.com"] [uri "/kontrol_panel/edit_room.php"] [unique_id "VyOQbLk0AxsAAAIiJ1oAAAAC"]

ModSecurity: Audit log: Failed to create subdirectories: /var/log/httpd/20160429/20160429-1848 (Permission denied) [hostname "www.mydomain.com"] [uri "/error/50x.html"] [unique_id "VyOQbLk0AxsAAAIiJ1oAAAAC"]

What I can do on my Vesta settings?

I commented this lines in file mod_security.conf

#SecRule MULTIPART_UNMATCHED_BOUNDARY “!@eq 0” \ #“id:‘200003’,phase:2,t:none,log,deny,status:44,msg:‘Multipart parser detected a possible unmatched boundary.’”

Now no 500 error, but I’m not sure it is everything OK.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.