Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

Rep: Reputation: 30

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

Old 04-11-2003, 12:50 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

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

Have you tried /sbin/apachectl ?

Or maybe with a ./ in front of it.. ? ./apachectl
Old 04-11-2003, 01:10 PM   #3
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.


Last edited by sopiaz57; 04-11-2003 at 02:24 PM.
Old 04-11-2003, 03:22 PM   #4
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:


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


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, 04:00 PM   #5
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, 06:11 PM   #6
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31


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 08:15 PM
Apache2: apachectl command not found hektor Linux - Software 3 01-14-2005 12:23 PM
apachectl start error emsky Linux - Newbie 1 04-04-2004 12:16 AM
apachectl verse httpd onlinesnet Linux - Newbie 5 09-19-2001 07:35 PM
apachectl configtest ... blah punt Linux - Software 7 07-18-2001 11:23 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:04 PM.

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