- skywing2011-01-04论坛元老12316
打算认真学点东西了,在本机装了虚拟机安装了两个ubuntu9.04服务器版,一个安装LAMP,已经安装成功,不过测试结果不怎么理想,256M内存装wordpress只能抗起大概一百个并发.另装了一虚拟机想装LNMP试试,安装NGINX+MYSQL都成功了,但PHP老是失败,请教大家,有对ubuntu比较熟的兄弟来指导一下吗?
不要劝我去装centos,看到它官方的4G多的镜像文件我就放弃了...还是下ubuntu 700多M的镜像文件好...
我的安装过装是这样的,大家看看问题出在哪里- wget -c http://www.php.net/distributions/php-5.2.14.tar.gz- wget -c http://php-fpm.org/downloads/php-5.2.14-fpm-0.5.14.diff.gz
- wget -c http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz
- wget -c http://download.suhosin.org/suhosin-patch-5.2.14-0.9.7.patch.gz
- tar zxvf libiconv-1.13.1.tar.gz
- cd libiconv-1.13.1/
- ./configure --prefix=/usr/web/libiconv
- make && make install
- cd ../
- tar zxvf php-5.2.14.tar.gz
- gzip -d ./suhosin-patch-5.2.14-0.9.7.patch.gz
- gzip -cd php-5.2.14-fpm-0.5.14.diff.gz | patch -d php-5.2.14 -p1
- cd php-5.2.14/
- patch -p 1 -i ../suhosin-patch-5.2.14-0.9.7.patch
- ./buildconf --force #这里提示缺少autoconf-2.13,我也安装了!
- ./configure --prefix=/usr/web/php --with-config-file-path=/usr/web/php/etc --with-mysql=/usr/web/mysql --with-mysqli=/usr/web/mysql/bin/mysql_config --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --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 #就是在这一步老是通不过复制代码
[ 本帖最后由 skywing 于 2011-1-4 14:29 编辑 ]