Apache2 prompts download when opening the PHP File
Source: Internet
Author: User
When you open the PHP file in apache2, you are prompted to download the Linux general technology-Linux technology and application information. The following is a detailed description. In this case, after Apache2 is installed under redhat5, set servername to localhost: 80 and enter http: // localhost in the web. Then, compile and install php5.3.2. After installation, modify the conf file of apache2 and add addtype application/x-httpd-php under AddType. php. phtmlAddType application/x-httpd-php-source. phps and then restart Apache2. Then I created a phpinfo test file, but copied it to the htdocs file. Open this test file on the web, but it cannot be opened. It indicates that you have chosen to open sai. php (My created test file) is a php file. You need firefox to handle it. 1. Open 2 by default (Text Processing) to download this document.
What is this? The configuration document of my apache2 is changed to the above three. Thank you for your guidance!
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.