Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
10-19-2005, 12:46 AM
|
#1
|
Member
Registered: Aug 2004
Location: USofA
Distribution: fedora core < SUSE
Posts: 70
Rep:
|
why won't Apache accept any additional Listen ports?
Before I 'upgraded[cough]' to FC4 from FC3 I was able to add additional ports to listen to in my httpd.conf file by adding:
Listen port#
Listen port#
etc etc...
Now, even changing the defaul Listen 80
to somethign different doesn't work, nevermind adding more ports.
service httpd restart gives [failed] on return...not line number or anything. Now I know it used to....after putting FC4 and upgrading to the latest kernel, I also updated the apache to whatever version up2date had....
any takers?
Last edited by mikeghet; 10-19-2005 at 12:17 PM.
|
|
|
10-19-2005, 12:55 AM
|
#2
|
Member
Registered: Aug 2004
Location: USofA
Distribution: fedora core < SUSE
Posts: 70
Original Poster
Rep:
|
Code:
# httpd -v
Server version: Apache/2.0.54
Server built: Sep 2 2005 11:54:18
that's my version obviously
[Tue Oct 18 22:30:02 2005] [notice] caught SIGTERM, shutting down
and above is my lovely and not useful error line in my error log..
Last edited by mikeghet; 10-19-2005 at 01:25 AM.
|
|
|
10-19-2005, 12:12 PM
|
#3
|
Member
Registered: Aug 2004
Location: USofA
Distribution: fedora core < SUSE
Posts: 70
Original Poster
Rep:
|
Nobody, eh?
|
|
|
10-19-2005, 07:18 PM
|
#4
|
Member
Registered: Aug 2004
Location: USofA
Distribution: fedora core < SUSE
Posts: 70
Original Poster
Rep:
|
http://httpd.apache.org/docs/2.0/bind.html
apach 2.0 supposedly supports this, just as the 1.3versions, but 2.0 doesn't actually work.
I just tried using multiple Listens on another brand new FC4 install and httpd just won't start. the error log, again, reports:
"[Wed Oct 19 16:17:10 2005] [notice] caught SIGTERM, shutting down"
Anyone on here ever use Apache and the Listen directive?
|
|
|
10-19-2005, 07:34 PM
|
#5
|
Member
Registered: Jan 2005
Distribution: Fedora Core 3, 4
Posts: 135
Rep:
|
have you tried using "system-config-httpd" I switched from port 80 to 8080 with that to get through the firewall here, and it worked fine for me. it has an "add" feature, which may also allow you to add more ports. it works for me on FC4
Good Luck
-Michael
|
|
|
10-19-2005, 09:19 PM
|
#6
|
Member
Registered: Aug 2004
Location: Newmarket, Ontario
Distribution: OpenSuse 10.2
Posts: 184
Rep:
|
Run httpd -t to check the httpd.conf file syntax. It should return the line number of any incorrect directive.
|
|
|
10-19-2005, 09:20 PM
|
#7
|
Member
Registered: Aug 2004
Location: USofA
Distribution: fedora core < SUSE
Posts: 70
Original Poster
Rep:
|
hey, THANK YOU for responding...this is drving me insanse!
I never knew there was a gui for editing apache...how nice, except it overwrites the entire httpd.conf file...everytime? The config file it generates looks retarded too, but no biggy.
Well, I tried it and saved it...then tried to restart the httpd service and it failed again. Went into the httpd config file and commented out the extra port added, restarted httpd, and of course it worked because it ONLY works on one port and that one port has to port 80!
I don't understand what I could have done to make two different installs not work.
On both of them i used up2date to update the kernel and one only one of them I also updated apache from *.54 - *.55 version...both give same errors, so it must be something else.
Doesn't apache run independenlty of other software? Meaning it doesn't rely on some other configuration to run does it?
Intrestingly enough, the ssconfig file is reporting name doesn't atch errors. too be continuted...
|
|
|
10-19-2005, 09:50 PM
|
#8
|
Member
Registered: Aug 2004
Location: USofA
Distribution: fedora core < SUSE
Posts: 70
Original Poster
Rep:
|
Ok, this is the most insane thing....
Just before I was ready to jump off the nearest bridge I decided to try the ever so lovely command:
apachectl restart
instead of
service httpd restart
Like I have always done.
Guess what!! It works with the different Listen directives now! Very very wierd huh? I guess it has to do with httpd not having permission to bind ports other than 80, or something...
Anyway, I've seen other peopl have this same problem on the internet, and like me five minutes ago, they had no solution, so maybe this will help ppl use ../https -start or service httpd restart same thing.
|
|
|
10-19-2005, 10:20 PM
|
#9
|
Member
Registered: Jan 2005
Distribution: Fedora Core 3, 4
Posts: 135
Rep:
|
thats interesting. i've always used
/etc/init.d/httpd start
because I forgot about service, I wonder if they work differently for some reason. anyways glad to know its working for you.
|
|
|
10-28-2005, 01:03 PM
|
#10
|
LQ Newbie
Registered: Oct 2003
Location: Florida
Distribution: FC4 and Ubuntu and Knoppix
Posts: 8
Rep:
|
Solved - It is an SELinux issue.
Here is the solution to this one.
-Run system-config-securitylevel
-Click the 'SELinux' tab
-Under Modify SELinux Policy, expand 'HTTPD Service'
-Check 'Disable SELinux protection for httpd daemon'
-Click 'OK'
-If it prompts to save the changes, just select 'OK' or 'Continue' or 'Yes' or whatever the positive response is.
If you have any trouble with this, e-mail me: ahildoer@gmail.com
|
|
|
10-28-2005, 01:45 PM
|
#11
|
Member
Registered: Aug 2004
Location: USofA
Distribution: fedora core < SUSE
Posts: 70
Original Poster
Rep:
|
Oh, dang man, ur too good..! ;-)
I'm not at home on my linux box right now, but I know exactly what you are talking about.
Hopefully it works...I'll be sure to let ya know either way.
I was getting ready to convert my FC4 box to SUSE, as i've already done withmy desktop pc.
|
|
|
11-08-2005, 06:08 PM
|
#12
|
LQ Newbie
Registered: Jul 2005
Location: Lock Haven, PA, USA
Distribution: Redhat 7.3, 9 and Fedora 3
Posts: 9
Rep:
|
This worked great for me...thanks for the tip ahildoer The only one thing I can't figure out is how to grant access to a users public_html directory in FC3. If I could get this working it'd be great. I never had this problem with RH9.
|
|
|
11-08-2005, 06:21 PM
|
#13
|
LQ Newbie
Registered: Oct 2003
Location: Florida
Distribution: FC4 and Ubuntu and Knoppix
Posts: 8
Rep:
|
public_html folder issues
Tersely, as I am studying for 3 midterms at the moment, make sure your permissions are correct.
For my public_html folder I set the following permissions:
$ chmod 701 /home/ahildoer
$ chmod 701 /home/ahildoer/public_html
In order for the web server to be able to get to the contents of the public_html folder, the user’s home folder and the public_html folder must be executable. In the context of directories, execute allows the directories to be traversed. You may also want to set the permissions of the contents of the public_html folder as well. I do so with the following command:
cmod -R 755 /home/ahildoer/public_html/* # this will modify only the contents of the folder and all subfolders
One final thing to check:
$ vi /etc/httpd/conf/httpd.conf file # make sure you uncomment the public_html related entries
$ sudo /sbin/service httpd restart
If that does not get your public_html folder up and running, I do not know what will
|
|
|
11-08-2005, 06:42 PM
|
#14
|
LQ Newbie
Registered: Jul 2005
Location: Lock Haven, PA, USA
Distribution: Redhat 7.3, 9 and Fedora 3
Posts: 9
Rep:
|
the httpd.conf file was moved by one of the above changes. I have no idea where it's at now.
I'm pretty sure I uncommented those lines though and it still won't work with the chmod changes.
|
|
|
11-08-2005, 06:48 PM
|
#15
|
LQ Newbie
Registered: Oct 2003
Location: Florida
Distribution: FC4 and Ubuntu and Knoppix
Posts: 8
Rep:
|
you can try doing this to find the httpd.conf file:
$ sudo find / | grep 'httpd\.conf'
That could take some time.
Or if you plan to do lots of searches:
$ sudo updatedb # writes a file cache
$ locate httpd.conf # use this to seach the file cache for a file
Note: as files move around, the cache will go out of date. So do an updatedb before you start searching if it has been a while since the last time you ran updatedb.
But like I said before, if the conf file is configured correctly, and your permisions are set correctly, I do not know what it could be. I am actually not a Linux expert by any means.
Good luck.
|
|
|
All times are GMT -5. The time now is 11:12 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|