Error starting httpd in centOS 7

2

I get an error when starting httpd in centOS 7. I tried restarting with

systemctl restart httpd.service

and also

systemctl start httpd.service 

and I keep getting the same error, I've done it as root. It is worth mentioning that previously it worked well.

Here is a screenshot of what I have tried and the error I receive:

    
asked by Roy Pérez 01.06.2016 в 05:29
source

4 answers

2

You are being notified that you can not join port 80, there must be another service that is using it, you can look at it using the command as root netstat -putona (if so), it will show you the established connections, waiting, lost, and by which port they communicate.

If the service you are listening to is essential, since it changes the listening port of Apache, it is configured to listen on port 80 (as you already know).

You can also show the whole log, since that is a log summary, the answer of Dannis Isaias tells you how to do it.

    
answered by 02.03.2018 в 17:46
1

As it tells you:

Unable to open logs

does not have write / read permissions and it is also safest to use port 80

Run your command with sudo

sudo systemctl restart httpd
    
answered by 13.06.2016 в 12:57
1

Hello, what I read at the beginning of the message is that port 80 is being occupied by another process or service. Check which process or service is using the port.

You can also change the HTTPD port in your settings.

    
answered by 04.07.2017 в 17:27
-1

review the file / var / log / httpd / error_log

there you can find any configuration error that prevents the operation of the service

or you can use the command: service httpd status

I hope you serve

    
answered by 04.07.2017 в 16:50