"PHP Apache Weird Questions"

Source: Internet
Author: User
"PHP Apache Weird Problem"
"PHP Apache Weird Problem"
Describe:
1.apache configuration file http.conf in documentroot= d:/www
2.d:/www in the index.html file, display it works in the browser. The code is as follows:

It works


Enter localhost in the address bar to successfully open the page.
3.d:/www in the ind.php file, the code is as follows:
echo "Welcom"?>
Enter localhost/ind.php in the address bar to open the page successfully. The page displays welcome.
4.d:/www/php (the file directory changed) in the index.php file (the content is the same as ind.php), the code is as follows:
echo "Welcome"?>
Enter localhost/php/ind.php in the address bar to prompt for error messages 404,not found.

Description of the text is a bit long, but really did not understand what is the situation, to pass a master to give a solution, humbly ~ ~
  





------Solution--------------------
Please check
1. If PHP is loaded successfully
2. Whether the x-application has been configured
3, PHP.ini's Short_open_tag whether open
------Solution--------------------
What is the complete error message?
------Solution--------------------
You mean
The d:/www/ind.php can be accessed with http://localhost/ind.php
and
d:/www/php/ind.php cannot be accessed with http://localhost/php/ind.php

Is that right?


  • 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.