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 |
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 |
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?
|
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]# |
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 |
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.
|
Quote:
|
All times are GMT -5. The time now is 02:40 AM. |