Installation of Apache2, mod_perl and PHP on a windows machine
Retrieve latest installation files at...
http://perl.apache.org/dist/win32-bin/
you want the latest version. Currently:
Perl-5.8-win32-bin-0.4.exe
Make a few directories by hand.
Decide which Volume will contain your Apache, Perl and PHP.
I have them all on their own volume as they mimic my UNIX setup
(sort of).
G:\etc\httpd <- Apaches home G:\etc\php <- PHP's home G:\usr\local <- Perl's home G:\tmp <- tmp for these apps Open the installer and change installation point to... G:\tmp [or whatever your drive letter is] And hit NEXT, this will take some time! It is expanding a *lot* of files. NEXT again, *uncheck* the 'Configure Perl/Apache2' checkbox and then FINISH (but your not) Now we have to do is move and rename them! Open your G:\tmp directory and you will see an "Apache2" and a "Perl" directory. These are what we need to move and rename. First, Apache. Move Apache2 from '/tmp' to '/etc' and then rename it 'httpd' (or not). Now move Perl from 'tmp' into '/usr' and the rename it 'local'. Once the Apache2 and Perl directories have been moved and renamed, you need to run the 'tk-config.bat' file, located in '/usr/local/bin' directory. A DOS box will appear, and then a smaller grey box will ask for various directories. The directories shown do not reflect what we have done. You will have to change the destinations by hitting the BROWSE button for both paths. Perl Directory: /usr/local <- this should be correct Apache Directory: /etc/httpd <- this you will have to change NOTE: This is a *very* important step. These paths are used to auto-define and configure the conf and ini files. now just hit the CONFIGURE button. Next a warning dialog will appear asking if it is OK to retrieve some files and build some more. OK through that. The DOS box will display some text, hesitate for a bit and tell you what it did and then ask you to... Press any key to continue . . . This DOS box will go away and a small alert will tell you that... Installation of "nmake" succeeded. OK through that. Now an alert will tell you about Apache 2 docs... OK through that. Another alert will ask you if you want to build the HTML documentation for Perl. Your choice. I said OK to that, and it took a bit of time to build the docs. I would suggest you have it build the docs for you, since it has to insert proper path information in quite a few of the files. Once that is done (and your second cup of coffee), you will be asked to configure CPAN.pm. You really should that this. It will help in the long run. Just follow the on screen instructions to complete this section of the install. But a note: the third or so question will ask you for a path to the CPAN cache directory. It is 'c:\.cpan' by default. I set it to be 'G:\usr\local\cpan.cache' I just RETURNed through the rest of the questions. Once you've selected your continent and country, it will process for a bit and the n drop to a 'cpan>' prompt.
enter 'exit' and RETURN.
This DOS box will go away.
The last thing you will see is a configuration confirmation dialog.
OK through it.
All the command boxes will go away and your Apache and mod_perl with
PHP is now installed.
But we're not done yet.
Now open /usr/local/bin/cpan.bat in your favorite editor.
Line 13 says...
#!/usr/bin/perl
change it to read...
#!/usr/local/bin/perl
SAVE and CLOSE.
There is a 'install.txt' file in the '/usr/local' directory, read
carefully, there is some good info in there.
Paragraphs 3, 4, 5 and 8 can be ignored.
Paragraphs 6 and 7 are very important. Please read carefully.
Paragraph 8 has already been completed.
One last step.
in /etc/httpd/bin' there is a file labeled 'ApacheMonitor.exe'
Copy a shortcut of this file in your STARTUP folder. This will allow
you to control your server easier.
Now your done!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment