Maison > Article > développement back-end > 瀹夎apache2.2.22閰嶇疆php5.4(鍏蜂綋鎿嶄綔姝ラ)_PHP鏁欑▼ | 甯涔嬪
淇敼 apache2.2/httpd.conf 閰嶇疆鏂囦欢锛岃apache鑳藉瑙f瀽php鏂囦欢
#淇敼鐩戝惉绔彛
Listen 8011
#鍦↙oadModule鐨勬渶鍚庝竴娈靛悗闈㈡坊鍔犱笅闈竴鍙ヨ瘽
LoadModule php5_module "E:/LAMP/php5.4/php5apache2_2.dll"
#淇敼鏈嶅姟鍣ㄧ綉绔欑洰褰曚负 E:/LAMP/www
DocumentRoot "E:/LAMP/www"
#鍚屾椂杩樻湁涓€涓湴鏂硅鏀?BR>
#鍦?lt;IfModule dir_module>閲岄潰鐨刬ndex.html鍓嶉潰娣诲姞index.php锛屽嵆榛樿鍏堟墦寮€index.php锛屽鏋滄病鏈夋墠鍐嶆墦寮€index.html
DirectoryIndex index.php index.html
#娣诲姞鍙墽琛岀殑鏂囦欢鍦?AddType application/x-gzip .gz .tgz 鍚庨潰娣诲姞涓嬮潰涓ゅ彞璇?BR>AddType application/x-httpd-php .php .phtml
PHPIniDir "E:/LAMP/php5.4"
淇敼 php5.4/php.ini-production 閰嶇疆鏂囦欢
鍏堝皢php.ini-production鏂囦欢閲嶅懡鍚嶄负php.ini
;璁剧疆php鐨勬墿灞曞簱璺緞锛屾壘鍒?; extension_dir = "ext"锛屽湪涓嬮潰娣诲姞浠ヤ笅涓€鍙ヨ瘽
extension_dir = "E:/LAMP/php5.4/ext"
;寮€鍚痯hp鎵╁睍搴?BR>;extension=php_gd2.dll
;extension=php_mbstring.dll
;extension=php_mysql.dll
;extension=php_mysqli.dll
;灏嗕笂闈㈠洓鍙ヨ瘽鍓嶉潰鐨勫垎鍙峰幓鎺?/P>
;璁剧疆session涓存椂淇濆瓨璺緞锛屾壘鍒?session.save_path = "/tmp"锛屽湪涓嬮潰娣诲姞浠ヤ笅涓€鍙ヨ瘽锛堣矾寰勫彲浠ヨ嚜鐢辫缃級
session.save_path = "E:/LAMP/php5.4/session_temp"
;鍚屾牱cookie涓存椂淇濆瓨璺緞
session.cookie_path = "E:/LAMP/php5.4/session_temp"
閰嶇疆瀹屼箣鍚庯紝鍐嶅皢 E:LAMPphp5.4ext 鐩綍涓嬬殑
php_mysql.dll 鍜?php_mysqli.dll
涓や釜鏂囦欢澶嶅埗绮樿创鍒扳€淐:WindowsSystem32鈥濈洰褰曚腑锛?BR>濡傛灉浣犵殑鎿嶄綔绯荤粺鏄痺in7x64浣嶇殑锛屽垯澶嶅埗绮樿创鍒扳€淐:WindowsSysWOW64鈥濈洰褰曚腑銆?/P>
ok锛岀幇鍦ㄩ噸鍚竴涓嬩綘鐨刟pache锛岀湅鐪嬫槸涓嶆槸鑳界敤浜嗐€?BR>娴嬭瘯杩愯涓€涓媝hpmyadmin锛岀湅鐪嬭兘涓嶈兘杩愯銆傚鏋滆兘姝e父杩愯锛屽垯澶у姛鍛婃垚浜嗐€?/P>
娉ㄦ剰锛氳繖閲屾病鏈夋彁渚沵ysql鐨勫畨瑁呮柟娉曘€備箣鍓嶆病鏈夊畨瑁卪ysql鐨勮瘽锛岃嚜宸卞彟澶栫櫨搴﹀幓鍚с€?BR>