lnmp在64位centos 6 下,安装失败。在军歌帮助下,安装成功
能打开html,打不开php;查看了 /usr/local/php只有etc目录,其它目录都没有。
大家遇到了吗?
请帮助解答,解决。谢谢!
[ 本帖最后由 xzmir 于 2011-9-22 10:16 编辑 ] 建议手动编译安装php看看什么错误,发上来。
是的,我的也同樣問題!
我在Centos 6 下經過多次安裝都沒法成功,結果與樓主一樣,PHP目錄只有etc一個文件夾,只能訪問純html文件,PHP出錯: 520Bad Gateway ,期待能在Centos 6 成功安裝的新版本或解決方法,謝謝! centos6 64位 安装失败 520Bad Gateway 都想用新的了么,自己编译装一下么好了。。在军哥提示下,开始手动
在军哥提示下,开始手动配php
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-magic-quotes --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 --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --with-mime-magic
提示错误 configure: error: libjpeg.(a|so) not found
解决:cp -frp /usr/lib64/libjpeg.* /usr/lib/
再次配置
提示错误configure: error: libpng.(a|so) not found.
cp -frp /usr/lib64/libpng.* /usr/lib/
再次配置
提示错误
configure: error: libpng.(a|so) not found.
查找 locate libjpeg.a
没找到
正在解决中
跟上:也不知是装了那个
libpng.i686 : A library of functions for manipulating PNG image format files
libpng.x86_64 : A library of functions for manipulating PNG image format files
libpng-devel.i686 : Development tools for programs to manipulate PNG image format files
libpng-devel.x86_64 : Development tools for programs to manipulate PNG image format files
libpng-static.x86_64 : Static PNG image format file library
反正都装上了
yum installlibpng.i686 libpng.x86_64 libpng-devel.i686 libpng-devel.x86_64 libpng-static.x86_64
yum -y install libpng-devel
locate libjpeg.a
找到了 在 /usr/lib64, 复制到 /usr/lib
再次编译php
成功
gzip -cd php-5.2.17-fpm-0.5.14.diff.gz | patch -d php-5.2.17 -p1
这一步也要重新手动操作
由于php安装失败,导致下面需要php文件夹的,一些php插件,都需要手动重装,注意!
谢谢军哥!
我把错误发上来,一是帮助网友解决,二是希望军哥抽空完善他。
[ 本帖最后由 xzmir 于 2011-9-22 12:23 编辑 ] centos6.0 bit64安装lnmp。php装不好怎么办?楼主求帮忙……Q 360283263 这一个还是要看情况的喔..楼主的这一人是用5.2的PHP加上NGINX配置PHP-FPM的升级附加安装的模式安装的,
若是有的朋友是用LNMPA 的包的话.PHP编译就不能是这样的编译了..
回复 7# 的帖子
其实这一个并不麻烦.就这么几步.1:解压PHP
2:./CONFIGURE PHP..楼主的参数可以直接用.
3:看一下编译里面还缺少什么,.用YUM或者是使用网上自己下包编译
4:安装就可以了..
5:若是使用的PHP5.3的话..可以省略把PHP-FPM升级附加入PHP的这一步,,5.3直接带了PHP-FPM
6:若是使用的APACHE就不能像楼主这样来了.
页:
[1]