在服务器上php的安装:
1。下载php-4.4.2 for windows的压缩包
2。解压缩到D:\software\php442
3。将D:\software\php442增加到环境变量PATH中
4。将php.ini-dist做一个备份,然后重命名为php.ini,修改
extension_dir = "D:\software\php442\extensions"
cgi.force_redirect = 0
5。Tomcat的配置:
打开conf\web.xml,增加如下一段:
<!-- hankjin php -->
<servlet>
<servlet-name>cgi</servlet-name>
<servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
<init-param>
<param-name>clientInputTimeout</param-name>
<param-value>100</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>executable</param-name>
时间: 2024-10-31 13:41:32