Skipper_gm Posted March 18, 2021 Posted March 18, 2021 Hi everyone. I run my community on CentOS 7. This is my php.ini settings In adminCP are set maximum image dimension/size per membergroup. If the image/file is larger than 100 kb I get the following error Sorry, an unknown server error occurred when uploading this file. (Error code: -200) My question is what could be the problem?
CoffeeCake Posted March 18, 2021 Posted March 18, 2021 It sounds counterintuitive, but reduce the limits and make sure that everything with a limit matches. Your CDN, your web server, and PHP, as well as anything else (suhosin) that may be running on your server and interfering with uploaded files. IPS will chunk uploads into segments for files larger than your post max size. You do not need or want to set things to the maximum file size possible.
Skipper_gm Posted March 19, 2021 Author Posted March 19, 2021 ^ I tried this but nothing changed I talked to a support guy but we couldn't solve the problem and we don't know what the problem is.
CoffeeCake Posted March 19, 2021 Posted March 19, 2021 Does the phpinfo in the ACP reflect the changes you made? What are your web server's settings? Have you tried switching between gd and imagemagick?
Skipper_gm Posted March 19, 2021 Author Posted March 19, 2021 There is definitely a problem with the server. I made a simple php upload script and if I try to upload a file larger than 100 kb I get 500 internal server error. I'm in contact with hosting support and I will report here when I solve the problem.
Solution Skipper_gm Posted March 19, 2021 Author Solution Posted March 19, 2021 The problem was in the Apache Module mod_fcgid where the MaxRequestLen Directive had a small value. Topic Solved. Daniel F 1
Recommended Posts