What are the problems during PHP startup ?? Today, I started to learn php by myself. I installed the apache server first and then php5.4. Finally, I started the apache service and reported this error. I analyzed it in English. 1. the server name is incorrect. Port 2.80 is occupied. When the apache server has only two ports for me to choose, problems occurred during PHP startup
?
?
Today, I started to learn php by myself. I installed the apache server first and then php5.4. Finally, I started the apache service and reported this error. I analyzed it in English. 1. the server name is incorrect. Port 2.80 is occupied. When the apache server has only two ports, let me choose. I think Port 8080 is used by tomcat and port 80 is selected, but port 80 is also occupied. Instead, use port 8080.
Solution: go to the conf directory of apache and find the httpd. conf file.
1. set the listening port of the apache service
# Listenlocalhost: 8080
Listen 8080.
2. set the logon address of the apache server
# ServerAdmin localhost
3. set the service name of the apache server
# ServerName localhost: 8080
Conclusion: no error is reported when the apache service is started in the preceding three regions. you can access your php webpage.