When PHP enters the home page, the following error occurs: HTTP Error 500 (internal server error): the server encountered an exception when trying to execute the request.

Source: Internet
Author: User
Delete. htaccess to access

The page you visited cannot be displayed. webpage 500 error,

Server Error

HTTP Error 500-internal server error.

Description: The resource you want to search for has a problem and cannot be displayed.

 

 

 

 

I have installed discuz1.5 before. This is a strange phenomenon. So I checked a lot of information and found the solution for discuz X2 to install the 500 error on the homepage.

 

The 500 error on the home page does not affect subsequent logon. You can modify it according to the online tutorial !!

 

Solution:

1. After the installation is complete, access http: // your domain name/admin. php directly.

2. After Entering the background management, click global> domain name Settings> application domain name. Then, select one of them as the website homepage and enter the domain name (www. your domain name. com) and root domain (your domain name. com), click Submit to update the cache

 

After the operation is complete, go to the website again and solve the 500 error. Access is normal.

 

The specific reason is unclear. Still exploring

 

 

 

After solving this problem, I found that the website Error 500 always occurred when posting during the testing process. However, I refresh the page and sent the post to search for information with this problem, I almost searched for the entire discuz forum and did not find a solution. At first I thought it was a permission problem. I set it wrong for a long time. I still looked like it was the same. I finally reinstalled discuz X2, but it still didn't work, I have tried almost all of them, and finally I found my gratitude for the outdated ID in an outdated post: qingcloud server security

 

The method is as follows:

 

If the virtual host requires the IIS permission on the server, log on to the Remote Desktop

 

Problem: when the latest version of DZ x1.5 is running in the third-party FastCGI mode on the iis7 System of win2008, a 500 server error occurs during post. Detailed ErrorCodeIt is 0x8007000d and the dynamic profile of UC center users does not show static normal!

 

 

Solution: process the website function interfaceProgramIn the ing, double-click PHP-FastCGI and change fastcgimodule to isapimodule,

 

Then, change php-cgi.exe to php5isapi. dll, and click OK. Then, try again and the site will all be normal,

 

Then, change php5isapi.dllback to php-cgi.exe, and test the site again!

 

Download the source code from the official website and install it according to the instructions. First, the system prompts that some folders have insufficient permissions, so the corresponding permissions are granted to some files and folders. After the installation is completed, the homepage is blank or displays Error 500, and the background is blank or displays Error 500. Only uc_server can be enabled and accessed.

I searched for N Multiple Solutions online, but none of them solved the problem. Finally, the Users Group in this site folder cannot have full control permissions, so I don't think this is the reason, so I will check the website source code.

One problem was found: Calling Files written in X2 were used. /instead of/or does not contain anything. This is because I put the files in the entire upload folder directly under the main directory, so there is a problem.

Therefore, I created a folder discuz under the web directory, copied the files in the upload folder to this folder, and re-installed the folder to give a Web Folder user the read permission, you can read the Web/discuz folder, write some files and directories, and reinstall the folder.

I had a 500 Error for half a day. It turned out to be a X2 bug.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.