|
Quoth the RaVeN |
|
|
|
|
(Updated: 08-15-08) Installing PHP on Windows I run a Windows 2k3 SBS with IIS very modified. I've had asp running for a while but wanted some options that I could only find with php. I also have mysql installed and since php has the libraries to connect to mysql I decided I wanted this as well for future use. I have found tons of information online on how to install and configure php and mysql but each site seemed to leave a little out, so on this site I will try to combine all the information that worked for me and hopefully keep someone from bumping their head as much as I did. First, If you are not running a flavor of Windows Server or do not already have IIS installed, save yourself some headache and go here (http://www.wampserver.com/en/) This is similar to Linux's LAMP server setup in that everything is preconfigured to work together. I personally have no experience with this package but it has come highly recommended. Or if you are like me running a Windows Server and have IIS up and functioning and want to install php visit http://php.net go to downloads and get the latest version zip package available. You will want the zip package because it includes alot of extra modules that the installer does not. For those who would prefer a video tutorial click here but the short of it is this:
Now for those who wish to use mysql as well either install the newest version from here http://dev.mysql.com/downloads/mysql/5.0.html#win32 and can follow install directions here http://www.iisadmin.co.uk/?p=5 or if you already have it installed as I did from a previous application (and can access the database from the command line or mysql front, etc) you need to enable the mysql extensions. To do this locate the Dynamic Extensions section of your ‘php.ini’ file and either uncomment or add the following lines to the top of the existing list of extensions : extension=php_mbstring.dll Also locate the Paths and Directories section and modify the extension_dir setting 'extension_dir = "c:/php5/ext"' Once you have done this save the changes in the ‘php.ini’file and then either recycle your PHP web site’s application pool or perform an IISReset for the changes to take effect. Now if you view the php page created earlier you will see that support for mysql is now enabled. One of the many sites I had browsed for help before writing this article left out enabling the php_mbstring.dll. Hopefully this has helped.
|
©2008-9 RaVeN.rkwallace.com. All Rights Reserved.