[Phpapache strange questions]

Source: Internet
Author: User
[Phpapache strange problem] [phpapache strange problem] description: & nbsp; 1. apache configuration file http. in the conf file documentroot = d:/www & nbsp; 2.d:/www, the index.html file is displayed in the browser. Code such as [php apache strange problem]
[Php apache strange problem]
Description:
1. documentroot = d:/www in the configuration file http. conf of apache
2. d:/index.html file in www. it works is displayed in the browser. The code is as follows:
It works.
Enter localhost in the address bar to open the page.
3. d:/The ind. php file in www. the code is as follows:
Echo "welcom"?>
Enter localhost/ind. php in the address bar to open the page. The page displays welcome.
4. d:/www/php (the file directory has changed) in the index. php file (the content is the same as that of ind. php). The code is as follows:
Echo "welcome"?>
Enter localhost/php/ind. php in the address bar and the error message 404, not found is displayed.

The description is a little long, but I really don't understand what the situation is. please let me know what it is. thank you ~~
  





------ Solution --------------------
Please check
1. is php loaded successfully?
2. whether x-application is configured
3. check whether the short_open_tag of php. ini is enabled.
------ Solution --------------------
What is the complete error message?
------ Solution --------------------
You mean
D:/www/ind. php can be accessed using http: // localhost/ind. php
While
D:/www/php/ind. php cannot be accessed through http: // localhost/php/ind. php

Is that true?


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.