|
Magoo's Wise Words | ||
| Posted: 1 Jul 05
P | Installing MySQL and PHP MySQLDue to the number of options that MySQL supports, I created a seperate guide for it. It's not hard to install and configure. Just walk thorugh my MySQL tutorial and you will be all set. Then come back here to finish by installing PHP and put it all together. PHPA database isn't very good unless we can interact with it. My blog uses PHP to generate the pages, so let’s go through how to install it and make it talk to MySQL. Download the latest version of PHP from their website. The easiest thing to do is get both the Windows installer and the Collection of PECL modules. Run the PHP installer and tell it what version of IIS you have (most likely 4 or greater.) Standard installation is fine, and the usernames and SMTP address don't matter too much here. Now, we have PHP installed. That was the easy part. Now we have to teach it to talk to MySQL. Open the file C:\Windows\php.ini in Notepad (replace the C: with whatever drive you Windows folder is on...) Scroll down to the Paths and Directories section. Set 'extension_dir =' to some folder you want to store your extensions in. Mine is set to "C:\PHPextension\" (with the quotes.) Now, scroll a little farther down to the Dynamic Extensions section. Uncomment (remove the ; from in front of) the line that says "extension=php_mysql.dll". You may also want to uncomment the next one, extension=phpmysqli.dll, for advanced interaction with MySQL (Wordpress doesn't require this.) Now, unzip the php PECL extensions that you downloaded. Copy mysql.dll (and mysqldi.dll if you need it) and past them into the folder you specified for extension_dir = (C:\phpextensions\). Next =>[Magoo's WinXP Webserver Tutorial - Page 4, Going public] | Updated:
1 Jul 05
P |