Previous Thread
Next Thread
Print Thread
Rate Thread
#77292 10/07/2001 12:08 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
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!

Sponsored Links
Joined: Oct 2000
Posts: 2,223
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,223
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.


Picture perfect penmanship here.
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
apachectl restart
for BSD, i believe. If not, maybe:

/usr/sbin/apachectl stop

/usr/sbin/apachectl start

Joined: Sep 2000
Posts: 755
P.I.T.A. / Programmer
P.I.T.A. / Programmer
Offline
Joined: Sep 2000
Posts: 755
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


"Annnnnnnndd now, opening for Iron Maiden...... WYLD STALLYNS!!!" --Bill S. Preston, Esquire and Ted "Theodore " Logan
Joined: Oct 2000
Posts: 2,223
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,223
% whereis apachectl


Picture perfect penmanship here.
Sponsored Links
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
/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.

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
i put
"whereis httpd" and got this
Quote
quote:
Then "whereis apache" gave me this
Quote
quote:

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Alright tried the command "/usr/sbin/httpd restart" and got this

Quote
quote:

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
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

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
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?

Sponsored Links
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
your on a virtual host? frown

ROFLMAO!

Joined: Jul 2000
Posts: 1,349
Ell Offline
Member
Member
Offline
Joined: Jul 2000
Posts: 1,349
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 ]

Joined: Oct 2001
Posts: 10
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 10
I am not an expert. I just got in. I wish to see if this forum works. Sorry for disturb.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)