Solution to InternalServerError on HiChina VM

Source: Internet
Author: User
Tags server error log
Today, the PHP program was uploaded to the HiChina virtual space. as a result, the website encountered a 500 error. the code is as follows: Today, the PHP program was uploaded to the HiChina virtual space. as a result, the website encountered a 500 error, the code is as follows:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster @ **. com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

I found a reliable solution on the Internet for a long time:

1. check whether the attribute of the PHP program is set to 755. if the attribute of the PHP program is not 755, the "Internal Server Error" Error will be reported during running, use the FTP software to change the property to 755 before testing.

2. check whether the current directory of the PHP program is named. the htaccess file exists, which will interfere with the normal operation of the PHP program. if you find this file, we recommend that you delete it or rename it before testing.

According to the first article, the result will not work; the next day is a bit difficult. you can see the. htaccess file locally, but you will not be able to see it after uploading it to the server using FTP software. Then, the Cainiao's instinct was used to find Baidu. You can use the code to delete dele. htaccess. Haha, the problem is solved.

I used leapFTP3.0 to select the command → original command → dele. htaccess.

Related Article

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.