Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm experiencing a really strange issue when trying to start apache on a CentOS virtual machine.
Installed Apache httpd is the latest version and I've configured it to Listen on 0.0.0.0:81, there are no VirtualHosts in the configuration. It's a fresh install of both the OS and Apache so it hasn't been upgraded.
I receive the following error when trying to start apache using "sudo apachectl -k start".
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:81
no listening sockets available, shutting down
Unable to open logs
I'm aware that root is required for port 81, hence the sudo however, I'm also logged in as root.
There is nothing already listening on port 81, confirmed by doing a fuser 81/tcp (or fuser 81/udp for that matter)
No logs are getting created which is making me suspicious that something more serious is the problem.
I'm really stuck and hope someone has some ideas that can help.
Thanks very much for the suggestions guys but I'd already tried that.
With just Listen 81
[root@teamsite-vm ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: (13)Permission denied: make_sock: could not bind to address [::]:81
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:81
no listening sockets available, shutting down
Unable to open logs
[FAILED]
With Listen 192.168.48.135:81
[root@teamsite-vm ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: (13)Permission denied: make_sock: could not bind to address 192.168.48.135:81
no listening sockets available, shutting down
Unable to open logs
[FAILED]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.