Help - Search - Members - Calendar
Full Version: Apache problem? Please help!
The Planet Forums > Control Panels > cPanel/WHM
Amish_Patel
EV1 aren't helping me with this apache problem I have, so I am wondering if anyone from here can?

My sites are not showing up, however, my server IS up and IS responding to SSH. They are saying the only thing that is not responding at this time is Apache.

They say it has been edited quite often so they can't/won't help. I think I edited httpd.conf once and that was months and months ago so I cannot see why this would be the problem...

I upgraded kernel and Apache yesterday through controlpanel, and I am wondering if this may be the problem?? My sites, however, did seem to work fine after the Apache upgrade?? Note: I didn't reboot after the upgrade.

The error on my sites right now is:



While trying to retrieve the URL: http://www.weforums.com/forums

The following error was encountered:
We can not connect to the server you have requested.



This means that:
The server might be busy at this time.
The server is not reachable.
Please try later to see if you can go through.

Any help would be greatly appreciated!
theuruguayan
try :

/etc/init.d/httpd restart

for what i can see you apache is down and you need to start/restart it.

carlos
Amish_Patel
I'll try that when I get home but I imagine ev1 have already done this? My thinking (and I am not very technical) is that the apache upgrade via controlpanel wiped out all my changes from httpd.conf and that the 'new' version hasn't been able to cope with my traffic.. that's just my thinking anyway, I'm probably 100% wrong.
theuruguayan
QUOTE
Originally posted by Amish_Patel
I'll try that when I get home but I imagine ev1 have already done this?  My thinking (and I am not very technical) is that the apache upgrade via controlpanel wiped out all my changes from httpd.conf and that the 'new' version hasn't been able to cope with my traffic.. that's just my thinking anyway, I'm probably 100% wrong.


if you did the update thought cpanel atleast the basic config they keep, from version to version they make another way to work with safe mode and other stuff.

Not sure if they try this, perhaps you should ask in the ticket. Btw, you could try to restart apache via WHM and see what you get (one of the last options of the menu).

carlos
Amish_Patel
Hmmm, well either updating CPanel/Apache or both has screwed something up majorly. Apache won't restart according to EV1... do you know the apache error log path so I can see what that says when I get home?
theuruguayan
QUOTE
Originally posted by Amish_Patel
Hmmm, well either updating CPanel/Apache or both has screwed something up majorly.  Apache won't restart according to EV1... do you know the apache error log path so I can see what that says when I get home?


/var/log/httpd
Amish_Patel
ty
eth00
There is also always /scripts/easyapache. Apache might have broken as part of cpanel upgrade (don't think there were any upgrades recently that have that problem but worth trying). Worst case it also has a option to reset the httpd.conf

Look in the error log first, hopefully you can find something that will help. Running "httpd configtest" will also tell if there are any problems with the httpd.conf -- be forewarned that warnings are ok it is only errors that will cause apache not to start.
Amish_Patel
Ok problem according to EV1:

service httpd start
Syntax error on line 215 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/mod_bwlimited.so into server: /usr/local/apache/libexec/mod_bwlimited.so: cannot open shared object file: No such file or directory
/etc/init.d/httpd start: httpd could not be started

This means that at least one library is missing that is listed in your httpd.conf file. This may be due to a problem during installing apache or modification of the httpd.conf file. If you have any additional questions, please contact us.


ANY IDEA how to fix that?
eth00
Remove line 251 which shoudl be something like

Addmodule mod_bwlimited

Apparently you have some bandwidth limiting module that is not working. After it is removed you can work on reinstalling it. For now commenting out or removing it will allow apache to start.
Amish_Patel
You mean line 215 right lol. When you say reinstalling it.. do you mean changing some of the variable values and things like that? Sorry to sound amateur, but I really have had no experience with SSH and am only working on the basis that I've edited this file a few times for it to work efficiently in accordance with VBulletin and another site on my server.

Thanks!
eth00
Try doing this, I am going to have you download the file from one of my servers.

cd /usr/local/apache/libexec; wget http://eth0.us/mod_bwimited.so; service httpd start

That should fix you up icon_smile.gif If it does not see what the configtest still reports.
Amish_Patel
QUOTE
Originally posted by eth00
Try doing this, I am going to have you download the file from one of my servers.

cd /usr/local/apache/libexec; wget http://eth0.us/mod_bwimited.so; service httpd start

That should fix you up icon_smile.gif If it does not see what the configtest still reports.


Ok, mate.. Ill comment that line 215 out and try those commands you gave me in SSH :-) ... Also, Im guessing 'the no such file or directory' error means that apache wasn't installed correctly through WMH?

Do you have AIM or MSN by any chance? PM me any of them if you do, unless you don't mind people seeing.

Thanks for your help!


NOTE: Sorry, that get command you gave me means I don't have to edit the comment out.. right?
eth00
I sent you my screenname. Correct if you run my command you do not have to comment the line. I am having you place the file on your server which does not exist. The commenting out was just to have apache not look at it.
theuruguayan
QUOTE
Originally posted by Amish_Patel
Ok, mate.. Ill comment that line 215 out and try those commands you gave me in SSH :-) ... Also, Im guessing 'the no such file or directory' error means that apache wasn't installed correctly through WMH?

Do you have AIM or MSN by any chance?  PM me any of them if you do, unless you don't mind people seeing.

Thanks for your help!


NOTE: Sorry, that get command you gave me means I don't have to edit the comment out.. right?


is one or the other...

eth0 give you the url for the missing file.

and how to disable that module too.

carlos
Amish_Patel
Thanks for your help guys, I think I will just comment it and out and restart httpd, see if that gets Apache rollin' again!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.