Alternatives to PHP-FPM logo

Alternatives to PHP-FPM

HHVM (HipHop Virtual Machine), PHP, NGINX, uWSGI, and Sidekiq are the most popular alternatives and competitors to PHP-FPM.
108
119
+ 1
0

What is PHP-FPM and what are its top alternatives?

PHP-FPM, which stands for PHP FastCGI Process Manager, is a process manager designed to optimize and manage the execution of PHP scripts. It allows for better performance and scalability by processing PHP code as a separate processes rather than traditional CGI methods. Key features include process management, better performance, scalable architecture, and support for multiple pools for different websites. However, PHP-FPM may require additional configuration and monitoring, and its setup can be more complex compared to traditional PHP handlers like mod_php.

  1. HHVM: HHVM is an open-source virtual machine designed for executing programs written in PHP and Hack languages. Key features include Just-In-Time compilation, high performance, and support for PHP and Hack languages. Pros include improved performance over PHP-FPM, while cons may include compatibility issues with some PHP extensions.

  2. LiteSpeed Web Server + LSAPI: LiteSpeed Web Server with LSAPI is a high-performance web server with PHP support. Key features include LiteSpeed Cache, HTTP/3 support, and built-in security features. Pros include improved performance and scalability, while cons may include the need for a commercial license for certain features.

  3. Caddy Server: Caddy is an open-source web server with automatic HTTPS and support for PHP processing. Key features include automatic HTTPS configuration, easy deployment, and modular plugin system. Pros include user-friendly configuration, while cons may include compatibility issues with some PHP applications.

  4. OpenLiteSpeed + LSAPI: OpenLiteSpeed with LSAPI is a lightweight open-source web server with PHP support. Key features include performance optimization, LiteSpeed Cache, and HTTP/3 support. Pros include scalability and performance, while cons may include limited support compared to LiteSpeed Enterprise.

  5. Nginx + PHP-FastCGI: Nginx with PHP-FastCGI is a popular web server setup for processing PHP scripts. Key features include high performance, low resource consumption, and support for reverse proxy. Pros include scalability and performance, while cons may include complexity in configuration for beginners.

  6. Apache + mod_fastcgi: Apache web server with mod_fastcgi module allows for processing PHP scripts using FastCGI. Key features include flexibility, support for various programming languages, and extensive module ecosystem. Pros include compatibility with different applications, while cons may include higher resource consumption compared to Nginx.

  7. Lighttpd: Lighttpd is a lightweight open-source web server known for its speed and efficiency. Key features include low memory footprint, fast performance, and support for FastCGI. Pros include speed and efficiency, while cons may include limited module ecosystem compared to Apache or Nginx.

  8. Microsoft IIS + FastCGI: Microsoft Internet Information Services (IIS) with FastCGI module allows for running PHP scripts on Windows servers. Key features include Windows integration, support for PHP, and compatibility with ASP.NET applications. Pros include seamless integration with Windows environments, while cons may include licensing costs for Windows Server.

  9. Cherokee: Cherokee is a lightweight web server with FastCGI support and a user-friendly interface. Key features include simple configuration, extensibility through plugins, and scalability. Pros include ease of use, while cons may include limited community support compared to other solutions.

  10. H2O + mruby: H2O web server with mruby module allows for dynamic content processing with support for scripting languages like Ruby. Key features include performance optimization, scripting language support, and HTTP/2 compatibility. Pros include flexibility, while cons may include limited documentation compared to more established solutions.

