In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "installation tutorial of php5.3 version". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the installation tutorial for the php5.3 version.
This article operating environment: centOS6.8 system, php5.3 version, DELL G3 computer
Php5.3 installation tutorial
Php5.3 installation
Sudo apt-get install gccsudo apt-get install g++sudo apt-get install autoconfsudo apt-get install libxml2sudo apt-get install libxml2-devsudo apt-get install libevent-1.4-2sudo apt-get install libevent-devsudo apt-get install bzip2sudo apt-get install libbz2-devsudo apt-get install libcurl3-gnutlssudo apt-get install libcurl4-gnutls-devsudo apt-get install libpng12- 0sudo apt-get install libpng12-devsudo apt-get install libjpeg62sudo apt-get install libjpeg62-devsudo apt-get install libfreetype6sudo apt-get install libfreetype6-devsudo apt-get install libmcrypt4sudo apt-get Install libmcrypt-devsudo apt-get install zlib1g-devsudo apt-get install libtidy-devsudo apt-get install autoconf with-curl + libxml2-dev libevent-dev libbz2-dev libcurl4-gnutls-dev libpng12-dev libjpeg62-dev libfreetype6-dev libmcrypt-dev zlib1g-dev./configure-- prefix=/usr/local/php55-- with-gettext-- with-mysql=mysqlnd-- with-gd-- with-jpeg-dir-- with-png-dir-- with-curl-- with-freetype-dir-- enable-gd-native-ttf-- enable- Mbstring-enable-sockets-with-mcrypt-with-pdo-mysql=mysqlnd-enable-fpm-with-zlib-enable-zip-with-bz2-enable-bcmath-enable-sysvmsg-enable-sysvsem enable-sysvshm enable-pcntl
Note:
If it is RH, you need to:
Yum-y install curl-develyum install libjpeg-develyum install libpng-develyum install freetype-develyum install-y libmcrypt-devel.x86_64 yum install-y libxml2-devel.x86_64yum install-y bzip2-devel.x86_64 yum install libtool-ltdl-devel (on make: / usr/bin/ld: cannot find-lltdl) yum install autoconf yum install-y libtidy-devel.x86_64
Compile, install
. / configure-- prefix=/usr/local/php-5.3.3-- with-gettext-- with-mysql=mysqlnd-- with-gd-- with-jpeg-dir-- with-png-dir-- with-curl-- with-freetype-dir-- enable-gd-native-ttf-- enable-mbstring-- enable-sockets-- with-mcrypt-- with-pdo-mysql=mysqlnd-- enable-fpm-- with-zlib-enable-zip-- with-bz2-- enable-bcmath-- with-tidy make make install
After the compilation and installation, you also need to configure php-fpm, because php5.3 no longer needs to be patched by php-fpm, so the previous way of controlling php-fpm (boot, restart) needs to be changed. The steps are as follows:
Copy from the source package:
Sudo path/to/php-source/folder/sapi/fpm/init.d.php-fpm / etc/init.d/php-fpmsudo chmod axix / etx/init.d/php-fpm
It can then be controlled by / etc/init.d/php-fpm (start | stop | force-quit | restart | reload).
General extension installation
Memcached:
Wget http://pecl.php.net/get/memcache-2.2.5.tgztar-xvf memcache-2.2.5.tgzcd memcache-2.2.5/usr/local/php-5.3.3/bin/phpize./configure-- with-php-config=/usr/local/php-5.3.3/bin/php-configmakemake install
Solr
Wget http://pecl.php.net/get/solr-0.9.11.tgztar-xvf solr-0.9.11.tgzcd solr-0.9.11/usr/local/php-5.3.3/bin/phpize./configure-- with-php-config=/usr/local/php-5.3.3/bin/php-configmakemake install
Xcache
Wget http://xcache.lighttpd.net/pub/Releases/1.3.0/xcache-1.3.0.tar.bz2 tar-xjvf xcache-1.3.0.tar.bz2 cd xcache-1.3.0 / usr/local/php-5.3.3/bin/phpize. / configure-- with-php-config=/usr/local/php-5.3.3/bin/php-config make make install php_iniexpose_php = offerror_reporting = E_ALLdisplay_errors = Onshort_open _ tag = On extension=memcache.soextension=xcache.soextension=solr.so bbs requires Log_errors = onerror_log = syslog linux system can use this, the errorlog output to syslog date.timezone = Asia/Shanghai to this, I believe you have a deeper understanding of the "php5.3 version of the installation tutorial", might as well to actual operation it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.