[Phpapache strange problem] [phpapache strange problem] description: & nbsp; 1. apache configuration file http. in conf, the file "index.html" in documentrootd: www & nbsp; 2.d: wwwis displayed in the browser. The code is as follows: & lt; h2 & gt; itworks & lt; h2 & gt ;. In the ground [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?