MilesWeb Hosting Forum

Web Hosting Technical Support => Errors and Solutions => Topic started by: Torreto on December 02, 2016, 11:41:12 AM

Title: 500 Internal Server Error. How can I fix the problem?
Post by: Torreto on December 02, 2016, 11:41:12 AM
This is what I can see in the logs:

2016/12/01 18:13:24 [crit] # 1818 0 * 13264 open () "/ var / lib / nginx / tmp / proxy / 5/28/0000000285" failed (13: Permission denied) while reading upstream , client: xxx.xxx.xxx.xxx, server: site.com, request: "GET /engine/classes/min/index.php?charset=utf-8&g=admin&16 HTTP / 1.1", upstream: "http://127.0.0.1 : 8080 / engine / classes / min / index.php charset = utf-8 & g = admin & 16 ", host:"? www.site.com ", referrer:" https://www.mydomain.com/admin.php?mod = editnews & action = editnews & id = 51

"2016/12/01 18:13:25 [warn] # 1818 0 * 13263 delaying request, excess: 0.616, by zone "site.ocm", client: xxx.xxx.xxx.xxx, server: site.com, request: "GET /favicon.ico HTTP / 1.1 ", host:" www.site.com ", referrer:" https://www.mydomain.com/admin.php?mod=editnews&action=editnews&id=51 "


The site itself is working fine, but when you add news and uploading images, gets 500 Internal Server Error.

Please tell me what could be the problem?
Title: Re: 500 Internal Server Error. How can I fix the problem?
Post by: Karaan on December 02, 2016, 11:49:31 AM
Have you tried checking the disk space?
Title: Re: 500 Internal Server Error. How can I fix the problem?
Post by: Joe on December 02, 2016, 11:58:52 AM
Check the permissions.

Should be 644 for the files
755 for the folder
The files and folders that you want to record, should have 777 permission.
Title: Re: 500 Internal Server Error. How can I fix the problem?
Post by: Amrit on December 02, 2016, 12:03:40 PM
Maybe this can be useful:

The chown -R the apache: the apache / the var / the lib / nginx could Fixed error
Reboot the server.
Title: Re: 500 Internal Server Error. How can I fix the problem?
Post by: Torreto on December 02, 2016, 12:08:02 PM
The chown -R the apache: the apache / the var / the lib / nginx partially fixed the bug.

But still facing problems with images. not able to uploaded them the server.