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

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

时间:2010-03-30

来源:互联网

本帖最后由 lyf362345 于 2010-03-30 19:50 编辑

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 ....没错吧

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

还有就是编译不出来libphp5.so我自己复制了一个进去 但是在启动apache的时候会提示打不开,apache不认识他?编译的时候少了哪个选项

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

OS是什么?

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

回复 3# level


    OS就是系统的意思

哪为知道原因啊

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