Home Backend Development PHP Problem What should I do if the php website does not display and cannot be accessed?

What should I do if the php website does not display and cannot be accessed?

Jul 18, 2020 am 11:06 AM
php show access

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.

What should I do if the php website does not display and cannot be accessed?

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: .htaccessFile 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 accessing

Encountered 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!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Apr 05, 2025 am 12:04 AM

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

How do you parse and process HTML/XML in PHP? How do you parse and process HTML/XML in PHP? Feb 07, 2025 am 11:57 AM

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

Explain late static binding in PHP (static::). Explain late static binding in PHP (static::). Apr 03, 2025 am 12:04 AM

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

PHP Program to Count Vowels in a String PHP Program to Count Vowels in a String Feb 07, 2025 pm 12:12 PM

A string is a sequence of characters, including letters, numbers, and symbols. This tutorial will learn how to calculate the number of vowels in a given string in PHP using different methods. The vowels in English are a, e, i, o, u, and they can be uppercase or lowercase. What is a vowel? Vowels are alphabetic characters that represent a specific pronunciation. There are five vowels in English, including uppercase and lowercase: a, e, i, o, u Example 1 Input: String = "Tutorialspoint" Output: 6 explain The vowels in the string "Tutorialspoint" are u, o, i, a, o, i. There are 6 yuan in total

What are PHP magic methods (__construct, __destruct, __call, __get, __set, etc.) and provide use cases? What are PHP magic methods (__construct, __destruct, __call, __get, __set, etc.) and provide use cases? Apr 03, 2025 am 12:03 AM

What are the magic methods of PHP? PHP's magic methods include: 1.\_\_construct, used to initialize objects; 2.\_\_destruct, used to clean up resources; 3.\_\_call, handle non-existent method calls; 4.\_\_get, implement dynamic attribute access; 5.\_\_set, implement dynamic attribute settings. These methods are automatically called in certain situations, improving code flexibility and efficiency.

PHP and Python: Comparing Two Popular Programming Languages PHP and Python: Comparing Two Popular Programming Languages Apr 14, 2025 am 12:13 AM

PHP and Python each have their own advantages, and choose according to project requirements. 1.PHP is suitable for web development, especially for rapid development and maintenance of websites. 2. Python is suitable for data science, machine learning and artificial intelligence, with concise syntax and suitable for beginners.

See all articles