This article is a mirror article of machine translation, please click here to jump to the original article.

View: 5927|Reply: 2

After configuring the httpd environment, enter: http://***/index.php to report a 404 error

[Copy link]
Posted on 9/18/2018 10:02:58 PM | | |
The first time you use PHP, after configuring php and httpd, test whether the configuration is successful. Error: The requested URL /index.php was not found on this server.


Kneel down and ask the big cow to designate.
Note: DocumentRoot "/usr/apache24/htdocs" in httpd.conf
<Directory "/usr/apache24/htdocs">




Previous:The IoT device sends data to the platform, and the platform receives the data, why does it not return ACK?
Next:asp.net Remove the X-Powered-By message from the website headers
Posted on 9/19/2018 9:37:15 AM |
Web Hosting Examples:


DocumentRoot sets the project path, ServerName sets the hostname, and DirectoryIndex sets the entry file. Enable the .htaccess function in the AllowOverride setting in the directory.
Posted on 9/19/2018 9:41:51 AM |
Try to find the cause:

1: Detect if the profile syntax is wrong

apachectl -t

2: Create a new test.txt text under the site directory, and then use http to check whether it can be accessed.
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com