首页 > 系统 > WinXP > 正文

WinXP + Apache +PHP5 + MySQL + phpMyAdmin安装全功略

2020-02-22 01:43:46
字体:
来源:转载
供稿:网友
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. 
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选