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!
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.
Hello, I'm having a strange problem that I'm totally stuck on. What I am trying to do is open my test website to the world, I've opened up my ports on my router and thats been tested externally. Now I need to change the port that my website is accessible to. I want to use a non-standard port of 4040.
so as 'Root' I've gone into /etc/httpd/conf
Then 'Nano httpd.cnf'
Searched down the file and found 'Listen 80'
I changed it to 'Listen 127.0.0.1:4040' for testing.
saved and then typed '/usr/sbin/apachectl -k graceful' to restart the service. Here is where I get my problem. I get the following error message.
httpd not running, trying to start
(13)Permission denied: make_sock: could not bind to address 127.0.0.1:4040
no listening sockets available, shutting down
Unable to open logs
I'm not totally stuck, I've been searching the internet for 2 days now for something to work, but nothing has, everything is for other versions of Apache it seems.
This is most likely due to SELinux enforcing. To confirm this you can temporarily set it passive and then test. If it works then you've identified the culprit and can modify your selinux policy to let apache bind to port 4040.