{"id":16939,"date":"2025-11-13T09:31:40","date_gmt":"2025-11-13T06:01:40","guid":{"rendered":"https:\/\/maralhost.com\/kb\/articles\/cloudlinux\/%d9%86%d8%b3%d8%ae%d9%87-php-%d9%85%d8%aa%d9%81%d8%a7%d9%88%d8%aa-%d8%a8%d8%b1%d8%a7%db%8c-%d9%87%d8%b1-%d8%af%d8%a7%d9%85%d9%86%d9%87-%d9%be%d9%88%d8%b4%d9%87\/"},"modified":"2025-11-13T09:35:10","modified_gmt":"2025-11-13T06:05:10","slug":"different-php-ver","status":"publish","type":"docs","link":"https:\/\/maralhost.com\/kb\/docs\/cloudlinux\/different-php-ver\/","title":{"rendered":"\u0646\u0633\u062e\u0647 PHP \u0645\u062a\u0641\u0627\u0648\u062a \u0628\u0631\u0627\u06cc \u0647\u0631 \u062f\u0627\u0645\u0646\u0647\/\u067e\u0648\u0634\u0647"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\ud83e\udde9 <strong>\u062a\u0639\u0627\u0631\u06cc\u0641 \u06a9\u0644\u06cc\u062f\u06cc<\/strong><\/h2>\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 \u0648 \u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627\u06cc PHP \u062f\u0631 \u0633\u0637\u062d \u06a9\u0627\u0631\u0628\u0631.<\/li>\n\n\n\n<li><strong>Handler (\u0647\u0646\u062f\u0644\u0631):<\/strong> \u062a\u0639\u06cc\u06cc\u0646 \u0645\u06cc\u200c\u06a9\u0646\u062f \u06a9\u0647 \u06a9\u062f\u0627\u0645 \u0646\u0633\u062e\u0647 \u0627\u0632 PHP \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u200c\u0647\u0627\u06cc \u0641\u0627\u06cc\u0644\u200c\u0647\u0627\u06cc PHP \u0631\u0627 \u067e\u0631\u062f\u0627\u0632\u0634 \u06a9\u0646\u062f.<\/li>\n\n\n\n<li><strong>symlinks.rules:<\/strong> \u0641\u0627\u06cc\u0644\u06cc \u062f\u0631 \u0645\u0633\u06cc\u0631 <code>\/etc\/cl.selector\/<\/code> \u0627\u0633\u062a \u06a9\u0647 \u062a\u0639\u06cc\u06cc\u0646 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627\u06cc PHP \u062f\u0631 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc\u200c\u0647\u0627 (Per Domain \/ Per Folder) \u0686\u06af\u0648\u0646\u0647 \u0627\u0639\u0645\u0627\u0644 \u0634\u0648\u0646\u062f.<\/li>\n\n\n\n<li><strong>umask:<\/strong> \u0645\u0642\u062f\u0627\u0631\u06cc \u06a9\u0647 \u0633\u0637\u062d \u062f\u0633\u062a\u0631\u0633\u06cc \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 \u0641\u0627\u06cc\u0644\u200c\u0647\u0627\u06cc \u062c\u062f\u06cc\u062f \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udca1 <strong>\u0645\u0642\u062f\u0645\u0647<\/strong><\/h2>\n\n\n\n<p>\u062f\u0631 CloudLinux \u0627\u0645\u06a9\u0627\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0646\u0633\u062e\u0647\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 PHP \u0628\u0631\u0627\u06cc \u0647\u0631 \u062f\u0627\u0645\u0646\u0647 \u06cc\u0627 \u067e\u0648\u0634\u0647 (Per Domain\/Per Folder) \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f. \u0627\u06cc\u0646 \u0642\u0627\u0628\u0644\u06cc\u062a \u0628\u0647 \u0645\u062f\u06cc\u0631\u0627\u0646 \u0633\u0631\u0648\u0631 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u0628\u0631\u0627\u06cc \u0647\u0631 \u0648\u0628\u200c\u0633\u0627\u06cc\u062a \u06cc\u0627 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc\u060c \u0646\u0633\u062e\u0647\u200c\u06cc \u0645\u062a\u0641\u0627\u0648\u062a\u06cc \u0627\u0632 PHP \u0631\u0627 \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 \u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627\u06cc \u0627\u062e\u062a\u0635\u0627\u0635\u06cc \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0646\u0646\u062f.<br>\u0628\u0627 \u0627\u06cc\u0646 \u062d\u0627\u0644\u060c \u06af\u0627\u0647\u06cc \u0627\u0648\u0642\u0627\u062a \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627\u06cc \u0627\u0646\u062a\u062e\u0627\u0628\u06cc \u0627\u0632 \u0637\u0631\u06cc\u0642 PHP Selector \u0627\u0639\u0645\u0627\u0644 \u0646\u0634\u0648\u0646\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647\u060c \u0639\u0644\u062a \u0628\u0631\u0648\u0632 \u0627\u06cc\u0646 \u0645\u0634\u06a9\u0644 \u0648 \u0631\u0648\u0634 \u0631\u0641\u0639 \u0622\u0646 \u062a\u0648\u0636\u06cc\u062d \u062f\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u26a0\ufe0f <strong>\u0645\u0634\u06a9\u0644 (Issue)<\/strong><\/h2>\n\n\n\n<p>\u062f\u0631 \u0647\u0646\u06af\u0627\u0645 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0642\u0627\u0628\u0644\u06cc\u062a \u00abDifferent PHP Version per Domain\/Folder\u00bb\u060c \u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627\u06cc \u0627\u0646\u062a\u062e\u0627\u0628\u200c\u0634\u062f\u0647 \u062f\u0631 PHP Selector \u0628\u0631\u0627\u06cc \u0622\u0646 \u0646\u0633\u062e\u0647 \u0627\u0632 PHP \u0627\u0639\u0645\u0627\u0644 \u0646\u0645\u06cc\u200c\u0634\u0648\u0646\u062f.<br>\u0628\u0631\u0627\u06cc \u0645\u062b\u0627\u0644\u060c \u0641\u0627\u06cc\u0644 <code>.htaccess<\/code> \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u062a\u0646\u0638\u06cc\u0645 \u0634\u062f\u0647 \u0627\u0633\u062a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;FilesMatch \"\\.(php4|php5|php3|php2|php|phtml)$\"&gt;\nSetHandler application\/x-httpd-alt-php80___lsphp\n&lt;\/FilesMatch&gt;\n<\/code><\/pre>\n\n\n\n<p>\u0627\u0645\u0627 \u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627\u06cc \u0627\u0646\u062a\u062e\u0627\u0628\u200c\u0634\u062f\u0647 \u062f\u0631 PHP Selector \u0628\u0631\u0627\u06cc PHP 8 \u062f\u0631 \u0648\u0628\u200c\u0633\u0627\u06cc\u062a \u0641\u0639\u0627\u0644 \u0646\u06cc\u0633\u062a\u0646\u062f.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"929\" height=\"670\" src=\"https:\/\/maralhost.com\/kb\/wp-content\/uploads\/2025\/11\/mceclip0.webp\" alt=\"\" class=\"wp-image-16942\" title=\"\" srcset=\"https:\/\/maralhost.com\/kb\/wp-content\/uploads\/2025\/11\/mceclip0.webp 929w, https:\/\/maralhost.com\/kb\/wp-content\/uploads\/2025\/11\/mceclip0-300x216.webp 300w, https:\/\/maralhost.com\/kb\/wp-content\/uploads\/2025\/11\/mceclip0-768x554.webp 768w\" sizes=\"(max-width: 929px) 100vw, 929px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udda5\ufe0f <strong>\u0645\u062d\u06cc\u0637 (Environment)<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0647\u0631 \u0646\u0633\u062e\u0647 \u0627\u0632 CloudLinux<\/li>\n\n\n\n<li>cPanel<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udee0\ufe0f <strong>\u0631\u0627\u0647\u200c\u062d\u0644 (Solution)<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1\ufe0f\u20e3 \u0628\u0631\u0631\u0633\u06cc \u0648\u062c\u0648\u062f \u0641\u0627\u06cc\u0644 symlinks.rules<\/h3>\n\n\n\n<p>\u062f\u0633\u062a\u0631\u0633\u06cc \u0648 \u0641\u0639\u0627\u0644 \u0628\u0648\u062f\u0646 \u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627\u06cc PHP \u062f\u0631 \u062d\u0627\u0644\u062a &#8220;per directory&#8221; \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0641\u0627\u06cc\u0644 \u0632\u06cc\u0631 \u06a9\u0646\u062a\u0631\u0644 \u0645\u06cc\u200c\u0634\u0648\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/etc\/cl.selector\/symlinks.rules\n<\/code><\/pre>\n\n\n\n<p>\u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u062f \u06cc\u0627 \u0646\u0627\u062f\u0631\u0633\u062a \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647\u060c \u0628\u0627\u06cc\u062f \u0637\u0628\u0642 \u0645\u0633\u062a\u0646\u062f\u0627\u062a \u0631\u0633\u0645\u06cc CloudLinux \u062f\u0631 \u0644\u06cc\u0646\u06a9 \u0632\u06cc\u0631 \u0622\u0646 \u0631\u0627 \u0628\u0633\u0627\u0632\u06cc\u062f:<br>\ud83d\udd17 <a href=\"https:\/\/docs.cloudlinux.com\/cloudlinux_os_components\/#php-extensions\" target=\"_blank\" rel=\"noopener\">CloudLinux Docs \u2013 PHP Extensions<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2\ufe0f\u20e3 \u0628\u0631\u0631\u0633\u06cc \u0633\u0637\u062d \u062f\u0633\u062a\u0631\u0633\u06cc \u0641\u0627\u06cc\u0644<\/h3>\n\n\n\n<p>\u0627\u06af\u0631 \u0641\u0627\u06cc\u0644 <code>symlinks.rules<\/code> \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \u0648\u0644\u06cc \u0647\u0645\u0686\u0646\u0627\u0646 \u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627 \u0627\u0639\u0645\u0627\u0644 \u0646\u0645\u06cc\u200c\u0634\u0648\u0646\u062f\u060c \u0627\u062d\u062a\u0645\u0627\u0644 \u062f\u0627\u0631\u062f \u0633\u0637\u062d \u062f\u0633\u062a\u0631\u0633\u06cc (permissions) \u0622\u0646 \u0627\u0634\u062a\u0628\u0627\u0647 \u0628\u0627\u0634\u062f.<br>\u06af\u0627\u0647\u06cc \u0641\u0627\u06cc\u0644 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u062f\u0633\u062a\u06cc \u0633\u0627\u062e\u062a\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f \u0648 \u0628\u0647\u200c\u062f\u0644\u06cc\u0644 \u0645\u0642\u062f\u0627\u0631 \u0645\u062a\u0641\u0627\u0648\u062a <code>umask<\/code> \u0631\u0648\u06cc \u0633\u0631\u0648\u0631\u060c \u062f\u0633\u062a\u0631\u0633\u06cc \u0627\u0634\u062a\u0628\u0627\u0647\u06cc \u062f\u0627\u0631\u062f.<\/p>\n\n\n\n<p>\u0646\u0645\u0648\u0646\u0647 \u0648\u0636\u0639\u06cc\u062a \u0646\u0627\u062f\u0631\u0633\u062a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@server1 ~]# ll \/etc\/cl.selector\/symlinks.rules\n-rw------- 1 root root 26 Feb 10 14:48 \/etc\/cl.selector\/symlinks.rules\n<\/code><\/pre>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u0631\u0641\u0639 \u0645\u0634\u06a9\u0644\u060c \u0633\u0637\u062d \u062f\u0633\u062a\u0631\u0633\u06cc \u0635\u062d\u06cc\u062d \u0631\u0627 \u0627\u0639\u0645\u0627\u0644 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod 0644 \/etc\/cl.selector\/symlinks.rules\n<\/code><\/pre>\n\n\n\n<p>\u0627\u06a9\u0646\u0648\u0646 \u0645\u062c\u062f\u062f\u0627\u064b \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ll \/etc\/cl.selector\/symlinks.rules\n-rw-r--r-- 1 root root 26 Feb 10 14:48 \/etc\/cl.selector\/symlinks.rules\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">3\ufe0f\u20e3 \u0627\u0639\u0645\u0627\u0644 \u0645\u062c\u062f\u062f \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u0627\u0646<\/h3>\n\n\n\n<p>\u067e\u0633 \u0627\u0632 \u0627\u0635\u0644\u0627\u062d \u062f\u0633\u062a\u0631\u0633\u06cc\u200c\u0647\u0627\u060c \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0628\u0647\u200c\u062f\u0631\u0633\u062a\u06cc \u0627\u0639\u0645\u0627\u0644 \u0634\u0648\u0646\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>selectorctl --apply-symlinks-rules | grep testuser\n<\/code><\/pre>\n\n\n\n<p>\u0646\u0645\u0648\u0646\u0647 \u062e\u0631\u0648\u062c\u06cc:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Processing user testuser\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd0d <strong>\u0639\u0644\u062a (Cause)<\/strong><\/h2>\n\n\n\n<p>\u0627\u06cc\u0646 \u0645\u0634\u06a9\u0644 \u0628\u0647 \u06cc\u06a9\u06cc \u0627\u0632 \u062f\u0648 \u062f\u0644\u06cc\u0644 \u0632\u06cc\u0631 \u0631\u062e \u0645\u06cc\u200c\u062f\u0647\u062f:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u0641\u0627\u06cc\u0644 <code>\/etc\/cl.selector\/symlinks.rules<\/code> \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u062f.<\/li>\n\n\n\n<li>\u0633\u0637\u062d \u062f\u0633\u062a\u0631\u0633\u06cc \u0641\u0627\u06cc\u0644 \u0627\u0634\u062a\u0628\u0627\u0647 \u0627\u0633\u062a \u0648 PHP Selector \u0646\u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0622\u0646 \u0631\u0627 \u0628\u062e\u0648\u0627\u0646\u062f.<\/li>\n<\/ol>\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 \ud83d\udca1 \u0645\u0642\u062f\u0645\u0647 \u062f\u0631 CloudLinux \u0627\u0645\u06a9\u0627\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0646\u0633\u062e\u0647\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 PHP \u0628\u0631\u0627\u06cc \u0647\u0631 \u062f\u0627\u0645\u0646\u0647 \u06cc\u0627 \u067e\u0648\u0634\u0647 (Per Domain\/Per Folder) \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f. \u0627\u06cc\u0646 \u0642\u0627\u0628\u0644\u06cc\u062a \u0628\u0647 \u0645\u062f\u06cc\u0631\u0627\u0646 \u0633\u0631\u0648\u0631 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u0628\u0631\u0627\u06cc \u0647\u0631 \u0648\u0628\u200c\u0633\u0627\u06cc\u062a \u06cc\u0627 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc\u060c \u0646\u0633\u062e\u0647\u200c\u06cc \u0645\u062a\u0641\u0627\u0648\u062a\u06cc \u0627\u0632 PHP \u0631\u0627 \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 \u0645\u0627\u0698\u0648\u0644\u200c\u0647\u0627\u06cc \u0627\u062e\u062a\u0635\u0627\u0635\u06cc \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0646\u0646\u062f.\u0628\u0627 \u0627\u06cc\u0646 \u062d\u0627\u0644\u060c \u06af\u0627\u0647\u06cc \u0627\u0648\u0642\u0627\u062a \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":16243,"menu_order":84,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-16939","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\/16939","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=16939"}],"version-history":[{"count":2,"href":"https:\/\/maralhost.com\/kb\/wp-json\/wp\/v2\/docs\/16939\/revisions"}],"predecessor-version":[{"id":16943,"href":"https:\/\/maralhost.com\/kb\/wp-json\/wp\/v2\/docs\/16939\/revisions\/16943"}],"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=16939"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/maralhost.com\/kb\/wp-json\/wp\/v2\/doc_tag?post=16939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}