PHP 5.1.6 integration with Apache 2.2.4

    技术2022-05-11  67

    -- unzip php to D:/php516 as $PHP

    -- copy $PHP/php5ts.dll to $WINDOWS/system32/php5ts.dll

    -- rename $PHP/php.ini-dist => $PHP/php.ini

    -- open $PHP/php.ini and edit  # find   extension_dir = "./" => extension_dir = "D:/php516/ext"   # find   ;extension=php_mbstring.dll => extension=php_mbstring.dll  ;extension=php_gd2.dll => extension=php_gd2.dll  ;extension=php_mysql.dll => extension=php_mysql.dll   add mysqli extension => extension=php_mysqli.dll  -- download php5apache2.dll-php5.1.x.zip from http://www.apachelounge.com/download/ and following the instruction in "Readme First.txt"  # copy php5apache2.dll to php install folder and replace the old one  # copy httpd.exe.manifest to apache's /bin   -- open apache's httpd.conf  # find LoadModule and Add   LoadModule php5_module D:/tools/php516/php5apache2.dll  PHPIniDir D:/tools/php516  AddType application/x-httpd-php .php 


    最新回复(0)