Home > Article > Backend Development > What should I do if the php test page cannot come out?
Solution to the problem that the php test page cannot be displayed: 1. Check whether the APACHE server is open; 2. Modify the "Listen" in the "httpd.conf" file to 80; 3. Restart the Apache server. .
The operating environment of this article: Windows 7 system, PHP version 7.4.16, DELL G3 computer
What should I do if the php test page cannot come out? ?
Solution to the test.php test page that cannot be opened:
Check whether the APACHE server is open in the "bin" folder under the installation directory , find the apachemonier.exe file, double-click it to open,
At this time, the following icon will appear in the lower right corner of the computer, proving that the server has started successfully.
# Refresh the browser at this time to see if the test page can be displayed normally. If it still cannot be displayed, please find "httpd.conf" in the conf folder in the installation directory and open it with "Notepad".
Find the "Listen" item and see what the number behind it is. If it is not "80", please change it back to "80" and save it. . Because the default port of Apache is "80".
Restart the Apache server.
Refresh the browser now and the "test.php" test page can be displayed correctly.
Notes
Note that before testing, make sure the Apache server is turned on.
Also restart the apache server after changing the port.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What should I do if the php test page cannot come out?. For more information, please follow other related articles on the PHP Chinese website!