LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-09-2004, 08:07 PM   #1
kaega2
Member
 
Registered: Sep 2003
Location: Ontario, Canada
Distribution: Gentoo 2004.3
Posts: 195

Rep: Reputation: 30
Can't find root directory for Apache 2.0 (Mandrake 9.2)


Hey peoples,

I guess I'm just too impatient to figure this out on my own, but I'm going to ask you guys cause you probably know.

I'm running mandrake 9.2, I recently updated from mandrake 9.1. When I installed mandrake 9.1 I only had the first disk so I didn't install everything whereas 9.2 I have all three. So here's my question...

When running mandrake 9.1 I downloaded and installed apache software (I'm not sure which version) and installed it. I then edited the /usr/local/apache2/conf/httpd.conf file so that my directory root was a folder in my home folder and everything was good. When I installed the software in 9.2 and tried starting it I received a message saying it couldn't start because httpd was already running... and sure enough I checked and it was. So I couldn't start the software. When I type in my IP address in any browser it brings me to the default page that says the software is installed correctly and all I have to do is replace the files that are currently in the directory.

This is all fine and dandy that it works, i think that's awesome that there's one built in. The only problem is that the file that i'm used to editing (/usr/local/apache2/conf/httpd.conf) has no effect on where it looks for the files. I would like to know where the directory is that these files are being kept in is and where the configuration file is that will allow me to change it.

Thanks
 
Old 02-09-2004, 08:33 PM   #2
ter_roshak
Member
 
Registered: May 2001
Location: Everett, WA
Distribution: Gentoo, RedHat
Posts: 102

Rep: Reputation: 15
I just switched to using apache2 and it uses a slightly different format, my doc root is in /var/www/localhost/htdocs and the config file is called apache2.conf, not httpd.conf, and it is located in /etc/apache2/conf on my system. I hope this helps.

-Josh
 
Old 02-09-2004, 10:17 PM   #3
kle
LQ Newbie
 
Registered: Nov 2003
Location: in a cardboard box, over a grate, on 14th and Main.
Distribution: Mandrake 9.2, Windows XP Pro
Posts: 20

Rep: Reputation: 0
don't you need to restart the apache server to implement whatever changes you do to config files? I know I have to do that for my ftpd and samba server; maybe apachectl -restart (or whatever option it is) will do the trick?
 
Old 02-09-2004, 10:28 PM   #4
kaega2
Member
 
Registered: Sep 2003
Location: Ontario, Canada
Distribution: Gentoo 2004.3
Posts: 195

Original Poster
Rep: Reputation: 30
I guess I could try that, but I did stop it and restart it. Wouldn't that do the same thing

[kaega@localhost kaega]$ su
Password:
[root@localhost kaega]# apachectl stop
Shutting down httpd2: [ OK ]
[root@localhost kaega]# apachectl start
Starting httpd2: [ OK ]
[root@localhost kaega]#
 
Old 02-09-2004, 10:31 PM   #5
ter_roshak
Member
 
Registered: May 2001
Location: Everett, WA
Distribution: Gentoo, RedHat
Posts: 102

Rep: Reputation: 15
If you've run your updatedb at least once as root, you can find any file you wish to look for, (that I know of), by using the slocate command. If I were looking for httpd.conf, I would type slocate httpd.conf and it would tell me where the file was at, (or files). Try that as root.

-Josh
 
Old 02-09-2004, 10:57 PM   #6
kle
LQ Newbie
 
Registered: Nov 2003
Location: in a cardboard box, over a grate, on 14th and Main.
Distribution: Mandrake 9.2, Windows XP Pro
Posts: 20

Rep: Reputation: 0
I didn't see any mention of restarting the currently-running server. That's probably about as far as my apache experience goes, so aside from that, I'm at a loss as to helping you with your problem.
 
Old 02-13-2004, 06:08 PM   #7
kaega2
Member
 
Registered: Sep 2003
Location: Ontario, Canada
Distribution: Gentoo 2004.3
Posts: 195

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by ter_roshak
I just switched to using apache2 and it uses a slightly different format, my doc root is in /var/www/localhost/htdocs and the config file is called apache2.conf, not httpd.conf, and it is located in /etc/apache2/conf on my system. I hope this helps.

-Josh
Thanks Josh, that helped me find out what it was. You were right, the home directory was /var/www/html (close to what you said) and as well the configuration file was httlpd2.conf which was in etc/apache2/conf. I was able to make the appropriate changes. Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
problem with find and root (/) directory lfur Linux - General 6 05-27-2005 10:42 PM
apache root directory thegooch49 Linux - Newbie 5 07-28-2004 11:50 AM
Apache 2 Root Directory Listing BorgKiller Linux - General 1 07-05-2004 11:37 AM
How to find root directory of external PCMCIA? nr4g3d Linux - Newbie 1 03-13-2004 01:41 PM
Adding a root directory for Apache mijohnst Linux - Software 9 02-09-2004 03:24 PM

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

All times are GMT -5. The time now is 04:32 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