Linux - SoftwareThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Are you in the directory /usr/sbin when you try to run the apachectl command?
With RH9 standard users do not have /usr/sbin in their PATH. If you change to root with just the su command instead of su - then you will not use root's PATH, which does contain /usr/sbin. Try changing to the /usr/sbin directory and then starting apache with ./apachectl start.
Calm down. When you type in all UPPER CASE LETTERS IT COMES OFF AS YOU YELLING AT US!
Type this at the prompt also logged in as root:
/usr/sbin/apachectl <start, stop or restart>
Like slizadel said, you probably don't have /usr/sbin in your current path or your logged in as a regular user which won't have it in your current path. Login or su to root and then attempt the above or just apachectl, etc.
I am am running redhat 7.3, (I believe it is 7.3). I installed Apache by compiling from source and used the default location for the install to place its files. When I did this the apachectl file was put into:
If you are using the package that came with Redhat, I am not sure what default location that would be in. But the path I gave might be worth a try.