PHP for windows
This post just reminds me of how I installed PHP 5.0.4 on my WIN2K machine. So don't look for something mind breaking, it's just a reminder for myself.
Download PHP from the php.net website.
These are the steps I followed to unpack/install and configure PHP :
- I took the zip file from the windows binaries and unpacked it under c:\php
- Located php.ini-dist and renamed it to php.ini
- I've set the doc_root in this ini-file to the DocumentRoot in my httpd.conf from my Apache2 web server.
- I pointed the extension_dir to the path where I installed PHP, i.e. c:\php
- Moved the php.ini file to the WIN2K directory c:\winnt
- Added the following two lines to the httpd.conf file : LoadModule php5_module c:/php/php5apache2.dll and AddType application/x-httpd-php .php
- Copied all *.dll files from the ext-directory into the php root directory.
- Added the php directory to the PATH variable.
- Copied libmySQL.dll from MySQL into the php directory.
- Uncommented the php_mysql.dll extension in php.ini
- Wasn't able to use mysql_create_db(), but on the php web site they said it was recommended to use mysql_query() instead which worked.
0 Comments:
Een reactie posten
<< Home