Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Guess u better read the apache docs first. theyre in a subdir of where apache is installed or in /usr/doc or var/www. or around there. sort of. I think.
newer distro's (aka not FSSTND) seem to put it in /var somewhere thoif u tweak the apache configs it could be anywhere.
I know redhat by default has them in the /var/www directory, but you can always configure it to go anywhere you want it to.
If you are looking at a default install of redhat 7.0 with RPMS, you will see that the /var/www is for content only. Boot scripts are held in /etc/init.d. And I am pretty sure that the binary is located under /usr/local somewhere. (Not at my linux box right now)
Best process probably would be to follow the original advice
find / -name httpd
That will show you where the files are located to run apache, either with httpd or apachectl. They should be in the same folder. You can start apache with either
i'm actually in the middle of doing this so i'm going to provide my $0.02.
i've done both an apache installation from the rpms and from source. if you want to just get a basic, already configured apache server, run
$ rpm -ivh apache-xxx.rpm
as superuser. you will need to download the rpms from a place like rpmfind.net (you can ncftp directly to their servers and get the file that way).
otherwise, get apache-1.3.20 (the latest stable version) from httpd.apache.org/dist/ and follow the instructions very carefully. i'd suggest this method, especially if you are interested in learning more about linux (it's helping me a lot).
Easiest way to find an executable is to run the whereis command.
As others have stated, the apache binary is called httpd
So do a
whereis httpd
Also, most installs will put standard initialization scripts in
/etc/rc.d/init.d
These scripts are typically setup to startup or shutdown when the system goes into a particular runlevel. I'm not going to write up how that works unless you ask, but i will say that certain symbolic link files are created pointing to files in the init.d directory.
So if u do have apache installed, and it has not been setup to start (which i've noticed the latest redhat *does not do with a basic install* then you can start it up by issuing:
/etc/rc.d/init.d/httpd start
If it works correctly, you will see something like:
unless you install it when you install linux, you have to either get the RPM or the sources and configure it yourself. check out http://telhut.cjb.net/manual/ for more info.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.