Source Code Compilation Installation php7.0.5

Source: Internet
Author: User

Source code Compilation Install php7.0.5 source package http://219.239.26.3/files/4255000007F687B2/cn2.php.net/distributions/ php-7.0.5.tar.gz installing Epel extended yum source [[email protected] ~]# RPM-IVH http://dl.fedoraproject.org/pub/epel/6/x86_64/ Epel-release-6-8.noarch.rpm[[email protected] ~]# yum clean all[[email protected] ~]# yum List Note: Rhel CD and CentOS sources are missing many packages and we recommend that you use an extension source to install dependent packages required for installation of dependent packages [[email protected] ~]# yum-y install Php-mcrypt libmcrypt Libmcrypt-devel autoconf freetype gd libmcrypt libpng libpng-devel libjpeg libxml2 libxml2-devel zlib Curl Curl-develapach e2.4 Source Installation Please refer to: http://blog.sina.com.cn/s/blog_14e8c64ca0102w3ge.htmlMySQL5.7 source installation Please consult: http://blog.sina.com.cn/s/ blog_14e8c64ca0102w3lg.html Configuration related parameters [[email protected] php-7.0.5]#./configure--prefix=/server/php7/-- With-apxs2=/usr/local/apache2/bin/apxs--enable-mbstring--with-curl--with-gd--enable-fpm--enable-mysqlnd-- With-pdo-mysql=mysqlnd--with-config-file-path=/server/php7/etc/--with-mysqli=mysqlnd--with-mysql-sock=/server/ Mysql/mysql.sock Note:--with-apxs2 #将php编译为Apache的一个模块进行使用--enable-mbstring #多字节字符串的支持--with-curl #支持cURL--with-gd #支持gd库--enable-fpm # Support for building Fpm--enable-mysqlnd #启用mysqlnd--with-pdo-mysql #支持pdo: MySQL support--with-config-file-path #设置配置文件路径--with-mysqli # Support for Mysqli--with-mysql-sock #关联mysql的socket文件 compilation [[email protected] php-7.0.5]# make-j 4 installation [[email protected] php-7.0.5]# make install build configuration file [[email protected] php-7.0.5]# CP Php.ini-production/server/php7/etc/php-ini Add Apache support [[[email protected] php-7.0.5 vim/usr/local/apache2/conf/httpd.confaddtype application/x-httpd-php. PHP. phtml Create Home file [[email protected] php-7.0.5]# cd/usr/local/apache2/htdocs/[[email protected] htdocs]# Vim a.php Restart Service apachectl Restart Verify access IP

Source Code Compilation Installation php7.0.5

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.