PHP startup problems

Source: Internet
Author: User
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.

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.