LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-07-2003, 04:18 AM   #1
l0f33t
Member
 
Registered: May 2003
Location: Washington State
Distribution: Gentoo
Posts: 145

Rep: Reputation: 15
Insatlled Apache but can find it??


I just installed Apache on my Mandrake 9.0 box.

This is really strange. I'm either very tired or its my noobness to linux.

I can get to http://localhost and the default Apache page comes up.

Even when I open a shell and login as root I'm not able to find the apache directory anywhere. The doumentation suggests that its /usr/local/apache. The only files that I can find are:
apachectl
apachectl-perl
in the /usr/sbin directory...

Am I missing something?

Thanks,
 
Old 08-07-2003, 08:06 AM   #2
Antoine
LQ Newbie
 
Registered: Aug 2003
Location: Toulouse - FRANCE
Distribution: RedHat 7.2 / 8.0
Posts: 7

Rep: Reputation: 0
start apache with
apachectl start
find your htdocs or www directory with:
find / -name www or find / -name htdocs

good luck...
 
Old 08-07-2003, 08:20 AM   #3
Cooner
Member
 
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109

Rep: Reputation: 15
httpd.conf is probably in /etc/apache or /etc/httpd/conf
the rest is probably /var/www
 
Old 08-07-2003, 08:32 AM   #4
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
If you want to look for something, you can always use the whereis command.
In this case, you would type:
Code:
whereis httpd
This will display a list of files and directories.
 
Old 08-07-2003, 05:10 PM   #5
l0f33t
Member
 
Registered: May 2003
Location: Washington State
Distribution: Gentoo
Posts: 145

Original Poster
Rep: Reputation: 15
Wow. Thanks everyone. This helps bunches.

2 quick questions.

1) Why is it that when I'm doing turoials ex. An Apache tutorial they are having me look in directories that don't exist. Like the one I'm doing now says as an example:
***********************************************
>The Apache distribution does come with another method of starting, stopping, and restarting Apache. The script is called apachectl. In the Apache src directory (apache_1.3.9/src), type make at the prompt. You will see a few more files compiled. After make is done, go to the support directory (apache_1.3.9/src/support), where you will find a bunch of new files created. Among them, you'll find a few helper scripts, including apachectl, htpasswd (used to make Apache passwords for protected directories), and rotatelogs (its use is explained later). There are a few other files, but these are the most important.

Make a copy of these three files to your Apache binary directory. If you did not change the default settings, this would be located at /usr/local/apache/bin/.


To start the server, use


/usr/local/apache/bin/apachectl start


There is also

/usr/local/apache/bin/apachectl stop

and


/usr/local/apache/bin/apachectl restart
********************************************
I thought that all linux/unix file/directory structures were uniform? Is this a Linux Mandrake thing? This really through me way off. And this isn't the first time that I've tried to follow a doc and get totally lost. This is like assumed information which is what makes learning linux/unix very tricky. People always assume that you know so much. Atleast thats what it seems like.

2) When I use the find / -name www (logged in as non root) I get a huge list of files/paths with (permission denied)
So I su and issue the same command:
[root@localhost /]# find / -name www
find: /mnt/floppy: Input/output error
find: /mnt/cdrom: Input/output error
/var/www

I did a "man find" but had a hard time deciphering the options I used. "/" tells find to start looking in the / directory? "-name" tells find to look for the Directory name "www" in the / directory?
What if I wanted to find a specific file not a directory but didn't know where this file was and wasn't sure of the correct spelling?

Thanks again. You guys have been a huge help. Much appreaciated.
 
Old 08-07-2003, 05:19 PM   #6
lfur
Member
 
Registered: Jul 2003
Location: Slovenia
Distribution: Slackware & FreeBSD
Posts: 209

Rep: Reputation: 30
Use:
Code:
find / -name file.name
In file.name you can use *, ?, [] for searching for different patterns of file names. If there is a specific file type you want to find, use:
Code:
find / -name file.name -type f
for a regular file. Use man find for more -type options. And ... / is your main directory, father of them all
 
Old 08-07-2003, 05:43 PM   #7
l0f33t
Member
 
Registered: May 2003
Location: Washington State
Distribution: Gentoo
Posts: 145

Original Poster
Rep: Reputation: 15
Thanks lfur,

What the heck is "code:"? I'm assuming that your mean "command" then followed be the example commands below?

Thanks,
 
Old 08-07-2003, 06:27 PM   #8
lfur
Member
 
Registered: Jul 2003
Location: Slovenia
Distribution: Slackware & FreeBSD
Posts: 209

Rep: Reputation: 30
l0f33t,

code is just a header of the command. LinuxQuestions.org uses some vB (similar to HTML) code, with wich you can format your text, so it is more readable.

Yes, use what is between those two lines.

Enjoy
 
Old 08-07-2003, 07:21 PM   #9
l0f33t
Member
 
Registered: May 2003
Location: Washington State
Distribution: Gentoo
Posts: 145

Original Poster
Rep: Reputation: 15
Thanks lfur.
 
Old 08-07-2003, 07:36 PM   #10
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
BTW, how did u inststall apache? Hopefully with rpm?
Then you can, e.g. (I run Mandrake):
rpm -qil apache-conf-1.3.23-4mdk
 
Old 08-07-2003, 08:36 PM   #11
l0f33t
Member
 
Registered: May 2003
Location: Washington State
Distribution: Gentoo
Posts: 145

Original Poster
Rep: Reputation: 15
Arnold,

You rock-n-roll.

This is very good to know. Is there a same command for tar files that lets you see the paths like when you do a "./configure" "make", "make install"?

I was just about to uninstall this and install from the source instead of the rpm. The only reason that I planned on doing that is because every Apache tutorial out there seem to all have the same directions and path conventions.

I.E. path conventions used in the all the tutorials I've been at use the path conventions of:
/usr/local/apache
/usr/local/apache/bin (start and stop commands within here)
and numerous other examples that I'm not able to follow.

When installing from the source will this put things in directory paths listed in the tutorials? Did RPM do things differently?

Just curious...
Thanks Arnold.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where I Can Find Apache In Fedora tantawy Linux - Software 4 10-20-2005 04:36 PM
Nvidia Drivers wont stay Insatlled computergee Linux - Software 4 08-10-2005 10:33 AM
apache died how do we find out why? dtra Linux - Software 1 06-06-2005 09:48 AM
apache cant find applet logicdisaster Programming 2 08-21-2004 04:09 AM
How to find out whether apache has EAPI? gogo Linux - General 2 07-15-2002 08:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:24 AM.

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