apache不支持PHP
时间:2008-05-28
来源:互联网
系统:AS4
APACHE版本:2.2.8
PHP版本:5.2.6
apache的安装过程为:
./configure --enable-modules=so --enable-rewrite
make;make install
。。。
安装gd
。。。
安装php的过程为:
./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/env/mysql/ --with-libxml-dir=/usr/local/libxml2 --with-expat-dir=/usr/lib --with-xsl=/usr/local/libxslt --enable-xslt --with-gd=/usr/local/gd2/ --with-jpeg-dir=/usr/local/jpeg6/ --with-zlib-dir=/usr/lib --with-png --with-freetype-dir=/usr/local/freetype --enable-mbstring
make;make install
cp php.ini-recommended /usr/local/php5/lib/php.ini
添加如下两行到http.conf
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
重启apache,发现不能支持php
上网查了,别人说的我也做了,还是不能支持,在这里请教一下大家。
APACHE版本:2.2.8
PHP版本:5.2.6
apache的安装过程为:
./configure --enable-modules=so --enable-rewrite
make;make install
。。。
安装gd
。。。
安装php的过程为:
./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/env/mysql/ --with-libxml-dir=/usr/local/libxml2 --with-expat-dir=/usr/lib --with-xsl=/usr/local/libxslt --enable-xslt --with-gd=/usr/local/gd2/ --with-jpeg-dir=/usr/local/jpeg6/ --with-zlib-dir=/usr/lib --with-png --with-freetype-dir=/usr/local/freetype --enable-mbstring
make;make install
cp php.ini-recommended /usr/local/php5/lib/php.ini
添加如下两行到http.conf
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
重启apache,发现不能支持php
上网查了,别人说的我也做了,还是不能支持,在这里请教一下大家。
作者: Real197 发布时间: 2008-05-27
我的也是啊
作者: javahello 发布时间: 2008-08-12
估计是APACHE和PHP的版本不对....
作者: pjiahao 发布时间: 2008-08-14
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28