Access resources in apache and download their files directly. how can this problem be solved?

Source: Internet
Author: User
When you access resources in apache and directly download their files, accessing the php file will prompt you to download their files. why? The configuration of http. conf for php is as follows: AddType applicationx-httpd-php .phpAddType applicationx-httpd-php .html AddType & nbsp; the application accesses resources in apache to directly download its files.
When accessing the php file, the system prompts you to download the file. why? The configuration of php in http. conf is as follows:

AddType application/x-httpd-php. php
AddType application/x-httpd-php. html
AddType application/x-httpd-php. htm

LoadModule php5_module "D:/php/php5apache2_2.dll"
PHPIniDir "D:/php. ini"

Share: More


------ Solution --------------------
Check whether the php5apache2_2.dll file exists in D:/php?

PHPIniDir "D:/php. ini"
Change
PHPIniDir "D:/php /"

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.