首页 > 代码库 > windows apache2.4 + php-5.5.19-nts 非线程安全的安装
windows apache2.4 + php-5.5.19-nts 非线程安全的安装
进入下载页面 下载Apache 2.4.x VC11 同时php的版本也要是php5.5 vc11
http://www.apachehaus.com/cgi-bin/download.plx#APACHE24VC11
1、解压到E:\wwwroot\Apache2.4
2、在运行里面输入cmd
3、切换到目录E:\wwwroot\Apache2.4\bin
4、安装服务到windows 输入命令:httpd.exe -k install -n "apache2.4" 卸载服务输入:httpd.exe -k uninstall -n "apache2.4"
5、配置
ServerRoot "${SRVROOT}" => ServerRoot "D:/working/wwwroot/Apache2.4"
#LoadModule rewrite_module modules/mod_rewrite.so => LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so => LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule mime_magic_module modules/mod_mime_magic.so => LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule ssl_module modules/mod_ssl.so => #LoadModule ssl_module modules/mod_ssl.so
DocumentRoot "${SRVROOT}/htdocs" => DocumentRoot "D:/working/wwwroot"
<Directory "${SRVROOT}/htdocs"> => <Directory "D:/working/wwwroot">
AllowOverride None => AllowOverride All
DirectoryIndex index.html => DirectoryIndex index.html index.htm index.php
ScriptAlias /cgi-bin/ "${SRVROOT}/cgi-bin/" => ScriptAlias /cgi-bin/ "D:/working/wwwroot/Apache2.4/cgi-bin/"
<Directory "${SRVROOT}/cgi-bin"> => <Directory "D:/working/wwwroot/Apache2.4/cgi-bin">
php-5.5.19-nts 非线程安全的安装
下载:Mod FCGID 2.3.9 for Apache 2.4.x x64 http://www.apachehaus.com/cgi-bin/download.plx#APACHE24VC11
打开apache2.4的配置文件在载入模块的地方添加如下两行
LoadModule fcgid_module modules/mod_fcgid.so
Include conf/extra/httpd-fcgi.conf
httpd-fcgi.conf配置如下:
FcgidInitialEnv PHPRC "C:\\php" => FcgidInitialEnv PHPRC "D:/working/wwwroot/php-5.5.19-nts"
FcgidInitialEnv PATH "C:\\php;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;" => FcgidInitialEnv PATH "D:/working/wwwroot/php-5.5.19-nts;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;"
FcgidWrapper "C:/php/php-cgi.exe" .php => FcgidWrapper "D:/working/wwwroot/php-5.5.19-nts/php-cgi.exe" .php
php.ini配置如下 使用
;extension_dir = "ext" => extension_dir = "D:/working/wwwroot/php-5.5.19-nts/ext"
;extension=php_curl.dll => extension=php_curl.dll
;extension=php_gd2.dll => extension=php_gd2.dll
;extension=php_mbstring.dll => extension=php_mbstring.dll
;extension=php_mysql.dll => extension=php_mysql.dll
;extension=php_mysqli.dll => extension=php_mysqli.dll
;extension=php_pdo_mysql.dll => extension=php_pdo_mysql.dll
windows apache2.4 + php-5.5.19-nts 非线程安全的安装
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。