Windows XP Windows 7 Windows 2003 Windows Vista Windows教程綜合 Linux 系統教程
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟件教程
 Windows教程網 >> Windows XP系統教程 >> xp常見問答解答 >> WindowsXP系統下安裝apache+php+mysql

WindowsXP系統下安裝apache+php+mysql

日期:2017/1/25 11:05:39      編輯:xp常見問答解答

Apache和mysql的安裝較簡單,主要是安裝前請保證80端口未被占用 比如 iis 以前安裝過的apache mysql 先停止運行phpmyadmin,主要是配置文件的問題,把phpMyAdmin安裝目錄下Libraries目錄下面的Config.default.php復制到PHPmyAdmin根目錄下,改 名為Config.inc.php;用記事本打開Config.inc.php,把 “$cfg['blowfish_secret'] = '';” 改為 “$cfg['blowfish_secret'] = '什麼都可以';” ,其中“”是我為了避免''加上的,後面“''”中的“什麼都可以”你可以改成其它什麼都可以,就是不能為“無”,也可是空格;接下來把“$cfg ['Servers'][$i]['auth_type'] = 'config';”改為“'$cfg['Servers'][$i]['auth_type'] = 'cookie';”;最後一步就是點下保存。 

  更詳細的設置方法: 

  搜索$cfg['PmaAbsoluteUri'],設置你的 phpmyadmin的URL,如:$cfg ['PmaAbsoluteUri'] = 'localhost/phpmyadmin/'; 注意這裡假設phpmyadmin在默認站點的根目錄下 

  搜索$cfg['blowfish_secret'],設定好root密碼後這裡也要填寫比如ROOT密碼123456則設置為$cfg['blowfish_secret'] = '123456'; 

  搜索$cfg['DefaultLang'] ,將其設置為 zh-gb2312 ; 

  搜索$cfg['DefaultCharset'] ,將其設置為 gb2312 ; 

  搜索$cfg['Servers'][$i]['auth_type'],默認為config,是不安全的,不推薦,推薦使用cookie,將其設置為$cfg['Servers'][$i]['auth_type'] = 'cookie'; 

  注意這裡如果設置為config請在下面設置用戶名和密碼!例如: 

  $cfg['Servers'][$i]['user'] = 'root'; // MySQL user-----MySQL連接用戶 

  $cfg['Servers'][$i]['password'] = '123456'; 

  打開浏覽器,輸入:localhost/phpMyAdmin/ ,若 IIS 和 MySQL 均已啟動,輸入用戶ROOT密碼123456即可浏覽數據庫內容。 

  phpMyAdmin 出現如下錯誤:配置文件現在需要絕密的短語密碼(blowfish_secret) 

  因為$cfg['Servers'][$i]['auth_type'] = 'cookie';,所以需要密碼。 

  在phpMyAdmin 安裝目錄打開config.inc.php文件,找到$cfg['blowfish_secret'] = '',輸入密碼即可。例:mysql密碼為“666666”,則設置為:$cfg['blowfish_secret'] = '666666' 

  至此所有安裝完畢。 

  TITLE:xp系統下安裝apache+php+mysql

Copyright © Windows教程網 All Rights Reserved