In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
In this paper, an example is given to describe the method of installing php7 through yum under the environment of CentOS 6amp 7. Share with you for your reference, the details are as follows:
Installing php7 is now a necessary tool for linux servers. As long as you do a website, you will consider using php7. Let's take a look at the tutorial on installing php7 environment through yum under Centos 6 / 7.
The official version of PHP7 was released in early December 2015, ushering in the biggest update since 2004. The most significant change in PHP7 is the great improvement in performance, which is close to HHVM, the PHP execution engine developed by Facebook. In the WordPress benchmark performance test, the speed is 2-3 times faster than version 5.6, greatly reducing memory footprint. PHP7 also has some language changes, such as the addition of return type declarations, the addition of some new reserved keywords, and so on. In terms of security, remove PHP security mode, add magic quotation marks and so on. Not only that, the new version also supports 64-bit and includes the latest version of the Zend engine.
View centos version
# cat / etc/centos-release
Delete the previous php version
# yum remove php* php-common
Rpm installs the corresponding yum source for Php7
CentOS/RHEL 7.x:
# rpm-Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm# rpm-Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
CentOS/RHEL 6.x:
# rpm-Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
Yum install php7
# yum install php70w php70w-opcache
Install other plug-ins (optional)
Php70wphp70w-bcmathphp70w-cliphp70w-commonphp70w-dbaphp70w-develphp70w-embeddedphp70w-enchantphp70w-fpmphp70w-gdphp70w-imapphp70w-interbasephp70w-intlphp70w-ldapphp70w-mbstringphp70w-mcryptphp70w-mysqlphp70w-mysqlndphp70w-odbcphp70w-opcachephp70w-pdophp70w-pdo_dblibphp70w-pearphp70w-pecl-apcuphp70w-pecl-imagickphp70w-pecl-xdebugphp70w-pgsqlphp70w-phpdbgphp70w-processphp70w-pspellphp70w-recodephp70w-snmpphp70w-soapphp70w-tidyphp70w-xmlphp70w-xmlrpc
Restart Apache
# service httpd restart
If it is Apache + PHP, you must use PHPIniDir to specify the path to php5's configuration file, php.ini.
PHPINIDir / etc/php.ini
I hope what is described in this article will be helpful to the configuration of CentOS server.
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.