//PHP 5 : Windows build needs a MySQL DLL //PHP 5.0 doesn't come with mysql support... You have to get the librariesyourself... //I t " /> 午夜视频体内射.COM.COM,野花日本手机观看大全免费3,青青草原国产

天天躁日日躁狠狠躁AV麻豆-天天躁人人躁人人躁狂躁-天天澡夜夜澡人人澡-天天影视香色欲综合网-国产成人女人在线视频观看-国产成人女人视频在线观看

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

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. 

<2>安裝Apach2 
1.備份 C:/Program Files/Apache Group/Apache2/conf/httpd.conf 文件。 
2.用記事本打開C:/Program Files/Apache Group/Apache2/conf/httpd.conf 
找到: 
#NameVirtualHost * 
修改為: 
NameVirtualHost 127.0.0.1 //或localhost 
找到: 
<VirtualHost 127.0.0.1> 
修改下面幾行: 
ServerAdmin (你剛才安裝時候輸入的管理員信箱) 
DocumentRoot C:/Program Files/Apache Group/Apache2/htdocs 
ServerName Apache2 
ErrorLog C:/Program Files/Apache Group/Apache2/logs/error_log 
CustomLog C:/Program Files/Apache Group/Apache2/logs/access_log common 
</VirtualHost> 
找到: 
AddType application/x-tar .tgz 
在下面添加以下兩行: 
AddType application/x-httpd-php .php 
AddType image/x-icon .ico 
找到: 
#LoadModule ssl_module modules/mod_ssl.so 
在下面添加一行: 
LoadModule php5_module C:/php/sapi/php4apache2.dll //這里php5_module是關鍵,如果php4_module apache就無法啟動了  
增加默認文件: 
找到DirectoryIndex * 這行,可以這樣修改,添加默認的文件名: 
DirectoryIndex index.php default.php index.htm index.html default.htm default.html 
保存文件,重起apache服務器。 

最后,在該文件末尾加上下面兩行 
ScriptAlias /php/ "c:/php/" 
Action application/x-httpd-php "/php/php.exe“ 

到此Apache的php環境已經完全建立了。 

<3>測試: 
  用記事本新建個文件,寫下下面幾行,保存到C:/Program Files/Apache Group/Apache2/htdocs目錄下,這個目錄就是你的站點跟目錄,命名為phpinfo.php.然后在瀏覽器中輸入http://localhost/phpinfo.php 就可以看到想盡的關于php的信息了。 

phpinfo.php代碼如下:  
<?php 

phpinfo(); 

?>  

<4>安裝mysql  

1.按默認安裝在C:/mysql 

Copy the following files to the Apache modules directory: 

php/php4ts.dll 
php/sapi/php4apache2.dll 
php/dlls/iconv.dll 

If any of these files are missing in the modules directory, Apache will fail to start. 

Be sure the extension can find the following files: 

php_mysql.dll  
iconv.dll 
libmySQL.dll 

If any of them can't be found, Apache will start but will issue a warning like this: "Unknown(): Unable to load dynamic library 'c/php/extensions/php_mysql.dll" - The specified module could not be found." 

php_mysql.dll should be in the extensions directory. 

iconv.dll should be in the Apache modules directory. 

libmySQL.dll must be either in the Apache root directory or the Windows system directory. I prefer the former because it's cleaner, as other applications don't necessarily use this MySQL library version. 

Note 3: Be sure to use the libmySQL.dll file bundled with php. In my case, trying to use the libmySQL.dll from the MySQL 4.1 alpha package resulted in this error message: "Unknown(): Unable to load dynamic library 'c:/php/extensions/php_mysql.dll" - The specified procedure could not be found." 

Start Apache and everything should be fine. 

2.運行C:/mysql/bin/winmysqladmin.exe 設定user 和password 
3.運行mysql,測試一下 
mysql> show databases; 

+-----------+  
| Databases |  
+-----------+  
| mysql |  
| test |  
+-----------+  

如果出現以上畫面,表明mysql已經安裝成功;  

2.更改MySQL系 主站蜘蛛池模板: 99精品欧美一区二区三区美图 | 肉小说高h | zooskoo1videos人与狗 | 日本毛片久久国产精品 | 亚洲乱色视频在线观看 | 国产人人为我我为人人澡 | 高h肉文np| 九九在线中文字幕无码 | 成人无码在线视频区 | 91伊人久久大香线蕉 | 久久视频精品38在线播放 | 嫩草国产福利视频一区二区 | 亚洲高清国产拍精品5g | 国产精品国产三级国产AV麻豆 | 97人妻中文字幕免费视频 | 深夜释放自己在线观看 | 恋夜秀场1234手机视频在线观看 | 色欲天天天综合网免费 | 成人亚洲视频在线观看 | 国产AV麻豆出品在线播放 | YELLOW日本动漫免费动漫 | 国产专区青青在线视频 | 欧美国产在线一区 | 99精品视频在线观看re | 漂亮美女2018完整版 | 在教室轮流被澡高H林萌 | 中文字幕在线视频在线看 | 亚洲 欧美 另类 中文 在线 | 诱人的秘书BD在线观看 | 亚洲国产精品综合久久一线 | 成年人视频在线免费看 | 秋霞电影院兔费理论观频84mb | 亚洲精品视频在线播放 | 成人人观看的免费毛片 | 免费毛片在线视频 | 俄罗斯12一15处交 | 日韩人妻无码精品久久中文字幕 | 蜜芽在线影片 | 国产香蕉视频在线观看 | 被老师按在办公桌吸奶头 | 成人天堂资源WWW在线 |