Home > CMS Tutorial > WordPress > body text

After WordPress is installed, a 500 error occurs when running it.

Release: 2019-07-16 14:20:46
Original
4357 people have browsed it

After WordPress is installed, a 500 error occurs when running it.

There will always be accidents when using WordPress, such as access 500 errors. This is a common problem in WordPress. This article will explain the reasons and solutions for 500 errors in WordPress. .

1. Added error code to .htaccess file

Sometimes in order to implement a function, you need to add code to .htaccess. After adding, save and refresh access. A 500 error appears immediately. In the WordPress directory, the .htaccess file is used to store pseudo-static rules, and of course it can also store anti-hotlink code. But you can’t put any code, such as the 301 jump code. If the code is incorrect, it will directly lead to a 500 error on the website.

If you have just modified the .htaccess website and a 500 error occurs, it must be a problem with .htaccess. Just edit the file directly and delete the code you just added.

2. Incorrect website file permissions

In the eyes of many novices, the file permissions of the website must be 777, which is very wrong. The first thing that needs to be explained is that the permissions of the host, folders and files of the Windows system can be 777; but the permissions of the host, folders and files of the Linux system are set to 777. This is an error and a 500 error will occur when accessing.

The correct file permissions of the Linux host are: folder: 755; file: 644. However, there are special circumstances. For example, Baidu's xml file is usually set to 777, which does not affect the normal operation of the website.

3. 500 error caused by incorrect PHP version

Yesterday Wopus encountered an example: the program is built by WordPress, the website is running normally, and various settings in the control panel The functions are all normal, but the plug-in installation function is not normal. Later I found that upgrading the PHP version to 5.3 solved the problem. This is an individual case and can be analyzed separately when encountered. Basically, the situations are 1 and 2.

For more wordpress related technical articles, please visit the wordpress tutorial column to learn!

The above is the detailed content of After WordPress is installed, a 500 error occurs when running it.. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template