× Installation and guides about a great free, plesk and cpanel alternative project

CWP Pro / Nginx 500 Internal Server Error When Uploading Plugins or Using Elemen

Περισσότερα
3 Ημέρες 15 Λεπτά πριν #335 από infogate
Here is a ready-to-post forum message:Title:
CWP Pro / Nginx 500 Internal Server Error When Uploading Plugins or Using ElementorPost:Hi everyone,I want to share a fix that solved a sudden 500 Internal Server Error nginx issue on a CWP Pro server.ProblemWordPress was working, but when trying to upload/update a plugin, for example Elementor, the upload failed with:
500 Internal Server Error
nginx
Elementor editor was also stuck loading, and the nginx error log showed errors like:
open() "/var/lib/nginx/tmp/client_body/0000000045" failed (13: Permission denied)
and:
open() "/var/lib/nginx/tmp/fastcgi/..." failed (13: Permission denied) while reading upstream
After checking nginx processes:
ps aux | grep nginx | head -20
nginx workers were running as:
nobody
But some nginx temp parent folders were owned by
nginx:root
, so the
nobody
user could not access them properly.FixThe following commands fixed the issue:
chown nobody:root /var/lib/nginx
chown nobody:root /var/lib/nginx/tmp
chown -R nobody:root /var/lib/nginx/tmp/client_body
chown -R nobody:root /var/lib/nginx/tmp/fastcgi

chmod 710 /var/lib/nginx
chmod 710 /var/lib/nginx/tmp
chmod 700 /var/lib/nginx/tmp/client_body
chmod 700 /var/lib/nginx/tmp/fastcgi

systemctl restart nginx
After the fixPlugin uploads started working again, and Elementor AJAX requests stopped failing.NotesBefore applying this, check which user nginx is actually running as:
ps aux | grep nginx | head -20
If your nginx workers run as
nobody
, the fix above should apply.You can also check the folder permissions with:
ls -ld /var/lib/nginx /var/lib/nginx/tmp /var/lib/nginx/tmp/client_body /var/lib/nginx/tmp/fastcgi
Hope this helps someone facing the same sudden CWP Pro / nginx upload or Elementor 500 error.


The best possible way to start your online marketing : fspirits.com/go/leadsleap-home
Explode Your Web Site Traffice: fspirits.com/go/sparktraffic
Start your affiliate journey here: fspirits.com/go/olsp-academy
Best Solution To Create Videos: fspirits.com/go/create-studio-pro
Best Solution To Create Graphics: fspirits.com/go/clickdesigns
Smart Chat Automation: fspirits.com/go/chatterpal
Multi-Purpose Video Maker: fspirits.com/go/avatar-builder
Multi-Purpose Video Creator: fspirits.com/go/video-creator
AI Human Spokesperson Videos: fspirits.com/go/humanpal

Παρακαλούμε Σύνδεση ή Δημιουργία λογαριασμού για να συμμετάσχετε στη συζήτηση.

Χρόνος δημιουργίας σελίδας: 0.052 δευτερόλεπτα
Powered by Kunena Φόρουμ