{"id":17090,"date":"2025-11-19T16:15:29","date_gmt":"2025-11-19T12:45:29","guid":{"rendered":"https:\/\/maralhost.com\/kb\/articles\/cloudlinux\/%d9%85%d8%b4%da%a9%d9%84-%d9%86%d8%b5%d8%a8-php-selector-%d8%af%d8%b1-plesk\/"},"modified":"2025-11-19T16:16:58","modified_gmt":"2025-11-19T12:46:58","slug":"plesk-php","status":"publish","type":"docs","link":"https:\/\/maralhost.com\/kb\/docs\/cloudlinux\/plesk-php\/","title":{"rendered":"\u0645\u0634\u06a9\u0644 \u0646\u0635\u0628 php selector \u062f\u0631 plesk"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">\ud83e\udde9 <strong>\u062a\u0639\u0627\u0631\u06cc\u0641 \u06a9\u0644\u06cc\u062f\u06cc \u0645\u0642\u0627\u0644\u0647<\/strong><\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>PHP Selector:<\/strong> \u0627\u0628\u0632\u0627\u0631 CloudLinux \u0628\u0631\u0627\u06cc \u0627\u0646\u062a\u062e\u0627\u0628 \u0646\u0633\u062e\u0647 PHP \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u06cc\u0627 \u062f\u0627\u0645\u0646\u0647\u200c\u0647\u0627.<\/li>\n\n\n\n<li><strong>Native PHP:<\/strong> \u0646\u0633\u062e\u0647 PHP \u0646\u0635\u0628\u200c\u0634\u062f\u0647 \u062a\u0648\u0633\u0637 \u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644\u060c \u06a9\u0647 PHP Selector \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631\u06a9\u0631\u062f \u0635\u062d\u06cc\u062d \u0628\u0647 \u0622\u0646 \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u062f.<\/li>\n\n\n\n<li><strong>yum:<\/strong> \u0627\u0628\u0632\u0627\u0631 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0628\u0633\u062a\u0647\u200c\u0647\u0627 \u062f\u0631 \u0633\u06cc\u0633\u062a\u0645\u200c\u0647\u0627\u06cc \u0645\u0628\u062a\u0646\u06cc \u0628\u0631 RedHat\/CentOS\/CloudLinux \u0628\u0631\u0627\u06cc \u0646\u0635\u0628 \u0648 \u0628\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u0628\u0633\u062a\u0647\u200c\u0647\u0627.<\/li>\n\n\n\n<li><strong>CloudLinux Selector:<\/strong> \u062f\u0633\u062a\u0648\u0631 CLI \u0628\u0631\u0627\u06cc \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc \u0648 \u0645\u062f\u06cc\u0631\u06cc\u062a PHP Selector \u0631\u0648\u06cc \u0633\u0631\u0648\u0631.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\ud83d\udcdd <strong>\u0645\u0642\u062f\u0645\u0647<\/strong><\/h1>\n\n\n\n<p>PHP Selector \u0628\u0631\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a \u0646\u0633\u062e\u0647\u200c\u0647\u0627\u06cc PHP \u0631\u0648\u06cc \u062f\u0627\u0645\u0646\u0647\u200c\u0647\u0627 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0646\u0633\u062e\u0647 <strong>Native PHP<\/strong> \u062f\u0627\u0631\u062f.<br>\u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0627\u06cc\u0646 \u0646\u0633\u062e\u0647 \u0646\u0635\u0628 \u0646\u0634\u062f\u0647 \u0628\u0627\u0634\u062f \u06cc\u0627 \u0645\u0633\u06cc\u0631 \u0628\u0627\u06cc\u0646\u0631\u06cc \u0622\u0646 \u0645\u0648\u062c\u0648\u062f \u0646\u0628\u0627\u0634\u062f\u060c \u062e\u0637\u0627\u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f \u0632\u06cc\u0631 \u0638\u0627\u0647\u0631 \u0645\u06cc\u200c\u0634\u0648\u0646\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Native php version is not installed (\"\/usr\/bin\/php-cgi\" binary is missing)\nthus CloudLinux PHP selector is not able to work.\n<\/code><\/pre>\n\n\n\n<p>\u0627\u06cc\u0646 \u062e\u0637\u0627 \u0645\u0627\u0646\u0639 \u0627\u0632 \u06a9\u0627\u0631\u06a9\u0631\u062f PHP Selector \u062f\u0631 \u06a9\u0646\u062a\u0631\u0644 \u067e\u0646\u0644\u200c\u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f Plesk \u0645\u06cc\u200c\u0634\u0648\u062f.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u2757 <strong>\u0645\u0634\u06a9\u0644 (Issue)<\/strong><\/h1>\n\n\n\n<p>\u062f\u0631 \u0647\u0646\u06af\u0627\u0645 \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/sbin\/cloudlinux-selector set --interpreter php --selector-status enabled --json\n<\/code><\/pre>\n\n\n\n<p>\u067e\u06cc\u063a\u0627\u0645 \u062e\u0637\u0627\u06cc \u0632\u06cc\u0631 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Native php version is not installed (\"\/usr\/bin\/php-cgi\" binary is missing),\nthus CloudLinux PHP selector is not able to work.\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\ud83c\udf10 <strong>\u0645\u062d\u06cc\u0637 (Environment)<\/strong><\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Plesk<\/li>\n\n\n\n<li>CloudLinux 7<\/li>\n\n\n\n<li>CloudLinux 8<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\ud83d\udee0\ufe0f <strong>\u0631\u0627\u0647\u200c\u062d\u0644 (Solution)<\/strong><\/h1>\n\n\n\n<h3 class=\"wp-block-heading\">1\ufe0f\u20e3 \u0646\u0635\u0628 \u067e\u06a9\u06cc\u062c\u200c\u0647\u0627\u06cc Native PHP<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install php php-gd php-mbstring php-pdo php-xml\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2\ufe0f\u20e3 \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc PHP Selector<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>cloudlinux-selector setup --interpreter=php --json\n<\/code><\/pre>\n\n\n\n<p>\u067e\u0633 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631\u060c PHP Selector \u0622\u0645\u0627\u062f\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u26a0\ufe0f <strong>\u0639\u0644\u062a (Cause)<\/strong><\/h1>\n\n\n\n<p>\u0646\u0633\u062e\u0647\u200c\u0647\u0627\u06cc <strong>Native PHP<\/strong> \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u0646\u0635\u0628 \u0646\u0634\u062f\u0647\u200c\u0627\u0646\u062f\u060c \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 PHP Selector \u0642\u0627\u062f\u0631 \u0628\u0647 \u06a9\u0627\u0631 \u0646\u06cc\u0633\u062a.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\ud83d\udd17 <strong>\u0644\u06cc\u0646\u06a9\u200c\u0647\u0627\u06cc \u0645\u0641\u06cc\u062f<\/strong><\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u0646\u0635\u0628 PHP \u062a\u0648\u0633\u0637 OS Vendor \u062f\u0631 Plesk:<br><a href=\"https:\/\/support.plesk.com\/hc\/en-us\/articles\/115004177974-How-to-install-PHP-by-OS-vendor-in-Plesk-for-Linux\" target=\"_blank\" rel=\"noopener\">Install PHP by OS vendor in Plesk for Linux<\/a><\/li>\n<\/ul>\n\n\n\n<p>\u06a9\u06cc\u0627\u0646 \u067e\u0648\u0631<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud83e\udde9 \u062a\u0639\u0627\u0631\u06cc\u0641 \u06a9\u0644\u06cc\u062f\u06cc \u0645\u0642\u0627\u0644\u0647 \ud83d\udcdd \u0645\u0642\u062f\u0645\u0647 PHP Selector \u0628\u0631\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a \u0646\u0633\u062e\u0647\u200c\u0647\u0627\u06cc PHP \u0631\u0648\u06cc \u062f\u0627\u0645\u0646\u0647\u200c\u0647\u0627 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0646\u0633\u062e\u0647 Native PHP \u062f\u0627\u0631\u062f.\u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0627\u06cc\u0646 \u0646\u0633\u062e\u0647 \u0646\u0635\u0628 \u0646\u0634\u062f\u0647 \u0628\u0627\u0634\u062f \u06cc\u0627 \u0645\u0633\u06cc\u0631 \u0628\u0627\u06cc\u0646\u0631\u06cc \u0622\u0646 \u0645\u0648\u062c\u0648\u062f \u0646\u0628\u0627\u0634\u062f\u060c \u062e\u0637\u0627\u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f \u0632\u06cc\u0631 \u0638\u0627\u0647\u0631 \u0645\u06cc\u200c\u0634\u0648\u0646\u062f: \u0627\u06cc\u0646 \u062e\u0637\u0627 \u0645\u0627\u0646\u0639 \u0627\u0632 \u06a9\u0627\u0631\u06a9\u0631\u062f PHP Selector \u062f\u0631 \u06a9\u0646\u062a\u0631\u0644 \u067e\u0646\u0644\u200c\u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f Plesk \u0645\u06cc\u200c\u0634\u0648\u062f. \u2757 \u0645\u0634\u06a9\u0644 (Issue) \u062f\u0631 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":16243,"menu_order":103,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-17090","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"author_avatar":"https:\/\/maralhost.com\/kb\/wp-content\/litespeed\/avatar\/c59fc140fa83b542ed78a005738a60da.jpg?ver=1778441380","author_name":"Shayan Kianpoor","_links":{"self":[{"href":"https:\/\/maralhost.com\/kb\/wp-json\/wp\/v2\/docs\/17090","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/maralhost.com\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/maralhost.com\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/maralhost.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/maralhost.com\/kb\/wp-json\/wp\/v2\/comments?post=17090"}],"version-history":[{"count":2,"href":"https:\/\/maralhost.com\/kb\/wp-json\/wp\/v2\/docs\/17090\/revisions"}],"predecessor-version":[{"id":17093,"href":"https:\/\/maralhost.com\/kb\/wp-json\/wp\/v2\/docs\/17090\/revisions\/17093"}],"up":[{"embeddable":true,"href":"https:\/\/maralhost.com\/kb\/wp-json\/wp\/v2\/docs\/16243"}],"wp:attachment":[{"href":"https:\/\/maralhost.com\/kb\/wp-json\/wp\/v2\/media?parent=17090"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/maralhost.com\/kb\/wp-json\/wp\/v2\/doc_tag?post=17090"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}