PDA

Click to See Complete Forum and Search --> : Apache stuff


sail3005
Aug 27th, 2001, 06:41 PM
I just installed apache, first off, how do i change the default website directory. Second, can i delete the stuff in the folder C:\Program Files\Apache Group\Apache\htdocs, and third how do i change the default document name? :confused: :confused:

thanks

scoutt
Aug 27th, 2001, 08:22 PM
ok first I am not sure what was in the htdocs directory, so wait on deleting stuff. so you want to change the default directory and document name.
ok in your httpd.conf file look for this line
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs"
I think you can change that to where ever you want. then scroll down a little bit and change the next one as the same as the above one.

then for the document name, ar eyou talking about teh index.hmtl or index.htm, well if you look for this line
DirectoryIndex: Name of the file or files to use as a pre-written HTML
you can add them right there. between these lines

<IfModule mod_dir.c>
DirectoryIndex index.php index.htm index.html index.shtml
</IfModule>
like so. if that is not what you want let me know, have fun :)

sail3005
Aug 27th, 2001, 08:33 PM
thanks a lot scoutt.

I'll be sure to ask more questions on perl, and PHP, and i am sure more apache stuff because you seem like an expert on that.

scoutt
Aug 27th, 2001, 08:35 PM
well not an expert but I am learning. only reason I know is because I jsut did like a month or 2. now ar eyou going to run php as well?

sail3005
Aug 27th, 2001, 09:06 PM
where do install PHP and mySQL to? What directory i mean?

scoutt
Aug 27th, 2001, 09:08 PM
if you get the msi ones it will install itself. it usually installs in C: or are you going to complie it yourself??

sail3005
Aug 27th, 2001, 09:11 PM
i think i'll start out with the windows installer (msi) one. But how will it know not to install for IIS?

scoutt
Aug 27th, 2001, 09:13 PM
I think it is compatible to both apache and IIS, but it depends on what .dll you use in the system folder.

sail3005
Aug 27th, 2001, 09:18 PM
so you are saying it will install on both of them?

sail3005
Aug 27th, 2001, 09:23 PM
ok, figured that out. Now, what do i want to do, use it as CGI? or a module?

scoutt
Aug 27th, 2001, 09:28 PM
I installed the cgi one I think.

sail3005
Aug 27th, 2001, 10:46 PM
k, thanks for all the help. I think i will go with CGI. But, do you know what the difference is?

scoutt
Aug 27th, 2001, 11:02 PM
I think the difference is the external extensions. where they rely on external dll's for process. the one with no extensions is the one you want as it comes with it's own dll's

actually the more I think about it, I think you will need the zipped one. wait till I get home and see which one I got, just to be sure.

scoutt
Aug 28th, 2001, 12:35 AM
yes I d/l the small one, the cgi with no extensions

Wynd
Aug 28th, 2001, 11:25 AM
How do you set up PHP on apache? I did all the stuff in the readme file and on the php website and i got a 400 bad request. :confused: