标签:sys bmc disable group shm code strong home sem
相关依赖包的检查与安装
rpm -qa zlib-devel libxml2-devel libjpeg-devel libjpeg-turbo-devel libiconv-devel
rpm -qa freetype-devel libpng-devel gd-devel libcurl-devel libxslt-devel
yum -y install zlib-devel libxml2-devel libjpeg-devel libjpeg-turbo-devel libiconv-devel
yum -y install freetype-devel libpng-devel gd-devel libcurl-devel libxslt-devel
rpm -qa zlib-devel libxml2-devel libjpeg-devel libjpeg-turbo-devel libiconv-devel
rpm -qa freetype-devel libpng-devel gd-devel libcurl-devel libxslt-devel
安装libiconv软件时,可能会报错:*gets未声明,不在函数内等*
解决方法:cd /usr/local/libiconv/srclib
sed -i -e ‘/gets is a security/d‘ ./stdio.in.h
3.安装其他软件
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum -y install libmcrypt-devel
yum -y install mhash
yum -y install mcrypt
4.cd /home/tools 上传php-5.6.36.tar.gz
5.解压:tar -zxvf php-5.6.36.tar.gz
cd php-5.6.36
./configure --prefix=/application/php5.6.36 \
--with-mysql=/application/mysql \
--with-pdo-mysql=mysqlnd \
--with-iconv-dir=/usr/local/libiconv \
--with-freetype-dir \
--with-jpeg-dir \
--with-png-dir \
--with-zlib \
--with-libxml-dir=/usr/ \
--enable-xml \
--disable-rpath \
--enable-bcmath \
--enable-shmop \
--enable-sysvsem \
--enable-inline-optimization \
--with-curl \
--enable-mbregex \
--enable-fpm \
--enable-mbstring \
--with-mcrypt \
--with-gd \
--enable-gd-native-ttf \
--with-openssl \
--with-mhash \
--enable-pcntl \
--enable-sockets \
--with-xmlrpc \
--enable-soap \
--enable-short-tags \
--enable-static \
--with-xsl \
--with-fpm-user=www \
--with-fpm-group=www \
--enable-ftp \
--enable-opcache=no
ln -s /application/mysql/lib/libmysqlclient.so.18 /usr/lib64/
touch ext/phar/phar.phar
make
make install
ln -s /application/php5.6.36/ /application/php
cp php.ini-production /application/php/lib/php.ini
cd /application/php/etc/
cp php-fpm.conf.default php-fpm.conf
/application/php/sbin/php-fpm 启动php-fpm
ps -ef |grep php-fpm
lsof -i:9000
说明:
- --with-mysql=/application/mysql mysql的安装位置
- --with-fpm-user=www nginx的用户
- --with-fpm-group=www nginx的组
标签:sys bmc disable group shm code strong home sem
原文地址:http://blog.51cto.com/13754781/2296400