LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Error when running Apache on any other port than 80? (https://www.linuxquestions.org/questions/linux-software-2/error-when-running-apache-on-any-other-port-than-80-a-516345/)

zivota 01-04-2007 02:43 PM

Error when running Apache on any other port than 80?
 
I want to run Apache2 on any other port than 80, let's say 7777. This is what I got.

----
Starting httpd: (13)Permission denied: make_sock: could not bind to address 192.168.1.254:7777

no listening sockets available, shutting down
Unable to open logs
----


There is nothing on port 7777. OS is Centos 4.4

Any ideas?

Thx!!

unSpawn 01-04-2007 04:44 PM

make_sock: could not bind to address 192.168.1.254:7777
You host has *not* address 192.168.1.254 perhaps?

zivota 01-04-2007 05:24 PM

Quote:

Originally Posted by unSpawn
make_sock: could not bind to address 192.168.1.254:7777
You host has *not* address 192.168.1.254 perhaps?

Address is 192.168.1.254. It's my gateway and it works fine for everything else.

stickman 01-04-2007 07:16 PM

Quote:

Originally Posted by zivota
Address is 192.168.1.254. It's my gateway and it works fine for everything else.

So 192.168.1.254 is not local to the system? What directive in your httpd.conf file did you change to move the port to 7777?

unSpawn 01-05-2007 12:02 PM

Address is 192.168.1.254. It's my gateway and it works fine for everything else.
Set the LAN IP of the machine instead, *then* map the port in the router to the machine. Make sure you harden the box appropriately before exposing it.

zivota 01-05-2007 02:09 PM

There is confusion going around here.

Machine that I am installing Apache on IS gateway at the same time and it does have IP:192.168.1.254.
That't what I thought when I said
...
"Address is 192.168.1.254. It's my gateway and it works fine for everything else."
....

Only thing I changed in default htttp.conf was
Listen 192.168.1.254:7777


Sorry for confusion!

stickman 01-05-2007 07:29 PM

Grep the file for "80" to see if there are any other references.


All times are GMT -5. The time now is 05:07 PM.