buy
Apache PHP Handlers

Overview

Apache modules known as PHP handlers house libraries utilized by the Apache web server for interpreting and executing PHP code.

This guide demonstrates how to utilize the Apache PHP handler in Webuzo.

There are different methods or handlers that Apache can use to process PHP. Webuzo support three types of handler

Types of PHP Handler

DSO

This is also referred to as mod_php.  Enabling this module permits Apache to parse and present PHP files directly. With mod_php, PHP scripts are parsed and executed using the same user account as Apache itself, rather than the user account hosting the PHP files.  DSO is often considered to provide better performance compared to some other PHP handling methods

CGI

 CGI, which stands for Common Gateway Interface, is a standard protocol that defines how web servers can communicate with external programs or scripts to generate dynamic content. In the context of PHP and web servers like Apache, a CGI PHP handler involves using PHP as a CGI program to process and execute PHP scripts.

 Unlike some other PHP handling methods, this approach provides a higher level of isolation between individual PHP processes. Each process operates independently, enhancing security and allowing for unique configuration settings for each PHP request

PHP-FPM

Webuzo exclusively supports PHP-FPM in the CGI context and does not provide support for non-PHP-FPM configurations. FPM, or FastCGI Process Manager, is a process manager for PHP designed to be a high-performance alternative to traditional CGI. It is often used with Nginx or Apache web servers to serve PHP applications. The FPM PHP handler manages the execution of PHP scripts by spawning multiple PHP processes and controlling their lifecycle. This separation of PHP processing from the web server processes can lead to improved stability and performance for PHP-based web applications. FPM provides features like process pooling, adaptive process management, and the ability to control various PHP settings for different pools of processes.

LSPHP

 LSPHP is a PHP handler that combines mod_lsapi+PHP.  LSPHP or mod_lsapi is a recent handler works only on litespeed and CloudLinux server only. Enable mod_lsapi on your CloudLinux server with Apache to make use of LSPHP PHP handler. 

LSPHP allows for server-level caching, ensuring better performance. It excels in PHP execution, uses minimal memory, and provides strong security along with support for opcode caching..

How to Change PHP Handlers

Go to  Admin Panel> Apps > Apache PHP Handlers  To enable PHP Handler for particular PHP version.

image

Upon clicking it, you will be redirected to the Apache PHP Handler page. 

Here you can select Apache PHP Handler for particular PHP version.

NOTE :  You can set DSO PHP handler for only default PHP.

image

For LSPHP you need to CloudLinux server to enable for PHP.

image
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list