linux--Building PHP Development Environment First step: PHP

Source: Internet
Author: User
Tags mcrypt php development environment snmp

Original link: http://www.2cto.com/os/201511/450258.html

##### PHP Compilation Installation # # #

[[email protected] ~]# yum install libxml2-devel curl-devel libjpeg libjpeg-devel libpng libpng-devel freetype freet Ype-devel NET-SNMP net-snmp-devel [[email protected] src]# wget http://ftp.gnu.org/pub/gnu/libiconv/ Libiconv-1.14.tar.gz[[email protected] src]# tar zxvf libiconv-1.14.tar.gz[[email protected] src]# CD Libiconv-1.14[[email protected] libiconv-1.14]#./configure--prefix=/usr/local/php/libiconv[[email  Protected] libiconv-1.14]# make && make install [[email protected] src]# wget/HTTP/ Nchc.dl.sourceforge.net/project/mcrypt/libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz[[email protected] src]# Tar ZXVF libmcrypt-2.5.8.tar.gz[[email protected] src]# CD libmcrypt-2.5.8[[email protected] libmcrypt-2.5.8] #./configure[[email protected] libmcrypt-2.5.8]# make && make install [[email protected] libltdl]#/ Sbin/ldconfig && CD libltdl/[[email protected] libltdl]#./configure--enable-ltdl-install[[eMail protected] libltdl]# make && make install [[email protected] src]# wget/HTTP/ Nchc.dl.sourceforge.net/project/mhash/mhash/0.9.9.9/mhash-0.9.9.9.tar.gz[[email protected] src]# tar zxvf Mhash-0.9.9.9.tar.gz[[email protected] src]# CD mhash-0.9.9.9[[email protected] mhash-0.9.9.9]#./ Configure[[email protected] mhash-0.9.9.9]# make && make install [[email protected] src]# wget http:/ /nchc.dl.sourceforge.net/project/mcrypt/mcrypt/2.6.8/mcrypt-2.6.8.tar.gz[[email protected] src]# tar zxvf Mcrypt-2.6.8.tar.gz[[email protected] src]# CD mcrypt-2.6.8[[email protected] mcrypt-2.6.8]#/sbin/ Ldconfig && export ld_library_path=/usr/local/lib:ld_library_path[[email protected] mcrypt-2.6.8]#./ configure [[email protected] mcrypt-2.6.8]# make && make install [[email protected] src]# wget/HTTP/ Cn2.php.net/distributions/php-5.6.15.tar.gz[[email protected] src]# tar zxvf php-5.6.15.tar.gz[[emAil protected] src]# cd php-5.6.15 [[email protected] php-5.6.15]#./configure--prefix=/usr/local/php-- With-config-file-path=/usr/local/php/etc--with-iconv=/usr/local/php/libiconv--with-apxs2=/usr/local/apache/bin /apxs--with-mysql=mysqlnd--with-mysqli=mysqlnd--with-pdo-mysql=mysqlnd--with-gd--with-jpeg-dir--with-png-dir-- With-pear--with-freetype-dir--with-zlib--with-libxml-dir--with-iconv-dir--with-xmlrpc--with-mhash--with-mcrypt --with-curl--with-openssl--with-snmp--with-gettext--enable-pdo--enable-mbstring--enable-ctype-- Enable-simplexml--enable-ftp--enable-sockets--enable-gd-native-ttf--enable-sysvsem--enable-exif-- Enable-sysvshm--enable-xml--enable-dom--enable-simplexml--enable-shmop--enable-zip--enable-mbregex-- Enable-bcmath--enable-inline-optimization--enable-soap [[email protected] php-5.6.15]# make && make install [[email protected] php-5.6.15]# CP Php.ini-production/usr/local/php/etc/php.ini[[email protEcted] ~]# ln-s/usr/local/php/bin/*/usr/sbin/ 

  

View version

Php-v

linux--Building PHP Development Environment First step: PHP

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.