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 will explain in detail how to install and configure PHP-FPM under the Linux system. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
Basic installation method
Installation kit
$sudo apt-get install python-software-properties
Add ppa Feed
$sudo add-apt-repository ppa:yola/php5
Install php5-fpm
Sudo apt-get update sudo apt-get install php5-fpm
Other necessary software installation and connection
Sudo apt-get install nginx
Configure php-fpm
The parser for php-fpm is the Cramp S structure, and its configuration file is located in:
(1) / etc/php5/fpm/php-fpm.conf
(2) / etc/php5/fpm/pool.d/
Generally speaking, there are no strict configuration requirements, or I haven't specifically studied the meaning of each configuration parameter.
I use tcp mode to connect with the fastcgi process, so I modified the address and port of tcp snooping, and modified the name of the monitoring directory. I will not explain it in detail here. You can refer to the official documentation to configure according to your own needs.
Restart php5-fpm
Installation prompt error resolution
If there is no php5-fpm in the system source of the server, you will be prompted during installation:
Reading state information... Done
E: Couldn't find package php5-fpm
Solution.
1. Add an unofficial source to / etc/apt/sources.list
Echo "deb http://ppa.launchpad.net/brianmercer/php/ubuntu lucid main" > > / etc/apt/sources.list echo "deb-src http://ppa.launchpad.net/brianmercer/php/ubuntu lucid main" > > / etc/apt/sources.list
two。 Install php5-fpm
Sudo apt-get update & & sudo apt-get install php5-fpm
3. Install php extension components
Sudo apt-get install php-apc php5-curl php5-gd php5-imagick php5-mysql\ php5-memcache php5-memcached php5-mcrypt
4. Start php-fpm
Sudo / etc/init.d/php5-fpm start
Php.in is located at / etc/php5/fpm/php.ini
Php-fpm.ini is located at / etc/php5/fpm/php5-fpm.conf
Php-fpm start Times error
PHP Warning: PHP Startup: Unable to load dynamic library'/ usr/lib/php5/20060613+lfs/gd.so'-/ usr/lib/php5/20060613+lfs/gd.so: undefined symbol: gdImageCreateFromJpeg in Unknown on line 0
Locate libgd looks at the dynamic library location of gd, if there is one in the / usr/local/lib/ directory
Rm / usr/local/lib/libgd*
Just restart php-fpm.
Remove the warning message when php-fpm starts
PHP Deprecated: Comments starting with'# 'are deprecated in / etc/php5/fpm/conf.d/imagick.ini on line 1 in Unknown on line 0
Change # into; you can remove the prompt
This is the end of this article on "how to install and configure PHP-FPM under the Linux system". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.