In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly shows you "linux yum how to install php", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "linux yum how to install php" this article.
The method of installing php in yum under linux: 1, update the yum source; 2, install php7;3 through the "yum install php70w-common" command, and check the php version through "php-v".
This article operating environment: centos7 system, PHP7.0 version, Dell G3 computer
The method of installing php in yum under linux
Use yum to install the new version of php7.0 under linux
These two days installed a virtual machine, but also to compile lnmp, but also to make a variety of extensions, very troublesome, can you directly install yum? The answer is yes!
1. First, update the yum source, otherwise it is the default old version, which is generally 5.6or below, but php7 has been out for a long time and its performance has been improved by more than 50%!
Follow the system to update the yum source, mine is centos7, so I run the following code!
CentOS/RHEL 7.x:
Rpm-Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmrpm-Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
If it is centos6, execute the following code:
CentOS/RHEL 6.x:
Rpm-Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpmrpm-Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
Then you can yum and install php7.0 directly, and the following extensions can be installed:
Yum install php70w-common php70w-fpm php70w-opcache php70w-gd php70w-mysqlnd php70w-mbstring php70w-pecl-redis php70w-pecl-memcached php70w-devel
With this command, you can install the following extension!
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
Are you excited? Don't worry, there's something better! You usually have to install memcached,gd,mysql, and so on, right?
1 extension 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-firebird14 php70w-intl 15 php70w-ldap 16 php70w-mbstring 17 php70w-mcrypt 18 php70w-mysql php-mysqli, php_database19 php70w-mysqlnd php-mysqli, php_database20 php70w-odbc php-pdo_odbc, php_database21 php70w-opcache php70w-pecl-zendopcache22 php70w-pdo php70w-pdo_sqlite Php70w-sqlite323 php70w-pdo_dblib php70w-mssql24 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_database32 php70w-phpdbg 33 php70w-process php-posix, php-sysvmsg, php-sysvsem Php-sysvshm34 php70w-pspell 35 php70w-recode 36 php70w-snmp 37 php70w-soap 38 php70w-tidy 39 php70w-xml php-dom, php-domxml, php-wddx, php-xsl40 php70w-xmlrpc
For example, if you want to install xml, you can directly, don't doubt, it's as simple as that:
Yum install php70w-xml
2. Check the results:
Check the php version:
Php-v
Check out the php extension:
The above is all the contents of the article "how to install php in yum under linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.