How to solve the startup failure problem of apache2 ~
Source: Internet
Author: User
How to solve the startup failure problem of apache2 ~ -- Linux Enterprise Application-Linux server application information. For details, refer to the following section. Today, when I started The apache2 service, I always reported an error. I was depressed for a whole day and now I finally found a solution! I will share the entire process with you, hoping to help those comrades who are equally confused with me:
1. Type service apache2 start on the terminal
System prompt:
* Starting web server apache2
(13) Permission denied: make_sock: cocould not bind to address 0.0.0.0: 80
No listening sockets available, shutting down
Unable to open logs
2. I searched the internet and said port 80 was occupied. the port in conf is enough, but my httpd. the conf file is empty. The netstat-a-o command cannot be used to find the service that occupies port 80. Later, some articles on the Internet said that port services within 1024 can only be started with root permissions, so I tried it and it worked:
Enter sudo service apache2 start on the terminal
The system prompts you to enter the password. after entering the password, the following message appears:
* Starting web server apache2
Httpd (pid 1172) already running
[OK]
The apache service is successfully enabled!
The above is the entire process and I hope it will be useful to you!
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