LINUX yum install php7.0

These two days also installed at the virtual machine, but also to compile lnmp, but also get a variety of development, a lot of trouble, can not be directly yum install it? The answer is yes!

1, first update yum source, or the old version is the default, generally in the 5.6 and below, but php7 are out for a long time, more than 50% performance increase!

The system update yum source, I was centos7, so I run the following code!

CentOS/RHEL 7.x:

https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh 
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

If centos6, then execute the following code: 
CentOS / RHEL 6.x:

https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm rpm -Uvh 
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

Then you can directly yum install php7.0, you can install the expansion as follows:

yum install php70w-common php70w-fpm php70w-opcache php70w-gd php70w-mysqlnd php70w-mbstring php70w-pecl-redis php70w-pecl-memcached php70w-devel

In this one command, you can expand following the installation!

php-api, php-bz2, php-calendar, php-ctype, php-curl, php-date, php-exif, php-fileinfo, php-filter, php-ftp, php-gettext, php-gmp, php-hash, php-iconv, php-json, php-libxml, php-openssl, php-pcre, php-pecl-Fileinfo, php-pecl-phar, php-pecl-zip, php-reflection, php-session, php-shmop, php-simplexml, php-sockets, php-spl, php-tokenizer, php-zend-abi, php-zip, php-zlib

Excited, right? But wait, there's more cattle! Generally required to install memcached, gd, mysql, etc. is not it?

Copy the code
 1 安装包         提供的拓展
 2 php70w          mod_php , php70w-zts
 3 php70w-bcmath       
 4 php70w-cli      php-cgi, php-pcntl, php-readline
 5 php70w-common   php-api, php-bz2, php-calendar, php-ctype, php-curl, php-date, php-exif, php-fileinfo, php-filter, php-ftp, php-gettext, php-gmp, php-hash, php-iconv, php-json, php-libxml, php-openssl, php-pcre, php-pecl-Fileinfo, php-pecl-phar, php-pecl-zip, php-reflection, php-session, php-shmop, php-simplexml   , php-sockets, php-spl, php-tokenizer, php-zend-abi, php-zip, php-zlib
 6 php70w-dba      
 7 php70w-devel        
 8 php70w-embedded     php-embedded-devel
 9 php70w-enchant      
10 php70w-fpm      
11 php70w-gd       
12 php70w-imap     
13 php70w-interbase        php_database, php-firebird
14 php70w-intl     
15 php70w-ldap     
16 php70w-mbstring     
17 php70w-mcrypt       
18 php70w-mysql        php-mysqli, php_database
19 php70w-mysqlnd      php-mysqli, php_database
20 php70w-odbc     php-pdo_odbc, php_database
21 php70w-opcache      php70w-pecl-zendopcache
22 php70w-pdo      php70w-pdo_sqlite, php70w-sqlite3
23 php70w-pdo_dblib        php70w-mssql
24 php70w-pear     
25 php70w-pecl-apcu    
26 php70w-pecl-imagick 
27 php70w-pecl-memcached   
28 php70w-pecl-mongodb 
29 php70w-pecl-redis   
30 php70w-pecl-xdebug  
31 php70w-pgsql        php-pdo_pgsql, php_database
32 php70w-phpdbg       
33 php70w-process      php-posix, php-sysvmsg, php-sysvsem, php-sysvshm
34 php70w-pspell       
35 php70w-recode       
36 php70w-snmp     
37 php70w-soap     
38 php70w-tidy     
39 php70w-xml      php-dom, php-domxml, php-wddx, php-xsl
40 php70w-xmlrpc   
Copy the code

For example, you want to install xml, you can direct, do not doubt is that simple:

yum install php70w-xml

2 And check out the results:

Check php version:

php -v

 

Look php Development:

See it? Basically used to expand all here, right? To what themselves to look like a yum! No longer have to rely on a variety of tangled question!

Guess you like

Origin www.cnblogs.com/qichao123/p/11960151.html
Recommended