+ -
当前位置:首页 → 问答吧 → 打开php会出现下载框,而不是解释,哪错了

打开php会出现下载框,而不是解释,哪错了

时间:2010-03-30

来源:互联网

apache都装好了,php也装好了
版本是apache2.2,php5.3.2
因为是用nginx做的前端所以apache开的东西少

这是我编译的参数
apache:
./configure --prefix=/usr/local/apache2 --enable-access=shared --enable-setenvif=shared --enable-negotiation=shared --enable-mime=shared --enable-autoindex=shared --enable-negotiation=shared --enable-alias=shared --enable-so --enable-rewrite=shared

php:
./configure --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5/etc --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --with-xmlrpc --with-bz2 --disable-rpath --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --with-mhash --with-apxs2=/usr/local/apache2/bin/apxs

中途还出现过/usr/bin/ld: cannot find -lltdl错误,什么意思?我把--with-apxs2=/usr/local/apache2/bin/apxs去掉就可以了
我解压的命令是tar zxvf ....没错吧
还有就是编译不出来libphp5.so我自己复制了一个进去 但是在启动apache的时候会提示打不开,apache不认识他?编译的时候少了哪个选项

作者: lyf362345   发布时间: 2010-03-30

哎  一夜了一个回答都没有 帖子既然没沉

作者: lyf362345   发布时间: 2010-03-31

你得用源码重新编码so文件,然后再复制进去,才行,直接copy进去不行吧。

或者,你查一下apache配置文件,看有没有打开php扩展库,我记得好像要修改配置文件才行

作者: bbayou   发布时间: 2010-04-01

顶楼主,来看看有什么好玩的.

作者: 贾琪娜   发布时间: 2010-08-12