note 80516 deleted from install.windows.apache2 by nlopess

From: Date: Sun, 20 Jan 2008 10:45:57 +0000
Subject: note 80516 deleted from install.windows.apache2 by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-135252@lists.php.net to get a copy of this message
Note Submitter: bobf at home ---- I installed PHP 5.2.5 on Apache 2.2 with MySQL 5.0 using the following steps: install apache install php to "c:\program files" or to "c:\". insert this line into httpd.conf if not already there (the slash at the end is optional and you can have spaces in your directory path name): PHPIniDir "C:/program files/php" or PHPIniDir "C:/php" I had problems starting apache because of a bad php.ini file that was downloaded with the msi install package so i found a link on the install page: http://www.php.net/manual/en/configuration.php to copy the php.ini from the cvs source directory: http://cvs.php.net/viewvc.cgi/php-src/php.ini-dist?view=co This php.ini has a different format and worked first shot with apache and with command line access to php. It doesn't have MYSQL enabled so i had to add two extensions to php.ini in the dynamic extensions section - not at the bottom: extension=php_dbx.dll extension=php_mysql.dll Lastly, I had to add two directories to my path and reboot: set PATH=c:\program files\php;c:\program files\php\ext;%PATH% After rebooting Apache picked up the new php.ini and the mysql extensions. To verify your install: <?php phpinfo(); exit(); ?> and search for dbx and mysql. also, make sure your path shows up properly in the environment section and that php.ini was found at the top of the page.

« previous php.notes (#135252) next »