windows下apache切换不同php版本

httpd.conf 文件最后增加

php5.6

LoadModule php5_module "d:/server/php56/php5apache2_4.dll"
<IfModule php5_module>
    PHPINIDir "d:/server/php56"
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
	LoadFile "d:/server/php56/php5ts.dll"
	LoadFile "d:/server/php56/glib-2.dll"
	LoadFile "d:/server/php56/gmodule-2.dll"
	LoadFile "d:/server/php56/ssleay32.dll"
	LoadFile "d:/server/php56/libeay32.dll"
	LoadFile "d:/server/php56/libenchant.dll"
	LoadFile "d:/server/php56/libpq.dll"
	LoadFile "d:/server/php56/libsasl.dll"
	LoadFile "d:/server/php56/libssh2.dll"
	LoadFile "d:/server/php56/icudt54.dll"
	LoadFile "d:/server/php56/icuin54.dll"
	LoadFile "d:/server/php56/icuuc54.dll"
	
</IfModule>

php7.0

LoadModule php7_module "d:/server/php7/php7apache2_4.dll"
<IfModule php7_module>
    PHPINIDir "d:/server/php7"
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
	LoadFile "d:/server/php7/php7ts.dll"
	LoadFile "d:/server/php7/glib-2.dll"
	LoadFile "d:/server/php7/gmodule-2.dll"
	LoadFile "d:/server/php7/ssleay32.dll"
	LoadFile "d:/server/php7/libeay32.dll"
	LoadFile "d:/server/php7/libenchant.dll"
	LoadFile "d:/server/php7/libpq.dll"
	LoadFile "d:/server/php7/libsasl.dll"
	LoadFile "d:/server/php7/libssh2.dll"
	LoadFile "d:/server/php7/icudt56.dll"
	LoadFile "d:/server/php7/icuin56.dll"
	LoadFile "d:/server/php7/icuuc56.dll"
	
</IfModule>

php7.2

LoadModule php7_module "d:/server/php72/php7apache2_4.dll"
<IfModule php7_module>
    PHPINIDir "d:/server/php72"
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
	LoadFile "d:/server/php72/php7ts.dll"
	LoadFile "d:/server/php72/glib-2.dll"
	LoadFile "d:/server/php72/gmodule-2.dll"
	LoadFile "d:/server/php72/libenchant.dll"
	LoadFile "d:/server/php72/libpq.dll"
	LoadFile "d:/server/php72/libsasl.dll"
	LoadFile "d:/server/php72/libssh2.dll"
	LoadFile "d:/server/php72/icudt60.dll"
	LoadFile "d:/server/php72/icuin60.dll"
	LoadFile "d:/server/php72/icuuc60.dll"
	
</IfModule>

QQ截图20180326154327.jpg


版权声明:本文为原创文章,版权归 蕃薯博客 所有,转载请联系博主获得授权!
本文地址: https://bloger.wang/post/119/windowns-apache-change-php-version
如果您对本文有什么问题或疑问都可以在评论区留言,我看到后会尽量解答。
最后编辑: 2018-03-26 15:44:12 ©著作权归作者所有

暂无评论

发表评论

提交评论
×