[centos@ip-172-31-19-60 ~]$ sudo systemctl status httpd.service -l ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2020-04-13 06:51:48 UTC; 21min ago Docs: man:httpd(8) man:apachectl(8) Process: 1355 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE) Process: 1354 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILUR E) Main PID: 1354 (code=exited, status=1/FAILURE)
Apr 13 06:51:48 ip-172-31-19-60.us-east-2.compute.internal httpd[1354]: (13)Permission denied : AH00072: make_sock: could not bind to address 0.0.0.0:10 Apr 13 06:51:48 ip-172-31-19-60.us-east-2.compute.internal httpd[1354]: no listening sockets available, shutting down Apr 13 06:51:48 ip-172-31-19-60.us-east-2.compute.internal httpd[1354]: AH00015: Unable to op en logs Apr 13 06:51:48 ip-172-31-19-60.us-east-2.compute.internal systemd[1]: httpd.service: main pr ocess exited, code=exited, status=1/FAILURE Apr 13 06:51:48 ip-172-31-19-60.us-east-2.compute.internal kill[1355]: kill: cannot find proc ess “” Apr 13 06:51:48 ip-172-31-19-60.us-east-2.compute.internal systemd[1]: httpd.service: control process exited, code=exited status=1 Apr 13 06:51:48 ip-172-31-19-60.us-east-2.compute.internal systemd[1]: Failed to start The Ap ache HTTP Server. Apr 13 06:51:48 ip-172-31-19-60.us-east-2.compute.internal systemd[1]: Unit httpd.service ent ered failed state. Apr 13 06:51:48 ip-172-31-19-60.us-east-2.compute.internal systemd[1]: httpd.service failed. Apr 13 06:59:34 ip-172-31-19-60.us-east-2.compute.internal systemd[1]: Unit httpd.service can not be reloaded because it is inactive.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @prathiabhishek,
Looking at the provided logs, I can see a couple of issues. Firstly, Apache is trying to start and listen on port 10. Have you changed the default configuration about port 80 to port 10? If you have, make sure the port is not used by another service. If you intend to use port 10, then execute the following command
netstat -tulpne | grep 10
See if anything is listening on it.
Another issue might be the lack of space/inodes on your Droplet.
You can check it by executing the following commands
df -h
df -i
If you have any of the partitions full, please make sure to free some space.
Lastly, when you try to restart apache and it fails, please do check
journalctl -xe
It should provide you with the full error behind the failing.
Regards, KDSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.