欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

瀹夎apache2.2.22閰嶇疆php5.4(鍏蜂綋鎿嶄綔姝ラ)_PHP鏁欑▼ | 甯涔嬪

程序员文章站 2022-05-08 21:38:27
...
淇敼 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>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/327897.htmlTechArticle淇敼 apache2.2/httpd.conf 閰嶇疆鏂囦欢锛岃apache鑳藉瑙f瀽php鏂囦欢 #淇敼鐩戝惉绔彛 Listen 8011 #鍦↙oadModule鐨勬渶鍚庝竴娈靛悗闈㈡坊鍔犱笅闈竴鍙ヨ瘽 LoadModule php5_m...