VPS侦探论坛

 找回密码
 注册
查看: 10186|回复: 6

我的PHP是不是没装上?

[复制链接]
发表于 2010-7-12 13:33:04 | 显示全部楼层 |阅读模式

我的PHP是不是没装上?

eaccelerator也还没装的

502错误,看了老大帖子说PHP.INI,找了目录发现木PHP的东东啊

[ 本帖最后由 风之翼灵 于 2010-7-12 13:39 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2010-7-12 13:40:38 | 显示全部楼层

回复 1# 的帖子



你得发一下php的编译错误才能给你提供解决方法。按脚本手动编译php,贴上错误提示。
cd lnmp的目录
tar zxvf php-5.2.10.tar.gz
gzip -d ./suhosin-patch-5.2.10-0.9.7.patch.gz
gzip -cd php-5.2.10-fpm-0.5.13.diff.gz | patch -d php-5.2.10 -p1
cd php-5.2.10/
patch -p 1 -i ../suhosin-patch-5.2.10-0.9.7.patch
./buildconf --force
./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 --enable-suhosin
make ZEND_EXTRA_LIBS='-liconv'
make install
cp php.ini-dist /usr/local/php/etc/php.ini
cd ../
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2010-7-12 13:42:33 | 显示全部楼层

好的,我试试
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2010-7-12 13:47:06 | 显示全部楼层



我的LNMP下
没有php-5.2.10.tar.gz
解压不了
tar zxvf php-5.2.10.tar.gz
目录里只有这个
php-5.2.10-fpm-0.5.13.diff.gz
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2010-7-12 13:48:57 | 显示全部楼层

偶怎么是一次成功了 祝你好运 ~~~

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

发表于 2010-7-12 15:25:40 | 显示全部楼层

回复 4# 的帖子


按脚本中的php包的地址下载就行了。
 楼主| 发表于 2010-7-12 15:38:14 | 显示全部楼层

想了一会,是不是我的系统不是纯净的,自带了PHP这些组件,导致LNMP的PHP安装不上去?

会有这样的问题吗?老大
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-8 07:32 , Processed in 0.028050 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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