Top Alternatives to PHP-FPM

  • HHVM (HipHop Virtual Machine)
    HHVM (HipHop Virtual Machine)

    HHVM uses a just-in-time (JIT) compilation approach to achieve superior performance while maintaining the flexibility that PHP developers are accustomed to. To date, HHVM (and its predecessor HPHPc before it) has realized over a 9x increase in web request throughput and over a 5x reduction in memory consumption for Facebook compared with the PHP 5.2 engine + APC. ...

  • PHP
    PHP

    Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world. ...

  • NGINX
    NGINX

    nginx [engine x] is an HTTP and reverse proxy server, as well as a mail proxy server, written by Igor Sysoev. According to Netcraft nginx served or proxied 30.46% of the top million busiest sites in Jan 2018. ...

  • uWSGI
    uWSGI

    The uWSGI project aims at developing a full stack for building hosting services. ...

  • Sidekiq
    Sidekiq

    Sidekiq uses threads to handle many jobs at the same time in the same process. It does not require Rails but will integrate tightly with Rails 3/4 to make background processing dead simple. ...

  • Hangfire
    Hangfire

    It is an open-source framework that helps you to create, process and manage your background jobs, i.e. operations you don't want to put in your request processing pipeline. It supports all kind of background tasks – short-running and long-running, CPU intensive and I/O intensive, one shot and recurrent. ...

  • Resque
    Resque

    Background jobs can be any Ruby class or module that responds to perform. Your existing classes can easily be converted to background jobs or you can create new classes specifically to do work. Or, you can do both. ...

  • Beanstalkd
    Beanstalkd

    Beanstalks's interface is generic, but was originally designed for reducing the latency of page views in high-volume web applications by running time-consuming tasks asynchronously. ...

PHP-FPM alternatives & related posts

HHVM (HipHop Virtual Machine) logo

HHVM (HipHop Virtual Machine)

142
136
95
An open-source virtual machine designed for executing programs written in Hack and PHP
142
136
+ 1
95
PROS OF HHVM (HIPHOP VIRTUAL MACHINE)
  • 30
    Very fast
  • 24
    Drop-in PHP replacement
  • 14
    Works well with nginx
  • 14
    Backed by Facebook
  • 12
    Open source
  • 1
    Statically checked, typed language
