For php problems, enter localhost/index. php in the browser, but the entered location localhost/tosoul/index. php is not displayed.

Source: Internet
Author: User
For php problems, enter localhostindex. php in the browser, but the entered location localhosttosoulindex. php is not displayed. For php problems, enter localhost/index. php in the browser, but the entered location localhost/tosoul/index. php is not displayed. 404 what's the problem? I have consulted.


Reply to discussion (solution)

Check whether the directory file exists. check whether the tosoul folder exists in the folder pointed to by localhost.

The tosoul/index. php file does not exist.

If tosoul/index. php does not exist, it is 404.
If tosoul/index. php exists, you do not have permission to open sub-directories.

Are you sure the file directory exists? Check whether the root directory of your server is correct.

If tosoul/index. php does not exist, it is 404.
If tosoul/index. php exists, you do not have permission to open sub-directories.



Should I return 403 if I have no open permission?

1. check where your root directory points
2. check whether tosoul/index. php is in your root directory.

The file exists.

If tosoul/index. php does not exist, it is 404.
If tosoul/index. php exists, you do not have permission to open sub-directories.


If it is not open, isn't it displayed directly in the first method?

The root directory has been created in apache. does tosoul/index. php in your root directory have this folder and this file?

The problem is that the localhost already contains the folder, and the input is wrong. you can modify the vhosts.

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.