{"id":33465,"date":"2020-04-06T15:38:47","date_gmt":"2020-04-06T12:08:47","guid":{"rendered":"https:\/\/airoserver.com\/?p=2542"},"modified":"2022-03-29T16:18:47","modified_gmt":"2022-03-29T11:48:47","slug":"php-handler-and-types-of-it","status":"publish","type":"post","link":"https:\/\/airoserver.com\/fa\/dedicated\/php-handler-and-types-of-it\/","title":{"rendered":"PHP Handler and Types of it"},"content":{"rendered":"<p>In our last post, we have talked about <a href=\"https:\/\/airoserver.com\/fa\/dedicated\/comparing-different-linux-web-servers\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"different web servers (opens in a new tab)\">different web servers<\/a>. We mentioned that each <a href=\"https:\/\/airoserver.com\/fa\/dedicated\/web-server\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"web server (opens in a new tab)\">web server<\/a> uses a different PHP handler. In this post, we&#8217;ll explain what is a PHP Handler and what are the types of it.<\/p>\r\n\r\n\r\n\r\n<p>PHP is a scripting language that is used for most websites. As it&#8217;s obvious by its name, PHP handler is in charge of handling the PHP scripts of your website. When an audience asks for a PHP page, the <a href=\"https:\/\/airoserver.com\/fa\/dedicated\/different-types-of-servers-in-web-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"server (opens in a new tab)\">server<\/a> must parse the PHP code and create the outcome for the audience. Easy Apache gives you the ability to install PHP on your server and change it if you need.<\/p>\r\n\r\n\r\n\r\n<p>There are 4 types of PHP handlers that each have different methods:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>Fast CGI<\/strong><\/li>\r\n<li><strong>SUPHP<\/strong><\/li>\r\n<li><strong>CGI<\/strong><\/li>\r\n<li><strong>DSO<\/strong><\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img decoding=\"async\" class=\"wp-image-2543\" src=\"https:\/\/airoserver.com\/wp-content\/uploads\/2020\/04\/phphandlers2.png\" alt=\"Types of PHP handlers\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>As we said in the post about Linux web servers, you can choose any of these 4 as the PHP handler. We can&#8217;t say that which one it the best or better than the other three however they each have their own effects on Apache&#8217;s performance. So you need to choose your handler according to the effects you want it to have on Apache.<\/p>\r\n\r\n\r\n\r\n<p>As an example, we are going to explain one of the PHP Handlers and its effects on Apache:<\/p>\r\n\r\n\r\n\r\n<h5 class=\"wp-block-heading\"><strong>DSO<\/strong><\/h5>\r\n\r\n\r\n\r\n<p>This handler is also known as Mod-PHP and is the fastest and the oldest one among these 4 handlers. DSO directly runs PHP codes by Apache so all your websites on the server must be visible by Apache to be work properly. Another good thing is that DSO uses little bit of CPU.<\/p>\r\n\r\n\r\n\r\n<p>DSO works the best for the servers that need high speed and have limited number of websites on them.<\/p>\r\n\r\n\r\n\r\n<p><strong>DSO has two issues:<\/strong><\/p>\r\n\r\n\r\n\r\n<p>First is that the owner of the created PHP files the Nobody user which makes it unreadable on web.<\/p>\r\n\r\n\r\n\r\n<p>The second thing is a security problem. Since the owner of all files is Nobody, if a hackers finds a way to access one of the PHP files,it may get the access to all of your server files.<\/p>\r\n\r\n\r\n\r\n<p>Hope you enjoyed this post if you did you can visit our <a href=\"https:\/\/airoserver.com\/fa\/blog\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"blog (opens in a new tab)\">blog<\/a> for more!<\/p>","protected":false},"excerpt":{"rendered":"<p>In our last post, we have talked about different web servers. We mentioned that each web server uses a different PHP handler. In this post, we&#8217;ll explain what is a PHP Handler and what are the types of it. PHP is a scripting language that is used for most websites. As it&#8217;s obvious by its [&hellip;]<\/p>","protected":false},"author":5,"featured_media":33585,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[179,176,182,178],"tags":[85],"class_list":["post-33465","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-airoserver","category-dedicated","category-shared-hosting","category-airo-vps","tag-airoserver"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP Handler and Types of it<\/title>\n<meta name=\"description\" content=\"PHP handler is in charge of handling the PHP scripts of your website.When an audience asks for a PHP page, the server must parse the PHP code and ...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/airoserver.com\/fa\/dedicated\/php-handler-and-types-of-it\/\" \/>\n<meta property=\"og:locale\" content=\"fa_IR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP Handler and Types of it\" \/>\n<meta property=\"og:description\" content=\"PHP handler is in charge of handling the PHP scripts of your website.When an audience asks for a PHP page, the server must parse the PHP code and ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/airoserver.com\/fa\/dedicated\/php-handler-and-types-of-it\/\" \/>\n<meta property=\"og:site_name\" content=\"Airoserver | Cloud Hosting Solutions\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-06T12:08:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-29T11:48:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/airoserver.com\/wp-content\/uploads\/2020\/04\/php-handlers-2-638.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"450\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"SEO Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u0646\u0648\u0634\u062a\u0647\u200c\u0634\u062f\u0647 \u0628\u062f\u0633\u062a\" \/>\n\t<meta name=\"twitter:data1\" content=\"SEO Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u0632\u0645\u0627\u0646 \u062a\u0642\u0631\u06cc\u0628\u06cc \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u062f\u0642\u06cc\u0642\u0647\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/airoserver.com\/dedicated\/php-handler-and-types-of-it\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/airoserver.com\/dedicated\/php-handler-and-types-of-it\/\"},\"author\":{\"name\":\"SEO Team\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897\"},\"headline\":\"PHP Handler and Types of it\",\"datePublished\":\"2020-04-06T12:08:47+00:00\",\"dateModified\":\"2022-03-29T11:48:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/airoserver.com\/dedicated\/php-handler-and-types-of-it\/\"},\"wordCount\":365,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/airoserver.com\/#organization\"},\"keywords\":[\"airoserver\"],\"articleSection\":[\"AiroServer\",\"Dedicated\",\"Shared Hosting\",\"VPS\"],\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/airoserver.com\/dedicated\/php-handler-and-types-of-it\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/airoserver.com\/dedicated\/php-handler-and-types-of-it\/\",\"url\":\"https:\/\/airoserver.com\/dedicated\/php-handler-and-types-of-it\/\",\"name\":\"PHP Handler and Types of it\",\"isPartOf\":{\"@id\":\"https:\/\/airoserver.com\/#website\"},\"datePublished\":\"2020-04-06T12:08:47+00:00\",\"dateModified\":\"2022-03-29T11:48:47+00:00\",\"description\":\"PHP handler is in charge of handling the PHP scripts of your website.When an audience asks for a PHP page, the server must parse the PHP code and ...\",\"breadcrumb\":{\"@id\":\"https:\/\/airoserver.com\/dedicated\/php-handler-and-types-of-it\/#breadcrumb\"},\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/airoserver.com\/dedicated\/php-handler-and-types-of-it\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/airoserver.com\/dedicated\/php-handler-and-types-of-it\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/airoserver.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP Handler and Types of it\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/airoserver.com\/#website\",\"url\":\"https:\/\/airoserver.com\/\",\"name\":\"Airoserver | Cloud Hosting Solutions\",\"description\":\"Cloud server | Dedicated server | Domain | Hosting| SSL | Virtual server | Airoserver\",\"publisher\":{\"@id\":\"https:\/\/airoserver.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/airoserver.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fa-IR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/airoserver.com\/#organization\",\"name\":\"Airoserver | Cloud Hosting Solutions\",\"url\":\"https:\/\/airoserver.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png\",\"contentUrl\":\"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png\",\"width\":925,\"height\":880,\"caption\":\"Airoserver | Cloud Hosting Solutions\"},\"image\":{\"@id\":\"https:\/\/airoserver.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897\",\"name\":\"SEO Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/airoserver.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g\",\"caption\":\"SEO Team\"},\"url\":\"https:\/\/airoserver.com\/fa\/author\/seoteam\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP Handler and Types of it","description":"PHP handler is in charge of handling the PHP scripts of your website.When an audience asks for a PHP page, the server must parse the PHP code and ...","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:\/\/airoserver.com\/fa\/dedicated\/php-handler-and-types-of-it\/","og_locale":"fa_IR","og_type":"article","og_title":"PHP Handler and Types of it","og_description":"PHP handler is in charge of handling the PHP scripts of your website.When an audience asks for a PHP page, the server must parse the PHP code and ...","og_url":"https:\/\/airoserver.com\/fa\/dedicated\/php-handler-and-types-of-it\/","og_site_name":"Airoserver | Cloud Hosting Solutions","article_published_time":"2020-04-06T12:08:47+00:00","article_modified_time":"2022-03-29T11:48:47+00:00","og_image":[{"width":750,"height":450,"url":"https:\/\/airoserver.com\/wp-content\/uploads\/2020\/04\/php-handlers-2-638.jpg","type":"image\/jpeg"}],"author":"SEO Team","twitter_card":"summary_large_image","twitter_misc":{"\u0646\u0648\u0634\u062a\u0647\u200c\u0634\u062f\u0647 \u0628\u062f\u0633\u062a":"SEO Team","\u0632\u0645\u0627\u0646 \u062a\u0642\u0631\u06cc\u0628\u06cc \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646":"2 \u062f\u0642\u06cc\u0642\u0647"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/airoserver.com\/dedicated\/php-handler-and-types-of-it\/#article","isPartOf":{"@id":"https:\/\/airoserver.com\/dedicated\/php-handler-and-types-of-it\/"},"author":{"name":"SEO Team","@id":"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897"},"headline":"PHP Handler and Types of it","datePublished":"2020-04-06T12:08:47+00:00","dateModified":"2022-03-29T11:48:47+00:00","mainEntityOfPage":{"@id":"https:\/\/airoserver.com\/dedicated\/php-handler-and-types-of-it\/"},"wordCount":365,"commentCount":0,"publisher":{"@id":"https:\/\/airoserver.com\/#organization"},"keywords":["airoserver"],"articleSection":["AiroServer","Dedicated","Shared Hosting","VPS"],"inLanguage":"fa-IR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/airoserver.com\/dedicated\/php-handler-and-types-of-it\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/airoserver.com\/dedicated\/php-handler-and-types-of-it\/","url":"https:\/\/airoserver.com\/dedicated\/php-handler-and-types-of-it\/","name":"PHP Handler and Types of it","isPartOf":{"@id":"https:\/\/airoserver.com\/#website"},"datePublished":"2020-04-06T12:08:47+00:00","dateModified":"2022-03-29T11:48:47+00:00","description":"PHP handler is in charge of handling the PHP scripts of your website.When an audience asks for a PHP page, the server must parse the PHP code and ...","breadcrumb":{"@id":"https:\/\/airoserver.com\/dedicated\/php-handler-and-types-of-it\/#breadcrumb"},"inLanguage":"fa-IR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/airoserver.com\/dedicated\/php-handler-and-types-of-it\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/airoserver.com\/dedicated\/php-handler-and-types-of-it\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/airoserver.com\/"},{"@type":"ListItem","position":2,"name":"PHP Handler and Types of it"}]},{"@type":"WebSite","@id":"https:\/\/airoserver.com\/#website","url":"https:\/\/airoserver.com\/","name":"Airoserver | Cloud Hosting Solutions","description":"Cloud server | Dedicated server | Domain | Hosting| SSL | Virtual server | Airoserver","publisher":{"@id":"https:\/\/airoserver.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/airoserver.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"fa-IR"},{"@type":"Organization","@id":"https:\/\/airoserver.com\/#organization","name":"Airoserver | Cloud Hosting Solutions","url":"https:\/\/airoserver.com\/","logo":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/airoserver.com\/#\/schema\/logo\/image\/","url":"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png","contentUrl":"https:\/\/airoserver.com\/wp-content\/uploads\/2023\/09\/logo_airoserver.png","width":925,"height":880,"caption":"Airoserver | Cloud Hosting Solutions"},"image":{"@id":"https:\/\/airoserver.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/airoserver.com\/#\/schema\/person\/62f9488eeb65ea1e571178292d4bb897","name":"SEO Team","image":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/airoserver.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0cc6a1209a0e36c0bf4f0fcdcd743946df92fde7ba86163b0724f194a722a861?s=96&d=mm&r=g","caption":"SEO Team"},"url":"https:\/\/airoserver.com\/fa\/author\/seoteam\/"}]}},"_links":{"self":[{"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/posts\/33465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/comments?post=33465"}],"version-history":[{"count":0,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/posts\/33465\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/media\/33585"}],"wp:attachment":[{"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/media?parent=33465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/categories?post=33465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/airoserver.com\/fa\/wp-json\/wp\/v2\/tags?post=33465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}