try88 发表于 2011-6-14 03:21:46

CentOS 32 安装LNMP V0.7问题:安装后启动php-cgi , php失败

System CentOS 32, 安装后不能启动php-cgi , php失败。
请指教,如何解决。
谢谢

# php -v
-bash: php: command not found


# /root/lnmp restart
=========================================================================
Manager for LNMP V0.7,Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to Manage status of lnmp
For more information please visit http://www.lnmp.org

Usage: /root/lnmp {start|stop|reload|restart|kill|status}
=========================================================================
Stoping LNMP...
Nginx program is stop
PHP-FPM program is not runing!
Shutting down MySQL. SUCCESS!
MySQL program is stop
Starting LNMP...
Nginx start successfully!
/root/lnmp: line 46: /usr/local/php/sbin/php-fpm: No such file or directory
PHP-FPM start successfully!
Starting MySQL. SUCCESS!

[ 本帖最后由 try88 于 2011-6-23 00:32 编辑 ]

licess 发表于 2011-6-14 10:16:48

php-fpm 好像是没打上补丁。手动编译试试吧

try88 发表于 2011-6-14 16:32:30

如何手动编译 请问 谢谢

licess 发表于 2011-6-14 17:39:48

回复 3# 的帖子

看centos.sh 里php那部分

try88 发表于 2011-6-15 16:24:54

# ./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


....
....
checking for fabsf... yes
checking for floorf... yes
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
If configure fails try --with-xpm-dir=<DIR>
checking for FT_New_Face in -lfreetype... no
configure: error: Problem with freetype.(a|so). Please check config.log for more information.
# make ZEND_EXTRA_LIBS='-liconv'
make: *** No targets specified and no makefile found.Stop.


请教如何解决?

try88 发表于 2011-6-15 16:42:55

手动安装freetype后,出现configure: error: GD build test failed. Please check the config.log for details.

licess 发表于 2011-6-15 16:51:49

回复 6# 的帖子

再手动安装gd,如果已经安装了gd,还是找不到,则吧--with-gd 改成 --with-gd=gd路径

try88 发表于 2011-6-15 17:05:10

使用--with-gd=gd
configure: error: Unable to find gd.h anywhere under gd

try88 发表于 2011-6-15 17:22:26

安装GD
tar zxvf gd-2.0.33.tar.gz
cd gd-2.0.33
./configure -prefix=/usr/local/gd -with-jpeg=/usr/local/jpeg6 -with-png -with-zlib -with-freetype
make
make install


checking for gdImageString16 in -lgd... no
checking for gdImagePaletteCopy in -lgd... no
checking for gdImageCreateFromPng in -lgd... no
checking for gdImageCreateFromGif in -lgd... no
checking for gdImageGif in -lgd... no
checking for gdImageWBMP in -lgd... no
checking for gdImageCreateFromJpeg in -lgd... no
checking for gdImageCreateFromXpm in -lgd... no
checking for gdImageCreateFromGd2 in -lgd... no
checking for gdImageCreateTrueColor in -lgd... no
checking for gdImageSetTile in -lgd... no
checking for gdImageEllipse in -lgd... no
checking for gdImageSetBrush in -lgd... no
checking for gdImageStringTTF in -lgd... no
checking for gdImageStringFT in -lgd... no
checking for gdImageStringFTEx in -lgd... no
checking for gdImageColorClosestHWB in -lgd... no
checking for gdImageColorResolve in -lgd... no
checking for gdImageGifCtx in -lgd... no
checking for gdCacheCreate in -lgd... no
checking for gdFontCacheShutdown in -lgd... no
checking for gdFreeFontCache in -lgd... no
checking for gdFontCacheMutexSetup in -lgd... no
checking for gdNewDynamicCtxEx in -lgd... no
checking for gdImageCreate in -lgd... no
configure: error: GD build test failed. Please check the config.log for details.

licess 发表于 2011-6-15 19:46:00

按他的提示具体信息看config.log

try88 发表于 2011-6-15 20:58:47

全部重新编译,搞定了
谢谢

xmx 发表于 2011-6-15 23:21:05

原帖由 try88 于 2011-6-15 17:05 发表 https://bbs.vpser.net/images/common/back.gif
使用--with-gd=gd
configure: error: Unable to find gd.h anywhere under gd

使用--with-gd=gd路径

汗一个。。。。
页: [1]
查看完整版本: CentOS 32 安装LNMP V0.7问题:安装后启动php-cgi , php失败