PHP installation [apache2.4.33/php5.6.36 configuration under windows]

1. Unzip to a folder

2. Copy the php.ini-development file in the directory and rename it to php.ini as the configuration file

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. Open the mysql extension library
extension=php_curl.dll
extension=php_gd2.dll
extension=php_mysql.dll
extension=php_pdo_mysql.dll
extension=php_pdo_odbc.dll

6. Restart apache

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325019109&siteId=291194637