LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-11-2003, 01:48 PM   #1
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Rep: Reputation: 30
apachectl


Hey everyone, im new here and im very pleased to have a board like this. Ive peformed a few searches but didnt find much relating to my problem.

Basically, im running RH8 with apache Apache/2.0.40 (Red Hat Linux)


I simply want to restart the server since i made some changes to the .conf file, but that seems to be giving me trouble. From what i thought, you just implement the command , "apachectl -restart"

however, when i goto my apachectl script, i try running it and i get this error:

[root@localhost sbin]# apachectl
bash: apachectl: command not found


Can someone help me out? thanks very much

-N~
 
Old 04-11-2003, 01:50 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Its probably not in your $PATH..

Have you tried /sbin/apachectl ?

Or maybe with a ./ in front of it.. ? ./apachectl
 
Old 04-11-2003, 02:10 PM   #3
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Original Poster
Rep: Reputation: 30
thanks man, how do i add /usr/sbin to my path?

is it SET $path = /usr/sbin ??

also, ./apachectl works, but i get this for output:



./apachectl -k restart
Syntax error on line 116 of /etc/httpd/conf.d/ssl.conf:
SSLCertificateFile: file '/etc/httpd/conf/ssl.crt/server.crt' does not exist or is empty

im not running any ssl or anything like that so im not sure whats up.

thanks

Last edited by sopiaz57; 04-11-2003 at 03:24 PM.
 
Old 04-11-2003, 04:22 PM   #4
notsoevil
Member
 
Registered: May 2001
Location: Louisville, Kentucky, USA
Distribution: RedHat ES
Posts: 120

Rep: Reputation: 15
If BASH is your shell, you can add to your path (effective after re-logging in) by editing your .bash_profile in your home directory, appending the needed information. For example, you might see a line there like this:

PATH=$PATH:$HOME/bin

So, you'll want to make it look like this:

PATH=$PATH:$HOME/bin:/usr/sbin

It should be obvious what to do about the error because it points you to the offending line. Edit the file and comment out (eg: prepend the line with a '#' mark) that SSLCertificateFile directive.

Also, you should always run 'apachectl configtest' before trying to restart httpd.
 
Old 04-11-2003, 05:00 PM   #5
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Original Poster
Rep: Reputation: 30
Thank you. So if i wanted to add to the $PATH for not only myself but all users of the system, could i edit the /etc/profile file?

thanks in advance guys.
 
Old 04-11-2003, 07:11 PM   #6
pablob
Member
 
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31
Sure.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apachectl start not working cparker15 Linux - Networking 2 01-20-2005 09:15 PM
Apache2: apachectl command not found hektor Linux - Software 3 01-14-2005 01:23 PM
apachectl start error emsky Linux - Newbie 1 04-04-2004 01:16 AM
apachectl verse httpd onlinesnet Linux - Newbie 5 09-19-2001 08:35 PM
apachectl configtest ... blah punt Linux - Software 7 07-18-2001 12:23 PM


All times are GMT -5. The time now is 08:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration