{"id":2243,"date":"2021-08-11T13:39:22","date_gmt":"2021-08-11T18:39:22","guid":{"rendered":"https:\/\/www.knownhost.com\/kb\/?p=2243"},"modified":"2024-07-19T08:25:53","modified_gmt":"2024-07-19T13:25:53","slug":"php-handlers-and-what-they-are","status":"publish","type":"post","link":"https:\/\/www.knownhost.com\/kb\/php-handlers-and-what-they-are\/","title":{"rendered":"PHP Handlers and what they are"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #212121;color:#212121\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #212121;color:#212121\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.knownhost.com\/kb\/php-handlers-and-what-they-are\/#the_basics\" >The Basics<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.knownhost.com\/kb\/php-handlers-and-what-they-are\/#cgi\" >CGI<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.knownhost.com\/kb\/php-handlers-and-what-they-are\/#suphp\" >SuPHP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.knownhost.com\/kb\/php-handlers-and-what-they-are\/#dso\" >DSO<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.knownhost.com\/kb\/php-handlers-and-what-they-are\/#fcgi\" >FCGI<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.knownhost.com\/kb\/php-handlers-and-what-they-are\/#lsapi_mod_lsapi\" >LSAPI \/ mod_lsapi<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.knownhost.com\/kb\/php-handlers-and-what-they-are\/#php-fpm\" >PHP-FPM<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.knownhost.com\/kb\/php-handlers-and-what-they-are\/#conclusion\" >Conclusion<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n<h2 class=\"wp-block-heading\" id=\"php_handlers\"><span class=\"ez-toc-section\" id=\"the_basics\"><\/span>The Basics<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Let&#8217;s talk about PHP Handlers, we&#8217;ll be going over Apache&#8217;s many different available PHP Handlers. We&#8217;ll explain what each one is, what its best at doing, and any pros and cons regarding that handler. Our wish is that this guide provides you with helpful information which is informative for you so that you know how each handler differs from each other.<\/p>\n\n\n\n<p>To start, there are many different handlers for PHP on Apache:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>CGI (<code>mod_cgi<\/code>\/<code>mod_cgid<\/code>)<\/li>\n\n\n\n<li>SuPHP (<code>mod_suphp<\/code>)<\/li>\n\n\n\n<li>DSO (<code>mod_php<\/code>)<\/li>\n\n\n\n<li>FCGI (<code>mod_fcgid<\/code>)<\/li>\n\n\n\n<li>LSAPI (<code>mod_lsapi<\/code>) &#8212; <code>mod_lsapi<\/code>&nbsp;can be used on cPanel or DirectAdmin servers with CloudLinux installed.<\/li>\n\n\n\n<li>PHP-FPM<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"cgi\"><span class=\"ez-toc-section\" id=\"cgi\"><\/span>CGI<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The CGI handler is one of the very early PHP Handlers. It runs as a CGI Module as opposed to an Apache Module \u2013 typically either&nbsp;<code>mod_cgi<\/code>&nbsp;or&nbsp;<code>mod_cgid<\/code>. When used as the PHP handler, PHP scripts are executed as the file owner instead of the default&nbsp;<code>nobody<\/code>&nbsp;user by Apache. This PHP handler is not typically used due to not being secure (on it&#8217;s own) nor is it fast: it is considered the slowest handler. At one point in time, this handler was intended as a fallback method in the event no other handler was available.<\/p>\n\n\n\n<p>See here:&nbsp;<a href=\"https:\/\/docs.cpanel.net\/ea4\/php\/php-handlers\/#cgi\">Not secure unless mpm-itk is in use<\/a><\/p>\n\n\n\n<p>Advantages of this handler:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>When paired with SuEXEC, this handler allows you to see user PHP Requests<\/li>\n<\/ul>\n\n\n\n<p>Disadvantages of this handler:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This handler is considered insecure due to non-restrictive permissions<\/li>\n\n\n\n<li>Causes high resource usage which can lead to potential issues<\/li>\n\n\n\n<li>Apache directives cannot be used. Configuration file (<code>php.ini<\/code>) required<\/li>\n\n\n\n<li>Requires&nbsp;<code>mpm-itk<\/code>&nbsp;to be secure.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"suphp\"><span class=\"ez-toc-section\" id=\"suphp\"><\/span>SuPHP<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"has-background\" style=\"background-color:#ffd39f\">On cPanel servers,&nbsp;<code>suphp<\/code>&nbsp;must be set as the PHP handler from within WHM so that Litespeed PHP requests are handled appropriately.<\/p>\n\n\n\n<p>SuPHP (<code>mod_suphp<\/code>) was developed as a more secure and better-performing handler then its predecessors. With the use of SuEXEC (<code>mod_suexec<\/code>) it offers secure execution of PHP files with proper set permissions. Due to this, it&#8217;s been considered the most secure of the handlers to be used for webservers. SuPHP run PHP as a CGI module which allows Apache to separate PHP processes, using their own individual user for execution. This allows for isolation between the users. In the event of a compromise, the user&#8217;s files would be unable to modify a different user&#8217;s files.<\/p>\n\n\n\n<p>With EasyApache4 on cPanel servers, the&nbsp;<code>suphp<\/code>&nbsp;handler can be applied to&nbsp;<strong>all<\/strong>&nbsp;versions.<\/p>\n\n\n\n<p>Advantages of this handler:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Processes executed as the file owner (the user&#8217;s account)<\/li>\n\n\n\n<li>Can use SuEXEC for the &#8220;forked&#8221; secure PHP Processes<\/li>\n\n\n\n<li>Improper file ownership\/permissions will cause scripts not to be executed<\/li>\n\n\n\n<li>Performs various security checks on each PHP script before execution<\/li>\n\n\n\n<li>Can use&nbsp;<code>mod_userdir<\/code>&nbsp;(Ex:&nbsp;<code>http:\/\/serverip\/~$USERNAME<\/code>)<\/li>\n<\/ul>\n\n\n\n<p>Disadvantages of this handler:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Like CGI, SuPHP is CPU-intensive<\/li>\n\n\n\n<li>Non-persistent state \u2013 requires new process for each PHP request<\/li>\n\n\n\n<li>Unable to use any PHP Opcode Caching<\/li>\n\n\n\n<li>No longer actively maintained by it&#8217;s developers<\/li>\n\n\n\n<li>Apache directives cannot be used. Configuration file (<code>php.ini<\/code>) required<\/li>\n\n\n\n<li>Improper file permissions can cause a world-readable situation that introduces security risks across websites.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"dso\"><span class=\"ez-toc-section\" id=\"dso\"><\/span>DSO<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>DSO (also known as&nbsp;<code>mod_php<\/code>, or PHP as an Apache module) is one of the fastest PHP handlers available: the immediate downside to this is that it runs everything as the Apache user&nbsp;<code>nobody<\/code>&nbsp;or&nbsp;<code>apache<\/code>&nbsp;by default. This prevents the ability to track individual users\/accounts on the server since all PHP scripts are owned and executed as the&nbsp;<code>nobody<\/code>&nbsp;user. This creates a relatively insecure environment when using DSO without&nbsp;<code>mod_ruid2<\/code>&nbsp;\u2013 it leaves scripts vulnerable to any sort of malicious attacks that results in modifying PHP scripts or allowing the modification of files outside the directory the file was exploited in.<\/p>\n\n\n\n<p>For this reason we&nbsp;<strong>strongly recommended<\/strong>&nbsp;that&nbsp;<code>mod_ruid2<\/code>&nbsp;be used with DSO to create SuPHP-like ownership requirements which allows files to be owned by their respective DirectAdmin\/cPanel user and allows each PHP request\/process to be tracked by the user running said request.<\/p>\n\n\n\n<p>In a Multi-PHP Environment (EasyApache 4 or using multiple versions of PHP with DirectAdmin&#8217;s CustomBuild) the DSO+mod_ruid2 handler can only be applied to&nbsp;<strong>one<\/strong>&nbsp;PHP version \u2013 DSO cannot be used for multiple versions of PHP at the same time.<\/p>\n\n\n\n<p>Advantages of this handler:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Allows PHP Caching (Opcache, etc.)<\/li>\n\n\n\n<li>PHP Directives can be set within .htaccess (<code>php_flag<\/code>&nbsp;\/&nbsp;<code>php_value<\/code>)<\/li>\n\n\n\n<li>Considered to be very fast in execution<\/li>\n\n\n\n<li>Low resource usage (CPU\/Memory)<\/li>\n\n\n\n<li>Best paired with&nbsp;<code>mod_ruid2<\/code><\/li>\n<\/ul>\n\n\n\n<p>Disadvantages of this handler(without&nbsp;<code>mod_ruid2<\/code>):<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Cannot use&nbsp;<code>mod_userdir<\/code>&nbsp;(Ex:&nbsp;<code>http:\/\/serverip\/~$USERNAME<\/code>)<\/li>\n\n\n\n<li>Considered to be easily exploitable if compromised due to scripts executing as the&nbsp;<code>nobody<\/code>&nbsp;user<\/li>\n\n\n\n<li>CMS&#8217;s may not update properly due to permissions \/ ownership<\/li>\n\n\n\n<li>Unable to determine which account abuses resources<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"fcgi\"><\/span>FCGI<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>FCGI or FastCGI (<code>mod_fcgid<\/code>) has been stated to be the fastest at serving PHP requests compared to SuPHP, but not as fast as utilizing DSO. This handler works to improve CPU usage through increasing server memory availability overall to cache PHP scripts to server memory. The primary benefit for FastCGI is the ability to be used with SuEXEC like the handler SuPHP. This allows scripts to be processed\/executed as the user instead of the default&nbsp;<code>nobody<\/code>&nbsp;user that Apache uses.<\/p>\n\n\n\n<p>With EasyApache4, the FCGI handler can be applied to&nbsp;<strong>all<\/strong>&nbsp;versions.<\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#ffbcaf\"><strong>Due to the configuration requirements necessary for this handler to perform, this handler is recommended to be only for experienced systems administrators.<\/strong><\/p>\n\n\n\n<p>Advantages of this handler:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Persistent processes; does not generate a new process for each request<\/li>\n\n\n\n<li>Low CPU utilization<\/li>\n\n\n\n<li>Allows PHP Caching (Opcache, etc)<\/li>\n\n\n\n<li>Can be equivalent to suPHP in regards to security, but faster in execution<\/li>\n<\/ul>\n\n\n\n<p>Disadvantages of this handler:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Memory requirement for its execution of PHP<\/li>\n\n\n\n<li>Keeps PHP Sessions open in the background<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"lsapi_mod_lsapi\"><\/span>LSAPI \/ mod_lsapi<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>LSAPI (<code>mod_lsapi<\/code>) is a relatively new handler that was released for cPanel\/EasyApache 4 after periodically being only available to CloudLinux servers \u2013&nbsp;<code>mod_lsapi PRO<\/code>&nbsp;(with additional configuration options) is available for DirectAdmin and cPanel\/WHM servers with CloudLinux installed. LSAPI is based off of LiteSpeed&#8217;s built-in&nbsp;<em>lsphp<\/em>&nbsp;handler.&nbsp;<code>mod_lsapi<\/code>&nbsp;can replace all other handlers (CGI, SuPHP, FCGID, or DSO). It is considered to be the fastest handler out there currently. Utilizing low resource usage for both server memory and CPU. LSAPI provides an exceptional boost in performance over all other PHP handlers. The benefit of such a handler is that it can run &#8220;out of the box&#8221; not requiring any significant configuration.<\/p>\n\n\n\n<p>The downside is that this is not the full version of LSAPI as CRIU(Checkpoint\/Restore In Userspace) and connection pooling are disabled \u2013 CloudLinux is required to take full advantage of LSAPI with&nbsp;<code>mod_lsapi PRO<\/code>.<\/p>\n\n\n\n<p>In a Multi-PHP Environment, the LSAPI handler can be applied to&nbsp;<strong>all<\/strong>&nbsp;versions.<\/p>\n\n\n\n<p>Advantages of this handler:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Fast compared to other handlers<\/li>\n\n\n\n<li>No configuration required<\/li>\n\n\n\n<li>Works with PHP Caching (Opcache).<\/li>\n\n\n\n<li>Supports PHP Directives in .htaccess (<code>php_flag<\/code>&nbsp;or&nbsp;<code>php_value<\/code>)<\/li>\n\n\n\n<li>Low resource usage (CPU\/Memory)<\/li>\n\n\n\n<li>Executes PHP Scripts as user<\/li>\n<\/ul>\n\n\n\n<p>Disadvantages of this handler:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Improper file permissions can cause a world-readable situation that introduces security risks across websites.<\/li>\n<\/ul>\n\n\n\n<p class=\"has-background\" style=\"background-color:#ffd39f\"><strong>The following modules should be installed along with&nbsp;<code>mod_lsapi<\/code>&nbsp;\/ LSAPI \u2013&nbsp;<code>mod_suphp<\/code>&nbsp;and&nbsp;<code>mod_suexec<\/code><\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"php-fpm\"><span class=\"ez-toc-section\" id=\"php-fpm\"><\/span>PHP-FPM<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>PHP-FPM (PHP FastCGI Process Manager) is designed as an alternative FastCGI daemon. This handler allows for the ability of a website to handle high loads by maintaining a connection pool of workers to respond to incoming PHP requests. This handler is considered to be faster than other CGI-related methods (SuPHP, CGI, etc.) for multi-user scenarios.<\/p>\n\n\n\n<p>PHP-FPM requires that the server have a larger amount of available memory compared to other PHP handler options in order to operate without memory issues. The rule of thumb is at least 2GB of RAM or 30MB per domain. If this is enabled on a server much less then that, performance issues and stability issues can be exhibited.<\/p>\n\n\n\n<p class=\"has-pale-cyan-blue-background-color has-background\"><strong>This is our default recommended handler for cPanel servers without LiteSpeed Enterprise.<\/strong><\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#ffbcaf\"><strong>Due to the configuration requirements necessary for this handler to perform well on cPanel servers, this handler is recommended to be only for experienced systems administrators.<\/strong><\/p>\n\n\n\n<p>Advantages of this handler:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Persistent process handling<\/li>\n\n\n\n<li>Fast handling of PHP Scripts<\/li>\n\n\n\n<li>Supports high traffic<\/li>\n\n\n\n<li>Utilizes &#8216;on-demand&#8217; workers<\/li>\n<\/ul>\n\n\n\n<p>Disadvantages of this handler:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Requires in-depth configured<\/li>\n\n\n\n<li>Can cause performance issues if not configured properly<\/li>\n\n\n\n<li>Requires decent amount of server resources available<\/li>\n\n\n\n<li>Not meant for low-end servers<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Understanding the different types of PHP Handlers available and what they each can do will allow you to know the best handler required for your setup. Of course, we here at KnownHost will always assist with providing the best recommended setup in accordance with your server needs, we felt that a laid out article such as this would help spread the information in regards to how these PHP Handlers work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Basics Let&#8217;s talk about PHP Handlers, we&#8217;ll be going over Apache&#8217;s many different available PHP Handlers. We&#8217;ll explain what each one is, what its best at doing, and any pros and cons regarding that handler. Our wish is that this guide provides you with helpful information which is informative for you so that you [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[181,323,324,322,123,135,321,198,320,325,326],"class_list":["post-2243","post","type-post","status-publish","format-standard","hentry","category-getting-started","tag-apache","tag-cgi","tag-dso","tag-fcgi","tag-linux","tag-litespeed","tag-lsapi","tag-php","tag-php-handlers","tag-ruid2","tag-suphp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PHP Handlers and what they are - KnownHost<\/title>\n<meta name=\"description\" content=\"Learn more about what php handlers are and best way to use them in your web application on premium KnownHost servers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.knownhost.com\/kb\/php-handlers-and-what-they-are\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP Handlers and what they are - KnownHost\" \/>\n<meta property=\"og:description\" content=\"Learn more about what php handlers are and best way to use them in your web application on premium KnownHost servers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knownhost.com\/kb\/php-handlers-and-what-they-are\/\" \/>\n<meta property=\"og:site_name\" content=\"KnownHost\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-11T18:39:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-19T13:25:53+00:00\" \/>\n<meta name=\"author\" content=\"Jonathan K. W.\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jonathan K. W.\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/php-handlers-and-what-they-are\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/php-handlers-and-what-they-are\\\/\"},\"author\":{\"name\":\"Jonathan K. W.\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\"},\"headline\":\"PHP Handlers and what they are\",\"datePublished\":\"2021-08-11T18:39:22+00:00\",\"dateModified\":\"2024-07-19T13:25:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/php-handlers-and-what-they-are\\\/\"},\"wordCount\":1445,\"keywords\":[\"apache\",\"CGI\",\"dso\",\"fcgi\",\"linux\",\"litespeed\",\"lsapi\",\"php\",\"php handlers\",\"ruid2\",\"suphp\"],\"articleSection\":[\"Getting Started\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/php-handlers-and-what-they-are\\\/\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/php-handlers-and-what-they-are\\\/\",\"name\":\"PHP Handlers and what they are - KnownHost\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2021-08-11T18:39:22+00:00\",\"dateModified\":\"2024-07-19T13:25:53+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\"},\"description\":\"Learn more about what php handlers are and best way to use them in your web application on premium KnownHost servers.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/php-handlers-and-what-they-are\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/php-handlers-and-what-they-are\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/php-handlers-and-what-they-are\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP Handlers and what they are\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\",\"name\":\"KnownHost\",\"description\":\"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\",\"name\":\"Jonathan K. W.\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"caption\":\"Jonathan K. W.\"},\"sameAs\":[\"https:\\\/\\\/www.knownhost.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP Handlers and what they are - KnownHost","description":"Learn more about what php handlers are and best way to use them in your web application on premium KnownHost servers.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.knownhost.com\/kb\/php-handlers-and-what-they-are\/","og_locale":"en_US","og_type":"article","og_title":"PHP Handlers and what they are - KnownHost","og_description":"Learn more about what php handlers are and best way to use them in your web application on premium KnownHost servers.","og_url":"https:\/\/www.knownhost.com\/kb\/php-handlers-and-what-they-are\/","og_site_name":"KnownHost","article_published_time":"2021-08-11T18:39:22+00:00","article_modified_time":"2024-07-19T13:25:53+00:00","author":"Jonathan K. W.","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jonathan K. W.","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knownhost.com\/kb\/php-handlers-and-what-they-are\/#article","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/php-handlers-and-what-they-are\/"},"author":{"name":"Jonathan K. W.","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b"},"headline":"PHP Handlers and what they are","datePublished":"2021-08-11T18:39:22+00:00","dateModified":"2024-07-19T13:25:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knownhost.com\/kb\/php-handlers-and-what-they-are\/"},"wordCount":1445,"keywords":["apache","CGI","dso","fcgi","linux","litespeed","lsapi","php","php handlers","ruid2","suphp"],"articleSection":["Getting Started"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.knownhost.com\/kb\/php-handlers-and-what-they-are\/","url":"https:\/\/www.knownhost.com\/kb\/php-handlers-and-what-they-are\/","name":"PHP Handlers and what they are - KnownHost","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/#website"},"datePublished":"2021-08-11T18:39:22+00:00","dateModified":"2024-07-19T13:25:53+00:00","author":{"@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b"},"description":"Learn more about what php handlers are and best way to use them in your web application on premium KnownHost servers.","breadcrumb":{"@id":"https:\/\/www.knownhost.com\/kb\/php-handlers-and-what-they-are\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knownhost.com\/kb\/php-handlers-and-what-they-are\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.knownhost.com\/kb\/php-handlers-and-what-they-are\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knownhost.com\/kb\/"},{"@type":"ListItem","position":2,"name":"PHP Handlers and what they are"}]},{"@type":"WebSite","@id":"https:\/\/www.knownhost.com\/kb\/#website","url":"https:\/\/www.knownhost.com\/kb\/","name":"KnownHost","description":"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knownhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b","name":"Jonathan K. W.","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","caption":"Jonathan K. W."},"sameAs":["https:\/\/www.knownhost.com"]}]}},"_links":{"self":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/2243","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/comments?post=2243"}],"version-history":[{"count":0,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/2243\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/media?parent=2243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/categories?post=2243"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/tags?post=2243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}