UBB.Dev
Posted By: Brett URGENT - Telnet experts here! - 10/07/2001 7:08 AM
I just made changes to the apache httpd.conf, when i logged into the SSH client, i typed in

% restart_apache

and got the error "No such job"

I really need someone's help, because all my pages are Internal server errors until i restart the apache! HELP!
Posted By: navaho Re: URGENT - Telnet experts here! - 10/07/2001 9:33 PM
if it's RedHat it's

/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start

if it is not RedHat then post. Someone will know. Mark knows BSD well.
Posted By: Greg Hard Re: URGENT - Telnet experts here! - 10/07/2001 10:06 PM
apachectl restart
for BSD, i believe. If not, maybe:

/usr/sbin/apachectl stop

/usr/sbin/apachectl start
Posted By: Mark Badolato Re: URGENT - Telnet experts here! - 10/07/2001 11:11 PM
It all depends on where apache is installed, and under what name.

Sometimes /usr/local/apache/bin/apachectl start
others /usr/local/etc/rc.d/httpd start
or /usr/sbin/httpd start

could be anywhere. You need to know where the binary is

--mark
Posted By: navaho Re: URGENT - Telnet experts here! - 10/08/2001 2:11 AM
% whereis apachectl
Posted By: Brett Re: URGENT - Telnet experts here! - 10/08/2001 2:32 AM
/etc/rc.d/init.d/httpd stop
gives me:
Quote
quote:
/etc/rc.d/init.d/httpd start gives me a huge list of stuff like:
Quote
quote:
I got no flie or directory for masterminds and marks fix.
Posted By: Brett Re: URGENT - Telnet experts here! - 10/08/2001 2:36 AM
i put
"whereis httpd" and got this
Quote
quote:
Then "whereis apache" gave me this
Quote
quote:
Posted By: Brett Re: URGENT - Telnet experts here! - 10/08/2001 2:49 AM
Alright tried the command "/usr/sbin/httpd restart" and got this

Quote
quote:
Posted By: cal Re: URGENT - Telnet experts here! - 10/08/2001 9:55 AM
are you logged in as root? if you try to restart apache (running as root) when you're logged in as a normal user, it will report that it's not running.

Just a thought smile
Posted By: Brett Re: URGENT - Telnet experts here! - 10/09/2001 7:16 AM
My servers contacted me earlier saying they saw that i apparently "created a partial AddHandler" and this caused my ise error. However, they didn't say how to log in as root. How do you?
Posted By: Greg Hard Re: URGENT - Telnet experts here! - 10/09/2001 7:54 AM
your on a virtual host? frown

ROFLMAO!
Posted By: Ell Re: URGENT - Telnet experts here! - 10/09/2001 11:00 AM
You can't touch apache unless you're root, which, unless you admin the server, you're probably not.

Hmm... but you must be logged in as root, otherwise you shouldn't be able to edit httpd.conf... frown type the command su - : if it asks you for a password, you're not running as root.
Do you know what operating system you're running? Are there any special considerations, like is your server a RaQ or other pre-setup server? Who provides the server lease?

[ 10-09-2001: Message edited by: Borg ]
Posted By: Carassus Re: URGENT - Telnet experts here! - 10/09/2001 12:14 PM
I am not an expert. I just got in. I wish to see if this forum works. Sorry for disturb.
© UBB.Developers