1. 程式人生 > >php安裝【windows下apache2.4.33/php5.6.36配置】

php安裝【windows下apache2.4.33/php5.6.36配置】

windows amp php安裝 pdo_odbc app .dll win 2.4 文件夾

1、解壓到文件夾

2、將目錄下的php.ini-development文件復制一份並改名為php.ini作為配置文件

3、在apache http.conf中添加
  # php5 support
  LoadModule php5_module E:/Develop/wamp/php-5.6.36-Win32-VC11-x64/php5apache2_4.dll
  AddType application/x-httpd-php .php .html .htm
  # configure thepath to php.ini
  PHPIniDir "E:/Develop/wamp/php-5.6.36-Win32-VC11-x64"

4、修改extension_dir = "E:/Develop/wamp/php-5.6.36-Win32-VC11-x64/ext";

5、開啟mysql擴展庫
extension=php_curl.dll
extension=php_gd2.dll
extension=php_mysql.dll
extension=php_pdo_mysql.dll
extension=php_pdo_odbc.dll

6、重啟apache

php安裝【windows下apache2.4.33/php5.6.36配置】