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.
安装与配置
bobf at home
20-Jan-2008 12:36
20-Jan-2008 12:36
nullplan
30-Dec-2005 02:23
30-Dec-2005 02:23
For German users there is a very great tutorial
in setting up a local test environment on windows on
www.wintotal.de/Artikel/lokaletestumgebung/lokaletestumgebung.php .
schlenk at uni-oldenburg dot de
04-Aug-2004 09:45
04-Aug-2004 09:45
Documentation for running PHP as CGI under the Tclhttpd:
http://wiki.tcl.tk/12130
luke at 4d dot com
17-Jan-2002 05:31
17-Jan-2002 05:31
4D WebSTAR V for Mac OS X supports the default CGI compile of PHP.
Note that most compile instructions for PHP on Mac OS X are specific to the Apache server.
