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.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Locate your httpd.conf file to configure your server which is the main configuration. Not sure where its located by default, do a:
find / -name httpd.conf
or
locate httpd.conf
The apache standard way to do it is:
apachectl start <=== to start the server
apachectl stop <=== to stop the server
apachectl restart <=== restarts the server
apachectl configtest <=== tests your configuration file before you might want to start the server to check and make sure it won't start with errors, etc.
apachectl command is usually by default located in /usr/sbin and in most cases you need to be logged in as root to run the command.
i DID TYPE CORRECTLY apachectl ,i tried may combinations.what may be the problem?DO i have to download and installl again?
I was able to locate the httpd/
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.
Hi alll!!!
Thanks Trickykid,i'm sorry i did not intend to yell nor shout.I typed the reply in a hurry.
sorry for that.
I'll try logging on as root.
Thanks everybody for your reply,
Sameer Managoli
Hi trickykid,
When i type the command from root locate apachectl
there is no action at all like this
[root@dyn-2-72 ~]# locate apachectl
[root@dyn-2-72 ~]#
As i'm totally clueless as how should i proceed further.PLease help me.
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:
/usr/local/httpd/bin
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.