本人从事 linux nginx mysql php 开发多年,联系v:luhuang2003 ,希望接触到更新的web开发软件,开此博客希望能把自己的经验和接触的东西与大家进行共享。
分类: 系统运维
2013-01-09 16:31:32
5、如果没有 yum install libmcrypt libmcrypt-devel -y 没有安装上如果安装上就不需要操作以下步骤
wget
tar -zxvf libmcrypt-2.5.7.tar.gz
cd libmcrypt-2.5.7
mkdir -p /usr/local/libmcrytp
./configure
make
make install
6、进入目录: cd php-5.4.10配置文件参数, 此操作把mysql 安装到了 /usr/local/php 目录下:
./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache/bin/apxs --with-openssl --with-mcrypt --with-openssl-dir=/usr/include/openssl/ --with-kerberos=/usr/include/kerberosiv --with-libxml-dir=/usr/include/libxml2/ --with-freetype-dir=/usr/include/freetype2/freetype/ --with-zlib-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/libpng/ --enable-shmop --with-curl=/usr/include/curl --enable-gd-native-ttf --enable-gd-jis-conv --enable-bcmath --enable-calendar --with-gettext --enable-exif --with-gettext --with-iconv--enable-sockets --enable-calendar --enable-mbstring --enable-zend-multibyte --enable-magic-quotes --enable-shmop --enable-zend-multibyte -enable-pic --enable-ftp --enable-magic-quotes --enable-ucd-snmp-hack -with-xmlreader --enable-libgcc --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-jpeg-dir=/usr/lib --with-config-file-path=/usr/local/php/etc --enable-fpm --with-pdo-mysql=shared
cp php.ini-production /usr/local/php/etc/php.ini
cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf