Home > Article > Backend Development > What should I do if the php website does not display and cannot be accessed?
Solutions to the PHP website that does not display and cannot be accessed: 1. A 404 error occurs when accessing, and the program is lost or deleted, and the program needs to be redeployed; 2. A 500 error occurs when accessing, rename, block or delete [.htaccess 】File; 3. If a 403 error occurs during access, delete the IP currently accessing the network from the blocked IP list.
php website does not display and cannot be accessed. Solution:
1. 404 error occurs when accessing
A 404 error occurs when accessing the website. The appearance of the HTTP 404 status code means that the web page pointed to by the link does not exist, that is, the URL of the original web page is invalid.
Possibility 1: The space structure file is deleted, please contact Wuyou Host customer service to initialize the space.
Possibility 2: The program is lost or deleted, redeploy the program.
2. 500 error when accessing
500 error is usually a problem with website program file permissions.
Possibility 1: File permissions are incorrect. Need to Manual modification, the file management of the worry-free host control panel can be modified, where the selection of all folders is 755, and the selection of a single file is 644;
Possibility 2: .htaccess
File rule error caused Yes, just rename, block or delete the file.
3. A 403 error occurs during access.
#403 error means access is denied. It is usually caused by space blocking IP. If there is an abnormality in access to an IP, the system will think it is If the IP is offensive, it will be blocked. In this case, you can find "Block IP" in the control panel and delete the IP currently accessing the network from the list of blocked IPs.
4. Access will prompt DNS-related errors
DNS errors are domain name server problems. Before looking for a domain name provider, there are two solutions. Possibility 1: Parsing problem, the parsing does not take effect or the parsing method is wrong. It needs to be parsed correctly and then wait for it to take effect; Possibility 2: The default DNS address is modified, usually the default is used. Starting from July 18, 2016, domestically registered domain names require real-name authentication. If this happens, check whether the domain name has been authenticated by real-name authentication. Other possible reasons are that the domain name has expired without renewal and needs to be re-resolved after renewal.
5. Inaccessible domestically, normal access abroad
Multiple devices and regions in China are inaccessible. The possible reason why foreign access is accessible is that the domain name is blocked. Solution: 1. Use a domestic server; 2. Bind a new domain name to the server and use a domestic forwarding server to jump the blocked domain name to the new domain name; [Recommended]. When using the second method, by setting up 301 and site-wide forwarding, the weight of the original domain name can be transferred to the new domain name. Or changing the domain name can also solve the problem.
6. A white screen appears when accessing the website
The white screen does not mean that the website cannot be accessed, it just does not display the content. It is usually caused by program configuration. All PHP Open source may cause a white screen phenomenon, because there are many possibilities involved. If you encounter this problem, worry-free hosting customers can search on the site at www.51php.com. Most of the white screen solutions are gathered here. plan.
7. Prompt database error
The bridge between the program and the database is the database configuration file. When this problem occurs, you must first check whether the database configuration is correct and the host address is set to localhost. Verify that the database account and user name are correct. The password can be verified by logging in. If it is incorrect, it can be reset and reconfigured in the database management of the control panel. The possibility is relatively small, but it does not rule out that the database version is incorrect or there is a problem with the database. You can check it in the local environment.
8. When accessing, this IP is being shared among many domains...
means that the IP is being used by multiple domain names. Possibility 1: This is a shared IP and can only It is bound to the top domain name and cannot be accessed directly using IP. Possibility 2: Domain name resolution does not take effect. If the IP obtained by pinging the domain name is consistent with the space IP, it means it has taken effect. It may be caused by the browsing cache. Clear the browser cache before accessing.
9. The pause status is still displayed after renewal or upgrade.
The worry-free host has expired or been shut down due to overcapacity. This is usually controlled by the system. When the space is renewed or upgraded, It will automatically turn on after accessing. It also prompts that the pause may be due to browser cache. Refreshing the browser multiple times or clearing all caches can solve the problem.
10. Too many redirections are displayed
Redirection problems are generally caused by modifying the hosts file. If the domain name resolution takes effect on the website, you can delete the local resolution. , clear the browser cache before accessing; if it is still possible because there is a dns cache in the router, restart the router.
11. When accessing the php version,
prompt information is different, such as require php > 5.3.0, which means that the current version is lower than 5.3.0, the requirement Worry-free hosting customer service will update you to version 5.3 or higher.
13. Errors caused by changing domain names
After a website changes its domain name, some links may be inaccessible or the layout may be confusing. This is because the original link exists in the program or database. The domain name can be solved after changing it.
14. "Internal Server Error The server...
appears when accessingEncountered an internal server error or incorrect configuration and was unable to complete the access request. In order to protect the security of the user site, the PHP virtual host server in the Linux environment has globally set the virtual host root directory to prohibit running with permissions higher than 755, such as program files. The permissions of 777 are set in and the permissions need to be reset.
Related learning recommendations: PHP programming from entry to proficiency
The above is the detailed content of What should I do if the php website does not display and cannot be accessed?. For more information, please follow other related articles on the PHP Chinese website!