Actually, since a 500 error is too ambiguous, it could be my nginx config or could be related to the website content.I replaced the site content with a simple phpinfo.php file, and this time it shows perfectly in the browser. That helped me to understand that my Nginx is ok. The problem is with the website I’m trying to run. The website I’m trying to run uses Yii Framework.
![]()
Create a WordPress Backup. Most of the time, you are not responsible for the errors that occur on your hosted server. Since humans can make mistakes so can. Nov 15, 2018 If the “500 Internal Server Error” is still being displayed, you simply have no other choice, but to wait for the website operator to solve the problem. There is, however, a little trick you can use in order to access the contents of the website.
I checked Yii’s official wiki and it says:Software is nginx, php-fpm (php5-fpm). For performance, it’s recommended to run php-fpm in SOCKET mode, instead of accessing via IP:PORT.I’m using Nginx exactly like that as you can see. So I have no idea why it gives me a 500 error and wont write on the error.log once I put the content back.
![]()
This question was answered by:Try to check /var/log/nginx/error.log if exist, if not, remove the line where you are assigning a diferent log file so he uses the standard one at /var/log/nginx/error.logAlso the socket thing is a recommendation and some people can recommend you to use tcp, but still should not be related to your error if you phpinfo.php is working.Does this Yii requires any kind of cute urls or something similar?try adding “ fastcgi intercepterrors on; ” to the php block and check error log.
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |