• DevOps
    Case Study

    How we built a resilient multi-account, multi-cloud solution for a Health Tech service provider!

    READ CASESTUDY
    icon

    24/7 DevOps as a Service

    Round-the-clock DevOps for uninterrupted efficiency.

    icon

    Infrastructure as a Code

    Crafting infrastructure with ingenious code.

    icon

    CI/CD Pipeline

    Automated CI/CD pipeline for seamless deployments.

    icon

    DevSecOps

    Integrated security in continuous DevOps practices.

    icon

    Hire DevOps Engineers

    Level up your team with DevOps visionaries.

    icon

    Consulting Services

    Navigate success with expert DevOps consulting.

  • TechOps
    Case Study

    How we built a scalable Odoo solution for a Travel Tech service provider!

    READ CASESTUDY

    WEB HOSTING SUPPORT

    icon

    HelpDesk Support

    Highly skilled 24/7 HelpDesk Support

    icon

    Product Support

    Boost your product support with our expertise.

    MANAGED SERVICES

    icon

    Server Management

    Don’t let server issues slow you down. Let us manage them for you.

    icon

    Server Monitoring

    Safeguard your server health with our comprehensive monitoring solutions.

    STAFF AUGMENTATION

    icon

    Hire an Admin

    Transform your business operations with our expert administrative support.

    icon

    Hire a Team

    Augment your workforce with highly skilled professionals from our diverse talent pool.

  • CloudOps
    Case Study

    How we helped a Private Deemed University in India, save US $3500/m on hosting charges!

    READ CASESTUDY
    icon

    AWS Well Architected Review

    Round-the-clock for uninterrupted efficiency

    icon

    Optimize

    Efficient CloudOps mastery for seamless cloud management

    icon

    Manage

    Automated CI/CD pipeline for seamless deployments

    icon

    Migrate

    Upgrade the journey, Migrate & Modernize seamlessly

    icon

    Modernize

    Simplify compliance complexities with our dedicated services

    icon

    FinOps as a Service

    FinOps as a Service

  • SecOps
    Case Study

    How we built a scalable Odoo solution for TravelTech service provider!

    READ CASESTUDY
    icon

    VAPT

    Vulnerability Assessment and Penetration Testing

    icon

    Source Code Review

    Ensuring source code security ans safe practices to reduce risks

    icon

    Security Consultation

    On demand services for improving server security

    icon

    System Hardening

    Reduced vulnerability and proactive protection

    icon

    Managed SoC

    Monitors and maintains system security. Quick response on incidents.

    icon

    Compliance as a Service

    Regulatory compliance, reduced risk

  • Insights
    Case Study

    How we helped a Private Deemed University in India, save US $3,500/m on hosting charges!

    READ CASESTUDY
    icon

    Blog

    Explore our latest articles and insights

    icon

    Case Studies

    Read about our client success stories

    icon

    Flipbook

    Explore our latest Flipbook

    icon

    Events

    Join us at upcoming events and conferences

    icon

    Webinars

    Watch our educational webinar series

  • Our Story
  • Contact Us

Interested to collaborate?

Get in touch with us!

Ready to elevate your business with certified cloud expertise? Contact us today to learn how our team can help you leverage cloud technology to drive growth, streamline operations, and enhance security.

  • AWSAWS
  • Azure CloudAzure Cloud
  • Google CloudGoogle Cloud
  • Akamai CloudAkamai Cloud
  • OVHOVH
  • Digital OceanDigital Ocean
  • HetznerHetzner
  • Kubernetes Consultancy Services
  • K8s & Cloud native Solutions
  • 24/7 Infrastructure Monitoring
  • DevOps as a Service
  • Cloud CI/CD Solutions
  • White Labeled MSP Support
  • Our story
  • Life@SupportSages
  • Insights
  • Careers
  • Events
  • Contact Us

Connect with us!


LinkedInFacebookXInstagramYouTube

aws partneraws advanced partner
SupportSages

Copyright © 2008 – 2026 SupportSages Pvt Ltd. All Rights Reserved.
Privacy PolicyLegal TermsData ProtectionCookie Policy
Source compilation Nginx + php-FPM Part 2

Source compilation Nginx + php-FPM Part 2

Jithin Vijayan

  • 3 min read
Source compilation Nginx + php-FPM  Part 2

Generating audio, please wait...

Now Nginx server support team providing the next part where php is compiled with php-fpm

Before installation we need to install some of the required libraries

apt-get install autoconf2.13 libssl-dev libcurl4-gnutls-dev libjpeg62-dev libpng12-dev  libmysql++-dev libfreetype6-dev libt1-dev libc-client-dev mysql-client libevent-dev libxml2-dev libtool libmcrypt-dev

Download the php version 5.3.3 where the php-fpm is an inbuilt

wget http://nl3.php.net/get/php-5.3.3.tar.gz

tar -xzf php-5.3.3.tar.gz

cd php-5.3.3

./configure --enable-fpm --with-mcrypt --enable-mbstring --with-openssl --with-mysql --with-mysql-sock --with-gd --with-jpeg-dir=/usr/lib --enable-gd-native-ttf  --with-pdo-mysql --with-libxml-dir=/usr/lib --with-mysqli=/usr/bin/mysql_config --with-curl --enable-zip  --enable-sockets --with-zlib --enable-exif --enable-ftp --with-iconv --with-gettext --enable-gd-native-ttf --with-t1lib=/usr --with-freetype-dir=/usr --prefix=/usr/local/php --with-fpm-user=www-data –with-fpm-group=www-data

I have customised the options according to my choice here, where as for enabling the fpm “–enable-fpm” only this is required.

make

make test

make install

The installation is completed

You may copy some of the default configuration from the downloaded package to installation file here I am copying the devolopment php.ini along with the conf

cp php.ini-development /usr/local/php/php.ini

cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf

cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm

or you can download it from the url

http://svn.php.net/repository/php/php-src/branches/PHP_5_3/sapi/fpm/init.d.php-fpm.in

chmod 755 /etc/init.d/php-fpm 

Adding php-fpm to auto-run on each login

update-rc.d -f php-fpm defaults

Adding system startup for /etc/init.d/php-fpm …
/etc/rc0.d/K20php-fpm -> ../init.d/php-fpm
/etc/rc1.d/K20php-fpm -> ../init.d/php-fpm
/etc/rc6.d/K20php-fpm -> ../init.d/php-fpm
/etc/rc2.d/S20php-fpm -> ../init.d/php-fpm
/etc/rc3.d/S20php-fpm -> ../init.d/php-fpm
/etc/rc4.d/S20php-fpm -> ../init.d/php-fpm
/etc/rc5.d/S20php-fpm -> ../init.d/php-fpm

/etc/init.d/php-fpm start 

Some of the errors and their fix I found during the installation

Installation during nginx when ./configure was run

Error

checking for PCRE library … not found
checking for PCRE library in /usr/local/ … not found
checking for PCRE library in /usr/include/pcre/ … not found
checking for PCRE library in /usr/pkg/ … not found
checking for PCRE library in /opt/local/ … not found

./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using –without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using –with-pcre=<path> option.

sudo aptitude install libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev 

Error found when php-fpm was started

/etc/init.d/php-fpm start
Starting php-fpm Nov 24 17:17:05.586113 [ALERT] [pool www] pm.min_spare_servers(0) must be a positive value
Nov 24 17:17:05.586173 [ERROR] failed to post process the configuration
failed

You just need to make sure these values are not commented in /usr/local/php/etc/php-fpm.conf

pm = dynamic
pm.max_children = 50
pm.start_servers = 10
pm.min_spare_servers = 5
pm.max_spare_servers = 35

Another one that came around was

/etc/init.d/php-fpm start
Starting php-fpm .Nov 24 17:21:48.489194 [ERROR] [pool www] cannot get gid for group ‘nobody’
……………………………. failed

either you can create a group for nobody

groupadd nobody

or can change it in your php-fpm.conf

; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user’s group
;       will be used.
user = www-data
group = nobody

  • cPanel
  • General
  • Howtos
  • Linux
  • Special Offers
  • Training
  • Troubleshooting

Adjusting the language settings in spamassassin

SupportSages Logo
  • cPanel
  • Howtos
  • Linux
  • Snippets
logo

Error in Drupal while enabling clean URL

SupportSages Logo
  • General
  • Howtos
  • Linux
logo

How would I checkout a particular version from SVN

SupportSages Logo
  • Howtos
  • Snippets
  • Troubleshooting
logo

IP’s – The backbone of Internet Part 3 – Subnetting and Classless Addressing

IP’s – The backbone of Internet Part 3 – Subnetting and Classless Addressing
  • General
  • Linux
  • Training
logo

Posts by Jithin Vijayan

One of the most inquisitive person you may come across in your life :-). His enthusiasm to unearth the existing technologies and excellent comprehension skills makes him one of the most dependable admin during critical situations. Jithin loves trekking and photography.