Previous Thread
Next Thread
Print Thread
Rate Thread
#77292 10/06/2001 11:08 PM
Joined: May 2001
Posts: 1,042
Likes: 7
B
Brett Offline OP
Moderator
OP Offline
Moderator
B
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
N
Veteran
Offline
Veteran
N
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
G
Member
Offline
Member
G
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
M
P.I.T.A. / Programmer
Offline
P.I.T.A. / Programmer
M
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
N
Veteran
Offline
Veteran
N
Joined: Oct 2000
Posts: 2,223
% whereis apachectl


Picture perfect penmanship here.
Sponsored Links
Joined: May 2001
Posts: 1,042
Likes: 7
B
Brett Offline OP
Moderator
OP Offline
Moderator
B
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
B
Brett Offline OP
Moderator
OP Offline
Moderator
B
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
B
Brett Offline OP
Moderator
OP Offline
Moderator
B
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
C
cal Offline
Programmer
Offline
Programmer
C
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
B
Brett Offline OP
Moderator
OP Offline
Moderator
B
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
G
Member
Offline
Member
G
Joined: Feb 2000
Posts: 4,625
your on a virtual host? frown

ROFLMAO!

Joined: Jul 2000
Posts: 1,349
E
Ell Offline
Member
Offline
Member
E
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
C
Junior Member
Offline
Junior Member
C
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
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,552
Posts293,830
Members13,842
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 238
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 5
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,809
Greg Hard 4,625
Top Posters(30 Days)
stell 3
Gizmo 1
Morgan 1
isaac 1
Top Likes Received
isaac 66
Gizmo 12
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2021 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Snapshot build 20201211)
Responsive Width:

PHP: 5.4.45 Page Time: 0.066s Queries: 40 (0.027s) Memory: 3.3630 MB (Peak: 3.6154 MB) Data Comp: Zlib Server Time: 2021-03-07 14:25:11 UTC
Valid HTML 5 and Valid CSS