CONS OF HHVM (HIPHOP VIRTUAL MACHINE)
    Be the first to leave a con

    related HHVM (HipHop Virtual Machine) posts

    PHP logo

    PHP

    142.2K
    79.5K
    4.6K
    A popular general-purpose scripting language that is especially suited to web development
    142.2K
    79.5K
    + 1
    4.6K
    PROS OF PHP
    • 951
      Large community
    • 817
      Open source
    • 765
      Easy deployment
    • 487
      Great frameworks
    • 387
      The best glue on the web
    • 235
      Continual improvements
    • 185
      Good old web
    • 145
      Web foundation
    • 135
      Community packages
    • 125
      Tool support
    • 35
      Used by wordpress
    • 34
      Excellent documentation
    • 29
      Used by Facebook
    • 23
      Because of Symfony
    • 21
      Dynamic Language
    • 17
      Cheap hosting
    • 16
      Easy to learn
    • 14
      Awesome Language and easy to implement
    • 14
      Very powerful web language
    • 14
      Fast development
    • 13
      Composer
    • 12
      Flexibility, syntax, extensibility
    • 12
      Because of Laravel
    • 9
      Easiest deployment
    • 8
      Readable Code
    • 8
      Fast
    • 7
      Most of the web uses it
    • 7
      Worst popularity quality ratio
    • 7
      Short development lead times
    • 7
      Fastestest Time to Version 1.0 Deployments
    • 6
      Faster then ever
    • 5
      Open source and large community
    • 5
      Simple, flexible yet Scalable
    • 4
      I have no choice :(
    • 4
      Has the best ecommerce(Magento,Prestashop,Opencart,etc)
    • 4
      Is like one zip of air
    • 4
      Open source and great framework
    • 4
      Large community, easy setup, easy deployment, framework
    • 4
      Great developer experience
    • 4
      Easy to use and learn
    • 4
      Cheap to own
    • 4
      Easy to learn, a big community, lot of frameworks
    • 2
      Walk away
    • 2
      Used by STOMT
    • 2
      Hard not to use
    • 2
      Fault tolerance
    • 2
      Great flexibility. From fast prototyping to large apps
    • 2
      Interpreted at the run time
    • 2
      FFI
    • 2
      Safe the planet
    • 1
      It can get you a lamborghini
    • 1
      Secure
    • 1
      Simplesaml
    • 1
      Bando
    • 0
      Secure
    CONS OF PHP
    • 22
      So easy to learn, good practices are hard to find
    • 16
      Inconsistent API
    • 8
      Fragmented community
    • 6
      Not secure
    • 3
      No routing system
    • 3
      Hard to debug
    • 2
      Old

    related PHP posts

    Nick Rockwell
    SVP, Engineering at Fastly · | 46 upvotes · 3.2M views

    When I joined NYT there was already broad dissatisfaction with the LAMP (Linux Apache HTTP Server MySQL PHP) Stack and the front end framework, in particular. So, I wasn't passing judgment on it. I mean, LAMP's fine, you can do good work in LAMP. It's a little dated at this point, but it's not ... I didn't want to rip it out for its own sake, but everyone else was like, "We don't like this, it's really inflexible." And I remember from being outside the company when that was called MIT FIVE when it had launched. And been observing it from the outside, and I was like, you guys took so long to do that and you did it so carefully, and yet you're not happy with your decisions. Why is that? That was more the impetus. If we're going to do this again, how are we going to do it in a way that we're gonna get a better result?

    So we're moving quickly away from LAMP, I would say. So, right now, the new front end is React based and using Apollo. And we've been in a long, protracted, gradual rollout of the core experiences.

    React is now talking to GraphQL as a primary API. There's a Node.js back end, to the front end, which is mainly for server-side rendering, as well.

    Behind there, the main repository for the GraphQL server is a big table repository, that we call Bodega because it's a convenience store. And that reads off of a Kafka pipeline.

    See more
    Simon Reymann
    Senior Fullstack Developer at QUANTUSflow Software GmbH · | 27 upvotes · 4.7M views

    Our whole Node.js backend stack consists of the following tools:

    • Lerna as a tool for multi package and multi repository management
    • npm as package manager
    • NestJS as Node.js framework
    • TypeScript as programming language
    • ExpressJS as web server
    • Swagger UI for visualizing and interacting with the API’s resources
    • Postman as a tool for API development
    • TypeORM as object relational mapping layer
    • JSON Web Token for access token management

    The main reason we have chosen Node.js over PHP is related to the following artifacts:

    • Made for the web and widely in use: Node.js is a software platform for developing server-side network services. Well-known projects that rely on Node.js include the blogging software Ghost, the project management tool Trello and the operating system WebOS. Node.js requires the JavaScript runtime environment V8, which was specially developed by Google for the popular Chrome browser. This guarantees a very resource-saving architecture, which qualifies Node.js especially for the operation of a web server. Ryan Dahl, the developer of Node.js, released the first stable version on May 27, 2009. He developed Node.js out of dissatisfaction with the possibilities that JavaScript offered at the time. The basic functionality of Node.js has been mapped with JavaScript since the first version, which can be expanded with a large number of different modules. The current package managers (npm or Yarn) for Node.js know more than 1,000,000 of these modules.
    • Fast server-side solutions: Node.js adopts the JavaScript "event-loop" to create non-blocking I/O applications that conveniently serve simultaneous events. With the standard available asynchronous processing within JavaScript/TypeScript, highly scalable, server-side solutions can be realized. The efficient use of the CPU and the RAM is maximized and more simultaneous requests can be processed than with conventional multi-thread servers.
    • A language along the entire stack: Widely used frameworks such as React or AngularJS or Vue.js, which we prefer, are written in JavaScript/TypeScript. If Node.js is now used on the server side, you can use all the advantages of a uniform script language throughout the entire application development. The same language in the back- and frontend simplifies the maintenance of the application and also the coordination within the development team.
    • Flexibility: Node.js sets very few strict dependencies, rules and guidelines and thus grants a high degree of flexibility in application development. There are no strict conventions so that the appropriate architecture, design structures, modules and features can be freely selected for the development.
    See more
    NGINX logo

    NGINX

    112K
    59.9K
    5.5K
    A high performance free open source web server powering busiest sites on the Internet.
    112K
    59.9K
    + 1
    5.5K
    PROS OF NGINX
    • 1.4K
      High-performance http server
    • 893
      Performance
    • 730
      Easy to configure
    • 607
      Open source
    • 530
      Load balancer
    • 288
      Free
    • 288
      Scalability
    • 225
      Web server
    • 175
      Simplicity
    • 136
      Easy setup
    • 30
      Content caching
    • 21
      Web Accelerator
    • 15
      Capability
    • 14
      Fast
    • 12
      High-latency
    • 12
      Predictability
    • 8
      Reverse Proxy
    • 7
      The best of them
    • 7
      Supports http/2
    • 5
      Great Community
    • 5
      Lots of Modules
    • 5
      Enterprise version
    • 4
      High perfomance proxy server
    • 3
      Reversy Proxy
    • 3
      Streaming media delivery
    • 3
      Streaming media
    • 3
      Embedded Lua scripting
    • 2
      GRPC-Web
    • 2
      Blash
    • 2
      Lightweight
    • 2
      Fast and easy to set up
    • 2
      Slim
    • 2
      saltstack
    • 1
      Virtual hosting
    • 1
      Narrow focus. Easy to configure. Fast
    • 1
      Along with Redis Cache its the Most superior
    • 1
      Ingress controller
    CONS OF NGINX
    • 10
      Advanced features require subscription

    related NGINX posts

    Recently I have been working on an open source stack to help people consolidate their personal health data in a single database so that AI and analytics apps can be run against it to find personalized treatments. We chose to go with a #containerized approach leveraging Docker #containers with a local development environment setup with Docker Compose and nginx for container routing. For the production environment we chose to pull code from GitHub and build/push images using Jenkins and using Kubernetes to deploy to Amazon EC2.

    We also implemented a dashboard app to handle user authentication/authorization, as well as a custom SSO server that runs on Heroku which allows experts to easily visit more than one instance without having to login repeatedly. The #Backend was implemented using my favorite #Stack which consists of FeathersJS on top of Node.js and ExpressJS with PostgreSQL as the main database. The #Frontend was implemented using React, Redux.js, Semantic UI React and the FeathersJS client. Though testing was light on this project, we chose to use AVA as well as ESLint to keep the codebase clean and consistent.

    See more

    Around the time of their Series A, Pinterest’s stack included Python and Django, with Tornado and Node.js as web servers. Memcached / Membase and Redis handled caching, with RabbitMQ handling queueing. Nginx, HAproxy and Varnish managed static-delivery and load-balancing, with persistent data storage handled by MySQL.

    See more
    uWSGI logo

    uWSGI

    253
    312
    12
    uWSGI application server container
    253
    312
    + 1
    12
    PROS OF UWSGI
    • 6
      Faster
    • 4
      Simple
    • 2
      Powerful
    CONS OF UWSGI
      Be the first to leave a con

      related uWSGI posts

      I find I really like using GitHub because its issue tracker integrates really well into my project flow and the projects feature allows me to organize different efforts into boards. The automation features allow my issues to automatically progress through some states on the boards when I merge pull requests.

      My Python / Django app is deployed on Heroku with PostgreSQL database and uWSGI webserver.

      See more

      I use Gunicorn because does one thing - it’s a WSGI HTTP server - and it does it well. Deploy it quickly and easily, and let the rest of your stack do what the rest of your stack does well, wherever that may be.

      uWSGI “aims at developing a full stack for building hosting services” - if that’s a thing you need then ok, but I like the principle of doing one thing well, and I deploy to platforms like Heroku and AWS Elastic Beanstalk where the rest of the “hosting service” is provided and managed for me.

      See more
      Sidekiq logo

      Sidekiq

      1.1K
      629
      408
      Simple, efficient background processing for Ruby
      1.1K
      629
      + 1
      408
      PROS OF SIDEKIQ
      • 124
        Simple
      • 99
        Efficient background processing
      • 60
        Scalability
      • 37
        Better then resque
      • 26
        Great documentation
      • 15
        Admin tool
      • 14
        Great community
      • 8
        Integrates with redis automatically, with zero config
      • 7
        Stupidly simple to integrate and run on Rails/Heroku
      • 7
        Great support
      • 3
        Ruby
      • 3
        Freeium
      • 2
        Pro version
      • 1
        Dashboard w/live polling
      • 1
        Great ecosystem of addons
      • 1
        Fast
      CONS OF SIDEKIQ
        Be the first to leave a con

        related Sidekiq posts

        Cyril Duchon-Doris

        We decided to use AWS Lambda for several serverless tasks such as

        • Managing AWS backups
        • Processing emails received on Amazon SES and stored to Amazon S3 and notified via Amazon SNS, so as to push a message on our Redis so our Sidekiq Rails workers can process inbound emails
        • Pushing some relevant Amazon CloudWatch metrics and alarms to Slack
        See more
        Simon Bettison
        Managing Director at Bettison.org Limited · | 8 upvotes · 764.3K views

        In 2012 we made the very difficult decision to entirely re-engineer our existing monolithic LAMP application from the ground up in order to address some growing concerns about it's long term viability as a platform.

        Full application re-write is almost always never the answer, because of the risks involved. However the situation warranted drastic action as it was clear that the existing product was going to face severe scaling issues. We felt it better address these sooner rather than later and also take the opportunity to improve the international architecture and also to refactor the database in. order that it better matched the changes in core functionality.

        PostgreSQL was chosen for its reputation as being solid ACID compliant database backend, it was available as an offering AWS RDS service which reduced the management overhead of us having to configure it ourselves. In order to reduce read load on the primary database we implemented an Elasticsearch layer for fast and scalable search operations. Synchronisation of these indexes was to be achieved through the use of Sidekiq's Redis based background workers on Amazon ElastiCache. Again the AWS solution here looked to be an easy way to keep our involvement in managing this part of the platform at a minimum. Allowing us to focus on our core business.

        Rails ls was chosen for its ability to quickly get core functionality up and running, its MVC architecture and also its focus on Test Driven Development using RSpec and Selenium with Travis CI providing continual integration. We also liked Ruby for its terse, clean and elegant syntax. Though YMMV on that one!

        Unicorn was chosen for its continual deployment and reputation as a reliable application server, nginx for its reputation as a fast and stable reverse-proxy. We also took advantage of the Amazon CloudFront CDN here to further improve performance by caching static assets globally.

        We tried to strike a balance between having control over management and configuration of our core application with the convenience of being able to leverage AWS hosted services for ancillary functions (Amazon SES , Amazon SQS Amazon Route 53 all hosted securely inside Amazon VPC of course!).

        Whilst there is some compromise here with potential vendor lock in, the tasks being performed by these ancillary services are no particularly specialised which should mitigate this risk. Furthermore we have already containerised the stack in our development using Docker environment, and looking to how best to bring this into production - potentially using Amazon EC2 Container Service

        See more
        Hangfire logo

        Hangfire

        167
        244
        17
        Perform background processing in .NET and .NET Core applications
        167
        244
        + 1
        17
        PROS OF HANGFIRE
        • 7
          Integrated UI dashboard
        • 5
          Simple
        • 3
          Robust
        • 2
          In Memory
        • 0
          Simole
        CONS OF HANGFIRE
          Be the first to leave a con

          related Hangfire posts

          Resque logo

          Resque

          117
          124
          9
          A Redis-backed Ruby library for creating background jobs, placing them on multiple queues, and processing them later
          117
          124
          + 1
          9
          PROS OF RESQUE
          • 5
            Free
          • 3
            Scalable
          • 1
            Easy to use on heroku
          CONS OF RESQUE
            Be the first to leave a con

            related Resque posts

            Beanstalkd logo

            Beanstalkd

            111
            160
            74
            A simple, fast work queue
            111
            160
            + 1
            74
            PROS OF BEANSTALKD
            • 23
              Fast
            • 12
              Free
            • 12
              Does one thing well
            • 9
              Scalability
            • 8
              Simplicity
            • 3
              External admin UI developer friendly
            • 3
              Job delay
            • 2
              Job prioritization
            • 2
              External admin UI
            CONS OF BEANSTALKD
              Be the first to leave a con

              related Beanstalkd posts

              Frédéric MARAND
              Core Developer at OSInet · | 2 upvotes · 232.3K views

              I used Kafka originally because it was mandated as part of the top-level IT requirements at a Fortune 500 client. What I found was that it was orders of magnitude more complex ...and powerful than my daily Beanstalkd , and far more flexible, resilient, and manageable than RabbitMQ.

              So for any case where utmost flexibility and resilience are part of the deal, I would use Kafka again. But due to the complexities involved, for any time where this level of scalability is not required, I would probably just use Beanstalkd for its simplicity.

              I tend to find RabbitMQ to be in an uncomfortable middle place between these two extremities.

              See more