VPS侦探论坛

 找回密码
 注册
查看: 8301|回复: 9

lnmp在64位centos 6 下,安装失败。在军歌帮助下,安装成功

[复制链接]
发表于 2011-9-21 13:26:00 | 显示全部楼层 |阅读模式

能打开html,打不开php;查看了 /usr/local/php
只有etc目录,其它目录都没有。
大家遇到了吗?
请帮助解答,解决。谢谢!

[ 本帖最后由 xzmir 于 2011-9-22 10:16 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-9-21 16:52:32 | 显示全部楼层


建议手动编译安装php看看什么错误,发上来。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-9-21 17:50:06 | 显示全部楼层

是的,我的也同樣問題!


我在Centos 6 下經過多次安裝都沒法成功,結果與樓主一樣,PHP目錄只有etc一個文件夾,只能訪問純html文件,PHP出錯: 520  Bad Gateway ,期待能在Centos 6 成功安裝的新版本或解決方法,謝謝!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-9-21 20:43:24 | 显示全部楼层



centos6 64位 安装失败   520  Bad Gateway
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-9-22 08:18:51 | 显示全部楼层

都想用新的了么,自己编译装一下么好了。。

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2011-9-22 10:09:11 | 显示全部楼层

在军哥提示下,开始手动


在军哥提示下,开始手动
配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 install  libpng.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 编辑 ]
发表于 2011-9-27 15:52:01 | 显示全部楼层

centos6.0 bit64安装lnmp。php装不好怎么办?楼主求帮忙……Q 360283263
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-9-27 23:12:18 | 显示全部楼层

这一个还是要看情况的喔..楼主的这一人是用5.2的PHP加上NGINX配置PHP-FPM的升级附加安装的模式安装的,


若是有的朋友是用LNMPA
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-9-27 23:12:37 | 显示全部楼层


的包的话.PHP编译就不能是这样的编译了..
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-9-27 23:15:15 | 显示全部楼层

回复 7# 的帖子




其实这一个并不麻烦.就这么几步.

1:解压PHP

2:./CONFIGURE PHP..楼主的参数可以直接用.

3:看一下编译里面还缺少什么,.用YUM或者是使用网上自己下包编译

4:安装就可以了..

5:若是使用的PHP5.3的话..可以省略把PHP-FPM升级附加入PHP的这一步,,5.3直接带了PHP-FPM

6:若是使用的APACHE就不能像楼主这样来了.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-21 11:16 , Processed in 0.028196 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表