LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 07-09-2001, 07:29 PM   #1
DragonClaw
LQ Newbie
 
Registered: Jul 2001
Location: United States
Distribution: RedHat 7.1
Posts: 11

Rep: Reputation: 0
|_|b4|z newbie question!!!


Where is the Apache executable... I'm running RedHat 7.1..

I know I may sound a little ... ehh... ish but I just can't find the Apache server... I've had website creation experience yes...
 
Old 07-10-2001, 04:07 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Do a
Code:
find / -name httpd
that'll find it. You might want to use apachectl to control httpd though.

HTH

Jamie...
 
Old 07-14-2001, 01:44 PM   #3
DragonClaw
LQ Newbie
 
Registered: Jul 2001
Location: United States
Distribution: RedHat 7.1
Posts: 11

Original Poster
Rep: Reputation: 0
ummhhh I don't have any apachectl....

*looks confused*


Ehh where would I put the webpage I want to host so others can see them?
 
Old 07-14-2001, 05:41 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.
 
Old 07-14-2001, 11:35 PM   #5
cinnix
Member
 
Registered: Jun 2001
Location: Northern Ohio
Distribution: RedHat, Engarde and LFS
Posts: 237

Rep: Reputation: 30
You can also trying reading the boot script for apache. /etc/init.d/httpd. Look at this script to see what it is executing at start-up.
 
Old 07-15-2001, 12:43 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 07-15-2001, 01:24 AM   #7
cinnix
Member
 
Registered: Jun 2001
Location: Northern Ohio
Distribution: RedHat, Engarde and LFS
Posts: 237

Rep: Reputation: 30
Quote:
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)
 
Old 07-15-2001, 03:11 AM   #8
daemorhedron
LQ Newbie
 
Registered: Jul 2001
Posts: 16

Rep: Reputation: 0
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

./httpd

or

./apachectl start

HTH! =)
 
Old 07-16-2001, 01:39 PM   #9
punt
Member
 
Registered: Jun 2001
Distribution: Fedora 22
Posts: 371

Rep: Reputation: 30
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).

 
Old 07-16-2001, 02:05 PM   #10
gizmola
Member
 
Registered: Jun 2001
Location: Los Angeles, CA USA
Distribution: RedHat
Posts: 53

Rep: Reputation: 15
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:

Starting blah..... [OK]

gl.
 
Old 07-16-2001, 02:09 PM   #11
BrianG
Member
 
Registered: Apr 2001
Location: Cape Cod, MA
Distribution: Redhat 6.2/7.2 & FreeBSD 4.4
Posts: 108

Rep: Reputation: 15
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.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Very Newbie Question. Please Help imfineru Linux - Newbie 8 08-20-2005 05:09 AM
Apache newbie question.. (very newbie question) tarballed Linux - Newbie 1 02-07-2003 08:41 PM
RE: Suse 8.0 hardware question {newbie question, pls help} Radiouk Linux - Distributions 2 06-04-2002 12:53 PM
RE: Samba question pls help {Newbie question} Radiouk Linux - Networking 4 06-03-2002 06:40 PM
Security question {newbie question} Radio Linux - Security 3 05-17-2002 06:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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
Open Source Consulting | Domain Registration