Skip to content

Apache Error – Permission denied: AH00072: make_sock: could not bind to address – How to fix?

Find out how to fix the Apache error Permission denied: AH00072: make_sock: could not bind to address.

First start the server with sudo and see if this error is gone.

sudo service httpd restart 

or…

sudo systemctl restart httpd.service

If the error still persists, disable SELINUX enforcing.

sudo setenforce 0

set SELINUX= disabled in config file

sudo vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled 
# SELINUXTYPE= can take one of three values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

Restart Apache server.

sudo service httpd restart

Poof, the error is gone!

See also  *** System restart required *** - DigitalOcean Ubuntu droplet warning message. How to resolve?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.