Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: odapplications on April 08, 2018, 08:07:43 AM

Title: How to Fix Http Error within Wordpress & Centos Web Panel Media Upload
Post by: odapplications on April 08, 2018, 08:07:43 AM
I am writing this because it took me nearly 2 days to find out what was going on in regards to my server configuration, wordpress installs (multiple user accounts)

The following errors being recieved from nginx were the following:
Code: [Select]
open() "/var/lib/nginx/tmp/client_body/0000000001" failed (13: Permission denied)
(keep in mind finding this error code - which has more detail for example urls and upload paths for wordpress was not easy)

Most will search on google or other platforms: "Http error. media upload wordpress" maybe include cwp or centos web panel however all the guides I was reading say to increase the max memory, add some code to the functions, edit the php.ini, mod security, or the best one "click on user accounts -> fix permissions" to get things working properly (works for ftp, but has nothing to do with nginx). However NOTHING was working. Still the http error was coming up within the wordpress media upload section. Granted I need this to work and I was determined to figure out this issue.

Here is the fix.

From ssh / putty / terminal.. write the following command:
Code: [Select]
chown -R nobody:nginx /var/lib/nginx

Is it possible to include this within an upcoming update for configurations that are using Apache, Nginx, Varnish?

I am absolutely loving my install of Centos Web Panel and could not see myself going back to cpanel. Yes I switched from cpanel to Centos Web Panel. Best decision, even upgraded to the pro for only $1 a month.

Title: Re: How to Fix Http Error within Wordpress & Centos Web Panel Media Upload
Post by: Yun on April 09, 2018, 10:44:36 AM
Thank you odapplications,
I tried too many solutions, but none of them solved my problem.
I can not believe solution simple like this.   ;D
+++ This topic is very useful for me.. +++    8)
Title: Re: How to Fix Http Error within Wordpress & Centos Web Panel Media Upload
Post by: LIMS on April 11, 2018, 06:42:44 PM
yes this topic help me too
thanks so much.. i got same error upload
Title: Re: How to Fix Http Error within Wordpress & Centos Web Panel Media Upload
Post by: studio4host on April 11, 2018, 09:35:49 PM
it's probably related to new nginx update which had already few issues found because of the changes in the new version.
I would recommend to contact support to test that and add into new cwp update

http://centos-webpanel.com/contact
Title: Re: How to Fix Http Error within Wordpress & Centos Web Panel Media Upload
Post by: 24x7servermanagement on April 12, 2018, 05:15:32 AM
Yea, it really helped. Thanks for sharing. :)
Title: Re: How to Fix Http Error within Wordpress & Centos Web Panel Media Upload
Post by: scarecrow on April 12, 2018, 06:29:49 AM
I am so glad you posted this. Almost like fate for me to find it and only a few days later. This fixed my http error for uploading media with nginx+varnish+apache.

THANK YOU!
Title: Re: How to Fix Http Error within Wordpress & Centos Web Panel Media Upload
Post by: studio4host on April 12, 2018, 08:34:15 PM
after reporting this issue new update was released having a fix for it, so once you update your cwp simply reinstall nginx

reinstall = switch to apache only then switch back to nginx.
Title: Re: How to Fix Http Error within Wordpress & Centos Web Panel Media Upload
Post by: kamii1000 on March 29, 2020, 09:40:00 PM
After days of searching, finally found this. Thanks man
Title: Re: How to Fix Http Error within Wordpress & Centos Web Panel Media Upload
Post by: Sandeep on March 30, 2020, 11:14:23 AM
hi nginx run as nobody user not nginx user