WinXP + Apache +PHP5 + MySQL + phpMyAdmin安裝全功略
2024-09-07 17:59:50
供稿:網友
I finally got this to work, so I will post my findings here.
//PHP 5 : Windows build needs a MySQL DLL
//PHP 5.0 doesn't come with mysql support... You have to get the librariesyourself...
//I think u can get them from mysql.com
// PHP 5 Beta 2
//The file php_mysql.dll comes with these snapshots, as well as a new version of libmySQL.dll,
//so I suggest a full upgrade to Beta 2 instead of just extracting php_mysql.dll for use with Beta 1.
--------------------------------------------------------
到 www.jetdown.com 下載下面三種軟件,做好安裝準備
apache_2.0.47-win32-x86-no_ssl.msi
mysql-4.0.14-win.zip
phpMyAdmin-2.5.3-rc1-php.zip
----------------------------------------------------------------------------------------------
PHP 5 Beta 2 http://snaps.php.net/win32/php5-win32-latest.zip size:5.87 MB (6,162,835 bytes)
----------------------------------------------------------------------------------------------
<1>安裝配置PHP
1.解壓縮PHP壓縮包到C:/php/
2.復制C:/php/目錄下的php4ts.dll及C:/php/dlls目錄下的所有文件到windows安裝目錄的系統文件夾里
(win9x/me是system目錄,winNT,2k/winXP,2003是system32目錄)
復制C:/php/php.ini-dist到windows安裝目錄下(如:c:/windows),并將其改名為php.ini。用記事本打開,修改一下信息:
搜索extension_dir = ./ 這行,并將其路徑指到你的PHP目錄下的extensions目錄,比如:
extension_dir = C:/php/extensions
如若想支持更多模塊,,搜索:
;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
下面都用分號在前面注釋掉了支持的擴展模塊,如果你想PHP支持某個模塊,請將前面的“;”去掉即可
修改完成后,保存php.ini,到此完成PHP的安裝和配置。
我們在下面加入一行
extension=php_mysql.dll
//Note 1: The extension dir need not be "./", as Hermawan mentioned. It works fine for me with the extensions subdir where the other extensions are located.
//Note 2: The php.ini file need not be in the Apache root, as lars mentioned. It works fine for me in the Windows dir.