I am working on AWS EC2 Ubuntu machine. I am not able to restart my apache server.
following is the error is showing when i use Listen 80 in ports.conf
Listen 80
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
$ service apache2 restart * Restarting web server apache2
(13)Permission denied: AH00072: make_sock: could not bind to address [::]:80 (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down AH00015: Unable to open logs Action 'start' failed. The Apache error log may have more information.
and when I go with Listen 8080
Listen 8080
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
$ service apache2 restart * Restarting web server apache2
(13)Permission denied: AH00072: make_sock: could not bind to address [::]:443 (13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:443 no listening sockets available, shutting down AH00015: Unable to open logs Action 'start' failed. The Apache error log may have more information.
This all happen when I go for SSL.
logs are empty. no error found in logs (/var/log/apache2)
sudo service apache2 restart)? If not, you need to - you can't bind to ports under 1024 without superuser. Also, edit your question and include the output ofsudo netstat -tulpn | grep 443– Thomas Ward Sep 30 '15 at 16:06sudo netstat -tulpn | grep 443– Thomas Ward Sep 30 '15 at 16:07netstat -tulpn | grep 443 run– urfusion Sep 30 '15 at 16:13sudo netstat -tulpn | grep :80and see if there's any output for port 80. – Thomas Ward Sep 30 '15 at 17:11