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.