In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
The editor will share with you how to troubleshoot the 500 errors prompted by opening the website. I believe most people don't know much about it, so share this article for your reference. I hope you will learn a lot after reading this article. Let's learn about it!
Generally, 500 errors are caused by the following problems
1. The pseudo-static rule is incorrect
The 2.php version is not compatible with the website program
3. The website cannot connect to the database (that is, the database profile of the site is not configured or misconfigured)
4.php disables a function and needs to be enabled.
5. The site needs to access the off-site directory, and anti-cross-site processing needs to be turned off.
6. The source code itself has BUG
According to the tutorial, turn on the php error prompt to see what causes it.
First select the php version used by the site
Error message to turn on php
Modify the configuration file to change display_errors = Off to display_errors = On
Restart php after modification
Note: pagoda php installed before July is off error by default, and is enabled by default after July.
After opening it, you will see prompts for what files, how many lines and what goes wrong.
You need to check the source code yourself
If you open a web page and show a blank screen, nothing will be shown.
Modify the php configuration file to raise the error level to a minimum to display all errors
Modify error_reporting= E_ALL & ~ E_NOTICE to error_reporting= E_ALL
Then restart php.
Note: if the website can be accessed normally after debugging, please turn off the error prompt.
Just change display_errors = On to display_errors = Off.
The above is all the contents of the article "how to troubleshoot 500 errors in opening a website". Thank you for your reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.