LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-04-2007, 02:43 PM   #1
zivota
Member
 
Registered: May 2005
Distribution: CENTOS
Posts: 91

Rep: Reputation: 15
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!!
 
Old 01-04-2007, 04:44 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
make_sock: could not bind to address 192.168.1.254:7777
You host has *not* address 192.168.1.254 perhaps?
 
Old 01-04-2007, 05:24 PM   #3
zivota
Member
 
Registered: May 2005
Distribution: CENTOS
Posts: 91

Original Poster
Rep: Reputation: 15
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.
 
Old 01-04-2007, 07:16 PM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
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?
 
Old 01-05-2007, 12:02 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.
 
Old 01-05-2007, 02:09 PM   #6
zivota
Member
 
Registered: May 2005
Distribution: CENTOS
Posts: 91

Original Poster
Rep: Reputation: 15
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!
 
Old 01-05-2007, 07:29 PM   #7
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Grep the file for "80" to see if there are any other references.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysqld running and reading for connections on port 3306, no port 3306 found from scan darkenigmaa Linux - Networking 10 07-13-2016 11:53 AM
Running Apache on a non-standard port deesto *BSD 8 07-05-2006 07:53 AM
Using serial port card(PCMCIA) with IPAQ running Linux, can't find ttyS0 port d2army Linux - Laptop and Netbook 0 11-12-2005 08:07 PM
Failed to start apache : Apache does not appear to be running : number11 Slackware 9 02-11-2005 09:51 AM
stealth port 80 while running apache web server? TheOneAndOnlySM Linux - General 3 04-24-2004 08:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration