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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
08-07-2003, 04:18 AM
|
#1
|
Member
Registered: May 2003
Location: Washington State
Distribution: Gentoo
Posts: 145
Rep:
|
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, 
|
|
|
08-07-2003, 08:06 AM
|
#2
|
LQ Newbie
Registered: Aug 2003
Location: Toulouse - FRANCE
Distribution: RedHat 7.2 / 8.0
Posts: 7
Rep:
|
start apache with
apachectl start
find your htdocs or www directory with:
find / -name www or find / -name htdocs
good luck...
|
|
|
08-07-2003, 08:20 AM
|
#3
|
Member
Registered: Jul 2003
Location: Hastings, MN. USA
Distribution: Ubuntu 10.xx
Posts: 109
Rep:
|
httpd.conf is probably in /etc/apache or /etc/httpd/conf
the rest is probably /var/www
|
|
|
08-07-2003, 08:32 AM
|
#4
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
If you want to look for something, you can always use the whereis command.
In this case, you would type:
This will display a list of files and directories.
|
|
|
08-07-2003, 05:10 PM
|
#5
|
Member
Registered: May 2003
Location: Washington State
Distribution: Gentoo
Posts: 145
Original Poster
Rep:
|
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.
|
|
|
08-07-2003, 05:19 PM
|
#6
|
Member
Registered: Jul 2003
Location: Slovenia
Distribution: Slackware & FreeBSD
Posts: 209
Rep:
|
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 
|
|
|
08-07-2003, 05:43 PM
|
#7
|
Member
Registered: May 2003
Location: Washington State
Distribution: Gentoo
Posts: 145
Original Poster
Rep:
|
Thanks lfur,
What the heck is "code:"? I'm assuming that your mean "command" then followed be the example commands below?
Thanks,
|
|
|
08-07-2003, 06:27 PM
|
#8
|
Member
Registered: Jul 2003
Location: Slovenia
Distribution: Slackware & FreeBSD
Posts: 209
Rep:
|
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
|
|
|
08-07-2003, 07:21 PM
|
#9
|
Member
Registered: May 2003
Location: Washington State
Distribution: Gentoo
Posts: 145
Original Poster
Rep:
|
Thanks lfur.
|
|
|
08-07-2003, 07:36 PM
|
#10
|
Member
Registered: Dec 2002
Posts: 226
Rep:
|
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
|
|
|
08-07-2003, 08:36 PM
|
#11
|
Member
Registered: May 2003
Location: Washington State
Distribution: Gentoo
Posts: 145
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 05:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|