Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to patch php with php-fpm

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces how to patch php with php-fpm, which can be used for reference by interested friends. I hope you can learn a lot after reading this article. Let's take a look at it.

Patch php with php-fpm

Sudo tar jxvf php-5.2.14.tar.bz2

Sudo patch-d php-5.2.14- p1 < php-5.2.14-fpm-0.5.14.diff

Compile php

Cd php-5.2.14/

Sudo. / configure-- prefix=/usr/local/php-5.2.14-- with-mcrypt-- with-gettext-- with-mysql-- with-jpeg-dir-- with-png-dir-- with-ttf-- with-curl-- with-freetype-dir-- enable-gd-native-ttf-- enable-mbstring-- enable-sockets-- with-png-dir-- with-pdo-mysql-enable-fpm-- enable-fastcgi-- with-zlib-- With-fpm-conf=/etc/fpm-php.conf

Compile the memcached extension

Wget http://pecl.php.net/get/memcache-2.2.5.tgz

Tar-xvf memcache-2.2.5.tgz

Cd memcache-2.2.5/

/ usr/local/php-5.2.14/bin/phpize

. / configure-- with-php-config=/usr/local/php-5.2.14/bin/php-config

Sudo make

Sudo make install

Add the php.ini-dist cp in the source code to the / usr/local/php-5.2.14/lib directory, edit it, and add extension=memcache.so to it

=

To install the memcached server, you need to install the libeventlibrary first

Install the libevent library first

Sudo wget http://www.monkey.org/~provos/libevent-1.4.14b-stable.tar.gz

Sudo tar-gunzip libevent-1.4.14b-stable.tar.gz

Cd libevent-1.4.14b-stable

Sudo. / configure-- prefix=/usr

Make

Make install

Install memcached

Sudo wget http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz

Sudo tar-gunzip memcached-1.4.5.tar.gz

Cd memcached-1.4.5

Sudo. / configure-prefix=/usr/local/memcache-1.4.5-with-libevent=/usr

Sudo make

Sudo make install

Start memcached

. / memcached-d-u nobody-m 512 127.0.0.1-p 11211

Connect to memcached

Telnet 127.0.0.1 11211

Thank you for reading this article carefully. I hope the article "how to patch php with php-fpm" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you 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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report