amh4.2php安装失败

2014年9月29日 | 分类: Linux | 标签:
groupadd www;
useradd -m -s /sbin/nologin -g www www;

wget http://cn2.php.net/distributions/php-5.3.27.tar.gz
tar -zxf php-5.3.27.tar.gz
cd php-5.3.27
./configure --prefix=/usr/local/php --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --with-openssl --with-zlib  --with-curl --enable-ftp --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-gd-native-ttf --enable-mbstring --enable-zip --with-iconv=/usr/local/libiconv --with-mysql=/usr/local/mysql --without-pear --disable-fileinfo;
make
make install
cp /home/amh_install/conf/php.ini /etc/php.ini;
cp /home/amh_install/conf/php /root/amh/php;
cp /home/amh_install/conf/php-fpm.conf /usr/local/php/etc/php-fpm.conf;
cp /home/amh_install/conf/php-fpm-template.conf /usr/local/php/etc/php-fpm-template.conf;
chmod +x /root/amh/php;
mkdir /etc/php.d;
mkdir /usr/local/php/etc/fpm;
mkdir /usr/local/php/var/run/pid;
touch /usr/local/php/etc/fpm/amh.conf;
/usr/local/php/sbin/php-fpm;
ln -s /usr/local/php/bin/php /usr/bin/php;
ln -s /usr/local/php/bin/phpize /usr/bin/phpize;
ln -s /usr/local/php/sbin/php-fpm /usr/bin/php-fpm;
目前还没有任何评论.

返回顶部