Can't find root directory for Apache 2.0 (Mandrake 9.2)
Linux - SoftwareThis 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.
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.
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.
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.
Location: in a cardboard box, over a grate, on 14th and Main.
Distribution: Mandrake 9.2, Windows XP Pro
Posts: 20
Rep:
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?
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.
Location: in a cardboard box, over a grate, on 14th and Main.
Distribution: Mandrake 9.2, Windows XP Pro
Posts: 20
Rep:
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.