note 40139 added to install.apache2

From: Date: Mon, 23 Feb 2004 10:58:08 +0000
Subject: note 40139 added to install.apache2
Groups: php.notes 
Request: Send a blank email to php-notes+get-65582@lists.php.net to get a copy of this message
Microsoft Windows (XP), Apache 2.0, PHP 5b4 (as apache module), and MySQL. First, yes it was a pain to get this work but only because I didn't do everything I was told. It is simple, and don't be copying files hither, tither, and yon... 1: Install Apache 2.0: (default location: c:\Program Files\Apache Group\Apache2\) Install PHP5 beta-4 (My pick: c:\php-5b4) create a php.ini file in the apache2 base directory: c:\Program Files\Apache Group\Apache2\php.ini in php.ini: extension_dir = "c:\php-5b4\ext" uncomment extension=php_mysql.dll Make sure c:\php-5b4\ext\php_mysql.dll exists! (if it isn't there, find it and put it there. Some PHP snapshots (snaps.php.net) have left it out. Copy it from a previous build if need be). Copy libmysql.dll (whereever you can find it) to \WINDOWS\system32 (I could not find another place to put libmysql.dll and have php/apache2 work properly). If you don't move libmysql.dll to \WINDOWS\system32 you are likely to get "can't load c:\php-5b4\ext\php_mysql.dll". Edit C:\Program Files\Apache Group\Apache2\conf\http.conf Add these lines to the end of http.conf: LoadModule php5_module "c:/php-5b4/php5apache2.dll" AddType application/x-httpd-php .php (you need forward slashes in the http.conf file) Start up apache2.0... check it out... Notes: I did not describe the installation procedure for mysql. I figure you know how to do that. I did not describe editting other parts of the php.ini file (and http.conf file) to set things up for your host cause I figured you know how to do that. I did not move php5apache2.dll or php5ts.dll from where the sit in c:\php-5b4. It isn't necessary. I did not move the c:\php-5b4\ext directory anywhere... let it sit. Pax, Keith ---- Manual Page -- http://www.php.net/manual/en/install.apache2.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40139 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40139&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40139&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#65582) next »