{"id":2324,"date":"2018-01-17T07:30:40","date_gmt":"2018-01-17T04:00:40","guid":{"rendered":"http:\/\/webide.ir\/blog\/?p=2324"},"modified":"2018-01-16T11:47:08","modified_gmt":"2018-01-16T08:17:08","slug":"%da%86%da%af%d9%88%d9%86%d9%87-%d8%b3%d8%a7%db%8c%d8%aa-%d9%87%d8%a7%db%8c%db%8c-%d9%85%d8%aa%d8%b9%d8%af%d8%af%db%8c-%d8%b1%d8%a7-%d8%a8%d8%a7-%d9%86%d8%b3%d8%ae%d9%87-%d9%87%d8%a7%db%8c-%d9%85","status":"publish","type":"post","link":"https:\/\/webide.ir\/blog\/%da%86%da%af%d9%88%d9%86%d9%87-%d8%b3%d8%a7%db%8c%d8%aa-%d9%87%d8%a7%db%8c%db%8c-%d9%85%d8%aa%d8%b9%d8%af%d8%af%db%8c-%d8%b1%d8%a7-%d8%a8%d8%a7-%d9%86%d8%b3%d8%ae%d9%87-%d9%87%d8%a7%db%8c-%d9%85","title":{"rendered":"\u0686\u06af\u0648\u0646\u0647  \u0633\u0627\u06cc\u062a \u0647\u0627\u06cc\u06cc \u0645\u062a\u0639\u062f\u062f\u06cc \u0631\u0627 \u0628\u0627 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 PHP \u062f\u0631 Nginx \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u0645\u061f"},"content":{"rendered":"<p>\u0628\u0631\u062e\u06cc \u0627\u0632 \u0627\u0648\u0642\u0627\u062a \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u0646\u062f\u0647 \u0647\u0627\u06cc PHP \u0628\u062e\u0648\u0627\u0647\u0646\u062f\u00a0 \u0633\u0627\u06cc\u062a \u0647\u0627 \u06cc\u0627 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u0631\u0627 \u0628\u0647 \u06a9\u0645\u06a9 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc \u0645\u062a\u0641\u0627\u0648\u062a PHP \u0628\u0631 \u0631\u0648\u06cc \u0647\u0645\u0627\u0646 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0628\u0633\u0627\u0632\u0646\u062f \u0648 \u0627\u062c\u0631\u0627 \u06a9\u0646\u0646\u062f. \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0627\u062f\u0645\u06cc\u0646 \u0633\u06cc\u0633\u062a\u0645 \u0647\u0627\u06cc \u0644\u06cc\u0646\u0648\u06a9\u0633\u06cc \u0628\u0627\u06cc\u062f \u0645\u062d\u06cc\u0637\u06cc \u0631\u0627 \u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u062f\u0631 \u0622\u0646 \u0642\u0627\u062f\u0631 \u0628\u0627\u0634\u06cc\u062f \u0633\u0627\u06cc\u062a \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u0631\u0627 \u0628\u0647 \u06a9\u0645\u06a9 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc \u0645\u062a\u0641\u0627\u0648\u062a PHP \u0628\u0631 \u0631\u0648\u06cc \u0648\u0628 \u0633\u0631\u0648\u0631 \u0648\u0627\u062d\u062f\u06cc \u0647\u0645\u0686\u0648\u0646 Nginx\u00a0 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647 \u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u0645 \u0646\u062d\u0648\u0647 \u0646\u0635\u0628 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 PHP \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0648\u0628 \u0633\u0631\u0648\u0631 \u0631\u0627\u00a0 \u062f\u0631 \u062a\u0648\u0632\u06cc\u0639 \u0647\u0627\u06cc CentOS\/RHEL 7\u00a0 \u0628\u06cc\u0627\u0646 \u06a9\u0646\u06cc\u0645. \u067e\u0633 \u0647\u0645\u0631\u0627\u0647 \u0648\u0628 \u0627\u06cc\u062f\u0647 \u0628\u0627\u0634\u06cc\u062f.<\/p>\n<p><!--more--><\/p>\n<p>\u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0645\u06cc \u062f\u0627\u0646\u06cc\u062f \u0648\u0628 \u0633\u0631\u0648\u0631 Nginx \u0627\u0632 PHP-FPM\u00a0 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<h4>\u0645\u062d\u06cc\u0637 \u0646\u0635\u0628 \u0627\u0632\u0645\u0627\u06cc\u0634\u06cc:<\/h4>\n<ul>\n<li>\u0633\u0631\u0648\u0631\u06cc \u0628\u0627 \u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644 CentOS 7 \u06cc\u0627 RHEL 7 \u0628\u0627 \u06a9\u0645\u062a\u0631\u06cc\u0646 \u0645\u0648\u0627\u0631\u062f \u0646\u0635\u0628 \u062f\u0634\u0647<\/li>\n<li>Nginx HTTP Server<\/li>\n<li>PHP 7.1 \u0648 5.6<\/li>\n<li>\u0633\u0631\u0648\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 MariaDB<\/li>\n<li>\u0627\u06cc \u067e\u06cc \u0622\u062f\u0631\u0633 \u0633\u0631\u0648\u0631: 168.56.10<\/li>\n<li>\u0633\u0627\u06cc\u062a: com \u0648 example2.com<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 \u0627\u0648\u0644: \u0646\u0635\u0628 \u0648 \u0641\u0639\u0627\u0644\u0633\u0627\u0632\u06cc \u0645\u062e\u0632\u0646 EPEL \u0648 Remi<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>\u062e\u0648\u0628 \u0627\u0648\u0644\u06cc\u0646 \u06a9\u0627\u0631\u06cc \u06a9\u0647 \u0628\u0627\u06cc\u062f \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f \u0646\u0635\u0628 \u0648 \u0641\u0639\u0627\u0644\u0633\u0627\u0632\u06cc \u0645\u062e\u0632\u0646 EPEL \u0648 Remi \u0627\u0633\u062a \u06a9\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0622\u062e\u0631\u06cc\u0646 \u0646\u0633\u062e\u0647 \u0627\u0632 \u067e\u0634\u062a\u0647 PHP \u00a0\u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc CentOS\/RHEL 7 \u0641\u0631\u0627\u0647\u0645 \u0622\u0648\u0631\u062f:<\/p>\n<p style=\"text-align: left;\"># yum install https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm<\/p>\n<p style=\"text-align: left;\"># yum install http:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm<\/p>\n<p>\u062f\u0631 \u0645\u0631\u062d\u0644\u0647 \u0628\u0639\u062f\u06cc\u00a0 \u067e\u06a9\u06cc\u062c yum-utils\u00a0 \u0631\u0627 \u0628\u0627\u06cc\u062f \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0642\u0627\u0628\u0644\u06cc\u062a \u0647\u0627\u06cc \u0628\u0648\u0645\u06cc Yum \u0631\u0627 \u062a\u0648\u0633\u0639\u0647 \u0645\u06cc \u062f\u0647\u062f \u0648 \u062f\u0633\u062a\u0648\u0631 yum-config-manager\u00a0 \u0631\u0627 \u0628\u0631\u0627\u06cc\u062a\u0627\u0646 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc \u0633\u0627\u0632\u062f \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0641\u0639\u0627\u0644\u0633\u0627\u0632\u06cc \u06cc\u0627 \u063a\u06cc\u0631 \u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u0646 \u0645\u062e\u0632\u0646 Yum \u0628\u0631 \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<p style=\"text-align: left;\"># yum install yum-utils<\/p>\n<p>\u0646\u06a9\u062a\u0647: \u0628\u0631 \u0631\u0648\u06cc RHEL 7 \u0634\u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f\u00a0 \u06a9\u0627\u0646\u0627\u0644 \u0627\u062e\u062a\u06cc\u0627\u0631\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u0628\u0631\u062e\u06cc \u0627\u0632 dependencies \u0641\u0639\u0627\u0644 \u06a9\u0646\u06cc\u062f. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0627\u0631 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\"># subscription-manager repos &#8211;enable=rhel-7-server-optional-rpms<\/p>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 \u062f\u0648\u0645: \u0646\u0635\u0628 \u0648\u0628 \u0633\u0631\u0648\u0631 Nginx<\/strong><\/p>\n<p>\u0628\u0631\u0627\u06cc \u0646\u0635\u0628 \u0622\u062e\u0631\u06cc\u0646 \u0646\u0633\u062e\u0647 \u0627\u0632 Nginx\u060c \u0628\u0627\u06cc\u062f\u00a0 \u0645\u062e\u0632\u0646 \u0631\u0633\u0645\u06cc \u0627\u06cc\u0646 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u0645 \u0648 \u0641\u0627\u06cc\u0644\u06cc \u0628\u0647 \u0646\u0627\u0645 \/etc\/yum.repos.d\/nginx.repo \u0627\u06cc\u062c\u0627\u062f \u0646\u0645\u0627\u06cc\u06cc\u0645:<\/p>\n<p style=\"text-align: left;\"># vi \/etc\/yum.repos.d\/nginx.repo<\/p>\n<p>\u00a0\u062d\u0627\u0644\u0627 \u062e\u0637\u0648\u0637 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0631 \u0627\u0633\u0627\u0633 \u062a\u0648\u0632\u06cc\u0639\u06cc \u06a9\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u062f \u0628\u0647 \u0641\u0627\u06cc\u0644 \u062e\u0648\u062f \u0627\u0636\u0627\u0641\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\"><strong>&#8212;&#8212;&#8212;&#8212;&#8212; <\/strong><strong>\u0628\u0631 \u0631\u0648\u06cc \u0633\u0646\u062a \u0627\u0648 \u0627\u0633 7<\/strong><strong> &#8212;&#8212;&#8212;&#8212;&#8212;<\/strong><\/p>\n<p style=\"text-align: left;\">[nginx]\n<p style=\"text-align: left;\">name=nginx repo<\/p>\n<p style=\"text-align: left;\">baseurl=http:\/\/nginx.org\/packages\/centos\/7\/$basearch\/<\/p>\n<p style=\"text-align: left;\">gpgcheck=0<\/p>\n<p style=\"text-align: left;\">enabled=1<\/p>\n<p style=\"text-align: left;\"><strong>&#8212;&#8212;&#8212;&#8212;&#8212; RHEL7 &#8212;&#8212;&#8212;&#8212;&#8212;<\/strong><\/p>\n<p style=\"text-align: left;\">[nginx]\n<p style=\"text-align: left;\">name=nginx repo<\/p>\n<p style=\"text-align: left;\">baseurl=http:\/\/nginx.org\/packages\/rhel\/7.x\/$basearch\/<\/p>\n<p style=\"text-align: left;\">gpgcheck=0<\/p>\n<p style=\"text-align: left;\">enabled=1<\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u0627\u06cc\u0646\u06a9\u0647 \u0645\u062e\u0632\u0646 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0627\u0636\u0627\u0641\u0647 \u0634\u062f \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f Nginx \u0631\u0627 \u0628\u0647 \u06a9\u0645\u06a9 \u0627\u0628\u0632\u0627\u0631 yum package manager \u0628\u0647 \u0634\u06cc\u0648\u0647 \u0632\u06cc\u0631 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\"># yum install nginx<\/p>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 \u0633\u0648\u0645: \u0646\u0635\u0628 \u0633\u0631\u0648\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 MariaDB<\/strong><\/p>\n<p>\u0628\u0631\u0627\u06cc \u0646\u0635\u0628 \u0622\u062e\u0631\u06cc\u0646 \u0646\u0633\u062e\u0647 \u0627\u0632 MariaDB \u0628\u0627\u06cc\u062f \u0645\u062e\u0632\u0646 \u0631\u0633\u0645\u06cc \u0622\u0646 \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u0645 \u0648 \u0641\u0627\u06cc\u0644\u06cc \u0628\u0647 \u0646\u0627\u0645 \/etc\/yum.repos.d\/mariadb.repo \u0627\u06cc\u062c\u0627\u062f \u0646\u0645\u0627\u06cc\u06cc\u0645.<\/p>\n<p style=\"text-align: left;\"># vi \/etc\/yum.repos.d\/mariadb.repo<\/p>\n<p>\u0628\u0633\u062a\u0647 \u0628\u0647 \u062a\u0648\u0632\u06cc\u0639\u06cc \u06a9\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u062f \u062e\u0637\u0648\u0637 \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0647 \u0641\u0627\u06cc\u0644 \u062e\u0648\u062f \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\"><strong>&#8212;&#8212;&#8212;&#8212;&#8212; <\/strong><strong>\u0633\u0646\u062a \u0627\u0648 \u0627\u06337<\/strong><strong> &#8212;&#8212;&#8212;&#8212;&#8212;<\/strong><\/p>\n<p style=\"text-align: left;\">[mariadb]\n<p style=\"text-align: left;\">name = MariaDB<\/p>\n<p style=\"text-align: left;\">baseurl = http:\/\/yum.mariadb.org\/10.2\/centos7-amd64<\/p>\n<p style=\"text-align: left;\">gpgkey=https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB<\/p>\n<p style=\"text-align: left;\">gpgcheck=1<\/p>\n<p style=\"text-align: left;\"><strong>&#8212;&#8212;&#8212;&#8212;&#8212; RHEL 7 &#8212;&#8212;&#8212;&#8212;&#8212;<\/strong><\/p>\n<p style=\"text-align: left;\">[mariadb]\n<p style=\"text-align: left;\">name = MariaDB<\/p>\n<p style=\"text-align: left;\">baseurl = http:\/\/yum.mariadb.org\/10.2\/rhel7-amd64<\/p>\n<p style=\"text-align: left;\">gpgkey=https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB<\/p>\n<p style=\"text-align: left;\">gpgcheck=1<\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u0627\u06cc\u0646\u06a9\u0647 \u0645\u062e\u0632\u0646 MariaDB \u0627\u0636\u0627\u0641\u0647 \u0634\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u06cc\u0646 \u0633\u0631\u0648\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0631\u0627 \u0628\u0647 \u06a9\u0645\u06a9 \u0627\u0628\u0632\u0627\u0631 yum package manager \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\"># yum install MariaDB-client MariaDB-server<\/p>\n<p>\u0633\u067e\u0633 \u0646\u0635\u0628 \u0633\u0631\u0648\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0631\u0627 \u0628\u0647 \u06a9\u0645\u06a9 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0632\u06cc\u0631 \u0627\u0645\u0646 \u0646\u0645\u0627\u06cc\u06cc\u062f. \u067e\u0633\u0648\u0631\u062f \u0631\u0648\u062a\u06cc \u0631\u0627 \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0627 Y \u0628\u0647 \u0633\u0648\u0627\u0644\u0627\u062a \u067e\u0627\u0633\u062e \u062f\u0647\u06cc\u062f \u0648 \u0628\u0631\u0627\u06cc \u0628\u0627\u0642\u06cc\u00a0 \u0633\u0648\u0627\u0644\u0627\u062a \u0627\u06cc\u0646\u062a\u0631 \u0631\u0627 \u0628\u0632\u0646\u06cc\u062f \u062a\u0627 \u0644\u0627\u06af\u06cc\u0646 \u06a9\u0627\u0631\u0628\u0631 \u0631\u0648\u062a \u0631\u06cc\u0645\u0648\u062a \u0631\u0627 \u063a\u06cc\u0631 \u0641\u0639\u0627\u0644 \u0646\u0645\u0627\u06cc\u06cc\u062f\u060c \u0627\u06a9\u0627\u0646\u062a \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0646\u0627\u0634\u0646\u0627\u062e\u062a\u0647 \u0631\u0627 \u062d\u0630\u0641 \u06a9\u0646\u06cc\u062f .<\/p>\n<p style=\"text-align: left;\"># mysql_secure_installation<\/p>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 \u0686\u0647\u0627\u0631\u0645: \u0646\u0635\u0628 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc \u0645\u062a\u0639\u062f\u062f PHP<\/strong><\/p>\n<p>\u0628\u0631\u0627\u06cc \u0646\u0635\u0628 \u00a0\u0646\u0633\u062e\u0647 \u0647\u0627\u06cc \u0645\u062a\u0639\u062f\u062f PHP \u0628\u0631\u0627\u06cc \u067e\u0631\u0648\u0698\u0647 \u0647\u0627\u06cc \u062e\u0648\u062f \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 yum-config-manager\u00a0 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0646\u0635\u0628 PHP7.1:<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: left;\"># yum-config-manager &#8211;enable remi-php71\u00a0 [Default]\n<p style=\"text-align: left;\"># yum install php php-common php-fpm<\/p>\n<p style=\"text-align: left;\"># yum install php-mysql php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml php-pecl-apc php-cli php-pear php-pdo<\/p>\n<p>&nbsp;<\/p>\n<p>\u0646\u0635\u0628 PHP 5.6:<\/p>\n<p style=\"text-align: left;\"># yum install php56 php56-php-common php56-php-fpm<\/p>\n<p style=\"text-align: left;\"># yum install php56-php-mysql php56-php-pecl-memcache php56-php-pecl-memcached php56-php-gd php56-php-mbstring php56-php-mcrypt php56-php-xml php56-php-pecl-apc php56-php-cli php56-php-pear php56-php-pdo<\/p>\n<p>\u0628\u0639\u062f \u0627\u0632\u00a0 \u0627\u06cc\u0646\u06a9\u0647 PHP \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0631\u062f\u06cc\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0628\u06cc\u0646\u06cc\u062f \u0646\u0633\u062e\u0647 PHP \u067e\u06cc\u0634 \u0641\u0631\u0636\u06cc \u06a9\u0647 \u0628\u0631 \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u06af\u0631\u0641\u062a\u0647 \u0686\u0647 \u0686\u06cc\u0632\u06cc \u0627\u0633\u062a:<\/p>\n<p style=\"text-align: left;\"># php -v<\/p>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 \u067e\u0646\u062c\u0645: \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc PHP-FPM \u0648 PHP56-PHP-FPM<\/strong><\/p>\n<p>\u0627\u06cc\u0646 \u0642\u0633\u0645\u062a \u06cc\u06a9\u06cc \u0627\u0632 \u062c\u0630\u0627\u0628 \u062a\u0631\u06cc\u0646 \u0628\u062e\u0634 \u0647\u0627\u06cc \u0622\u0645\u0648\u0632\u0634 \u0645\u0627\u0633\u062a. \u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0628\u0647 \u0634\u0645\u0627 \u062a\u0648\u0636\u06cc\u062d \u0645\u06cc \u062f\u0647\u06cc\u0645 \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0648\u0627\u0642\u0639\u0627 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 PHP \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u062e\u0648\u062f \u0627\u062c\u0631\u0627 \u0646\u0645\u0627\u06cc\u06cc\u062f.\u00a0 \u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 php-fpm\u00a0 \u06a9\u0647 \u0648\u0628 \u0633\u0631\u0648\u0631 Nginx \u0628\u0627 \u0622\u0646 \u06a9\u0627\u0631 \u062e\u0648\u0627\u0647\u062f \u06a9\u0631\u062f \u0631\u0627 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0645\u06cc \u06a9\u0646\u06cc\u0645. \u0634\u0645\u0627 \u0628\u0627\u06cc\u062f \u06a9\u0627\u0631\u0628\u0631\/ \u06af\u0631\u0648\u0647\u06cc \u0627\u0632 \u0641\u0631\u0622\u06cc\u0646\u062f\u0647\u0627\u06cc FastCGI \u0648 \u0646\u06cc\u0632 \u067e\u0648\u0631\u062a \u0647\u0627\u06cc \u0645\u062f\u0646\u0638\u0631 \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0627\u06cc\u0646 \u0647\u0627 \u062f\u0648 \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0647\u0633\u062a\u0646\u062f \u06a9\u0647 \u0628\u0627\u06cc\u062f \u0648\u06cc\u0631\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u0645:<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>php-fpm &#8211; \/etc\/php-fpm.d\/www.conf<\/li>\n<li>php56-php-fpm-\/opt\/remi\/php56\/root\/etc\/php-fpm.d\/www.conf<\/li>\n<\/ul>\n<p>\u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u0628\u0627\u0644\u0627 \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f \u0648 \u06a9\u0627\u0631\u0628\u0631\/ \u06af\u0631\u0648\u0647 \u0641\u0631\u0627\u06cc\u0646\u062f\u0647\u0627\u06cc FastCGI \u0631\u0627 \u062a\u0646\u0638\u06cc\u0645 \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\"># vi \/etc\/php-fpm.d\/www.conf\u00a0\u00a0 [PHP 7.1]\n<p style=\"text-align: left;\"># vi \/opt\/remi\/php56\/root\/etc\/php-fpm.d\/www.conf\u00a0 [PHP 5.6]\n<p>\u0645\u0642\u062f\u0627\u0631 \u067e\u06cc\u0634 \u0641\u0631\u0636 \u0628\u0627\u06cc\u062f \u0622\u067e\u0627\u0686\u06cc \u0628\u0627\u0634\u062f\u060c \u0634\u0645\u0627 \u0627\u06cc\u0646 \u0645\u0642\u062f\u0627\u0631 \u0631\u0627 \u0628\u0647 Nginx \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\">user = nginx<\/p>\n<p style=\"text-align: left;\">group = nginx<\/p>\n<p>&nbsp;<\/p>\n<p>\u0633\u067e\u0633 \u067e\u0627\u0631\u0627\u0645\u062a\u0631 listen \u0631\u0627 \u067e\u06cc\u062f\u0627 \u06a9\u0646\u06cc\u062f \u0648 address:port\u00a0 \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\">listen = 127.0.0.1:9000 [php-fpm]\n<p style=\"text-align: left;\">listen = 127.0.0.1:9001 [php56-php-fpm]\n<p>\u0628\u0639\u062f \u0627\u0632 \u0627\u06cc\u0646\u06a9\u0647 \u062a\u0645\u0627\u0645\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u0647\u0627\u06cc \u0645\u062f\u0646\u0638\u0631 \u0627\u0639\u0645\u0627\u0644 \u0634\u062f\u060c \u0628\u0627\u06cc\u062f Nginx,\u00a0MariaDB\u00a0 \u0648 PHP-FPM\u00a0 \u0631\u0627 \u0627\u0633\u062a\u0627\u0631\u062a \u06a9\u0646\u06cc\u062f \u0648 \u0622\u0646 \u0647\u0627 \u0631\u0627 \u0628\u0647 \u06af\u0648\u0646\u0647 \u0627\u06cc \u062a\u0646\u0638\u06cc\u0645 \u0646\u0645\u0627\u06cc\u06cc\u062f \u06a9\u0647 \u0628\u062a\u0648\u0627\u0646\u0646\u062f \u062f\u0631 \u0628\u0648\u062a \u0633\u06cc\u0633\u062a\u0645 \u0628\u0647 \u0635\u0648\u0631\u062a \u062e\u0648\u062f\u06a9\u0627\u0631 \u0627\u062c\u0631\u0627 \u0634\u0648\u0646\u062f:<\/p>\n<p style=\"text-align: left;\"># systemctl enable nginx<\/p>\n<p style=\"text-align: left;\"># systemctl start nginx<\/p>\n<p style=\"text-align: left;\"># systemctl enable mariadb<\/p>\n<p style=\"text-align: left;\"># systemctl start mariadb<\/p>\n<p style=\"text-align: left;\"><strong>&#8212;&#8212;&#8212;&#8212;&#8212;- PHP 7.1 &#8212;&#8212;&#8212;&#8212;&#8212;-<\/strong><\/p>\n<p style=\"text-align: left;\"># systemctl enable php-fpm<\/p>\n<p style=\"text-align: left;\"># systemctl start php-fpm<\/p>\n<p style=\"text-align: left;\"><strong>&#8212;&#8212;&#8212;&#8212;&#8212;- PHP 5.6 &#8212;&#8212;&#8212;&#8212;&#8212;-<\/strong><\/p>\n<p style=\"text-align: left;\"># systemctl enable php56-fpm<\/p>\n<p style=\"text-align: left;\"># systemctl start php56-php-fpm<\/p>\n<p>&nbsp;<\/p>\n<p>\u062a\u0648\u062c\u0647:\u00a0 \u062f\u0631 \u0645\u0648\u0627\u0631\u062f\u06cc \u06a9\u0647 \u0628\u0647 \u0647\u0646\u06af\u0627\u0645 \u0622\u063a\u0627\u0632 instance \u062f\u0648\u0645 PHP\u060c\u00a0 \u062e\u0637\u0627\u0647\u0627\u06cc \u0632\u06cc\u0627\u062f\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a\u00a0 \u0645\u06cc \u06a9\u0646\u06cc\u062f\u060c \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a SELinux policy \u0645\u0627\u0646\u0639 \u0627\u0632 \u0622\u063a\u0627\u0632 \u0634\u062f\u0646 \u0622\u0646 \u0634\u062f\u0647 \u0628\u0627\u0634\u062f. \u0627\u06af\u0631 \u00a0\u0686\u0646\u06cc\u0646 \u0628\u0648\u062f\u060c SELinux \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc permissive mode \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f \u0648 \u0633\u067e\u0633 \u0633\u0631\u0648\u06cc\u0633 \u0631\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u0622\u063a\u0627\u0632 \u0646\u0645\u0627\u06cc\u06cc\u062f<\/p>\n<p style=\"text-align: left;\"># getenforce<\/p>\n<p style=\"text-align: left;\"># setenforce 0<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 \u0634\u0634\u0645: \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0633\u0627\u06cc\u062a \u0628\u0627 Permission\u0647\u0627<\/strong><\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u0634\u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 \u0628\u0631\u0627\u06cc \u0633\u0627\u06cc\u062a \u0631\u0627 \u062f\u0631 \/var\/www\/html\/ \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. \u0647\u0645\u0686\u0646\u06cc\u0646 \u0628\u0627\u06cc\u062f \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0647\u0627 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0630\u062e\u06cc\u0631\u0647 \u0633\u0627\u0632\u06cc \u0641\u0627\u06cc\u0644 \u0644\u0627\u06af \u0627\u06cc\u062c\u0627\u062f \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\"><strong>&#8212;&#8212;&#8212;&#8212;&#8212;- <\/strong><strong>\u0633\u0627\u06cc\u062a \u0627\u0648\u0644<\/strong><strong> &#8212;&#8212;&#8212;&#8212;&#8212;-<\/strong><\/p>\n<p style=\"text-align: left;\"># mkdir -p \/var\/www\/html\/example1.com\/<\/p>\n<p style=\"text-align: left;\"># mkdir -p \/var\/www\/html\/example2.com\/<\/p>\n<p style=\"text-align: left;\"><strong>&#8212;&#8212;&#8212;&#8212;&#8212;- <\/strong><strong>\u0633\u0627\u06cc\u062a \u062f\u0648\u0645<\/strong><strong> &#8212;&#8212;&#8212;&#8212;&#8212;-<\/strong><\/p>\n<p style=\"text-align: left;\"># mkdir -p \/var\/log\/nginx\/example1.com\/<\/p>\n<p style=\"text-align: left;\"># mkdir -p \/var\/log\/nginx\/example2.com\/<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u0628\u0631 \u0631\u0648\u06cc \u062a\u0645\u0627\u0645\u06cc \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0647\u0627\u06cc permission \u0647\u0627\u06cc \u0645\u0646\u0627\u0633\u0628 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\"><strong>&#8212;&#8212;&#8212;&#8212;&#8212;- Website 1 &#8212;&#8212;&#8212;&#8212;&#8212;-<\/strong><\/p>\n<p style=\"text-align: left;\"># chown -R root:nginx \/var\/www\/html\/example1.com\/<\/p>\n<p style=\"text-align: left;\"># chmod -R 755 \/var\/www\/html\/example1.com\/<\/p>\n<p style=\"text-align: left;\"># chown -R root:nginx \/var\/log\/nginx\/example1.com\/<\/p>\n<p style=\"text-align: left;\"># chmod -R 660 \/var\/log\/nginx\/example1.com\/<\/p>\n<p style=\"text-align: left;\"><strong>&#8212;&#8212;&#8212;&#8212;&#8212;- Website 2 &#8212;&#8212;&#8212;&#8212;&#8212;-<\/strong><\/p>\n<p style=\"text-align: left;\"># chown -R root:nginx \/var\/www\/html\/example2.com\/<\/p>\n<p style=\"text-align: left;\"># chmod -R 755 \/var\/www\/html\/example2.com\/<\/p>\n<p style=\"text-align: left;\"># chown -R root:nginx \/var\/log\/nginx\/example2.com\/<\/p>\n<p style=\"text-align: left;\"># chmod -R 660 \/var\/log\/nginx\/example2.com\/<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 \u0647\u0641\u062a\u0645: \u0646\u0635\u0628 \u0628\u0644\u0648\u06a9 \u0647\u0627\u06cc \u0633\u0631\u0648\u0631 Nginx \u0628\u0631\u0627\u06cc \u0633\u0627\u06cc\u062a<\/strong><\/p>\n<p>\u062d\u0627\u0644\u0627 \u0628\u0627\u06cc\u062f \u0646\u062d\u0648\u0647 \u067e\u0631\u062f\u0627\u0632\u0634 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0647\u0627\u06cc \u0633\u0627\u06cc\u062a \u062a\u0648\u0633\u0637 \u0648\u0628 \u0633\u0631\u0648\u0631\u00a0 \u0631\u0627 \u0628\u0647 \u06a9\u0645\u06a9 \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0628\u0644\u0648\u06a9 \u0633\u0631\u0648\u0631 \u06a9\u0647\u00a0 \u062f\u0631 \/etc\/nginx\/conf.d\/ \u0642\u0631\u0627\u0631 \u062f\u0627\u0631\u062f \u062a\u0639\u06cc\u06cc\u0646 \u06a9\u0646\u06cc\u0645. \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u0633\u0627\u06cc\u062a \u062e\u0648\u062f \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f \u0648 \u0627\u06a9\u0633\u062a\u0646\u0634\u0646 .conf \u0628\u0647 \u0622\u0646 \u0628\u062f\u0647\u06cc\u062f.<\/p>\n<p style=\"text-align: left;\"># vi \/etc\/nginx\/conf.d\/example1.com.conf<\/p>\n<p style=\"text-align: left;\"># vi \/etc\/nginx\/conf.d\/example2.com.conf<\/p>\n<p>\u0633\u067e\u0633 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u0645\u0631\u0628\u0648\u0637\u0647 \u067e\u06cc\u0633\u062a \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/p>\n<p>\u0648\u0628 \u0633\u0627\u06cc\u062a \u0627\u0648\u0644:<\/p>\n<p><strong>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0628\u0631\u0627\u06cc <\/strong><strong>example1.com<\/strong><\/p>\n<p style=\"text-align: left;\">server {<\/p>\n<p style=\"text-align: left;\">listen 80;<\/p>\n<p style=\"text-align: left;\">server_name example1.com www.example1.com;<\/p>\n<p style=\"text-align: left;\">root\u00a0\u00a0 \/var\/www\/html\/example1.com\/;<\/p>\n<p style=\"text-align: left;\">index index.php index.html index.htm;<\/p>\n<p style=\"text-align: left;\">#charset koi8-r;<\/p>\n<p style=\"text-align: left;\">access_log \/var\/log\/nginx\/example1.com\/example1_access_log;<\/p>\n<p style=\"text-align: left;\">error_log\u00a0\u00a0 \/var\/log\/nginx\/example1.com\/example1_error_log\u00a0\u00a0 error;<\/p>\n<p style=\"text-align: left;\">location \/ {<\/p>\n<p style=\"text-align: left;\">try_files $uri $uri\/ \/index.php?$query_string;<\/p>\n<p style=\"text-align: left;\">}<\/p>\n<p style=\"text-align: left;\"># pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000<\/p>\n<p style=\"text-align: left;\">location ~ \\.php$ {<\/p>\n<p style=\"text-align: left;\">root\u00a0\u00a0\u00a0 \/var\/www\/html\/example1.com\/;<\/p>\n<p style=\"text-align: left;\">fastcgi_pass\u00a0\u00a0 127.0.0.1:9000;\u00a0\u00a0 #set port for php-fpm to listen on<\/p>\n<p style=\"text-align: left;\">fastcgi_index\u00a0 index.php;<\/p>\n<p style=\"text-align: left;\">fastcgi_param\u00a0 SCRIPT_FILENAME\u00a0 $document_root$fastcgi_script_name;<\/p>\n<p style=\"text-align: left;\">include\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 fastcgi_params;<\/p>\n<p style=\"text-align: left;\">include \/etc\/nginx\/fastcgi_params;<\/p>\n<p style=\"text-align: left;\">}<\/p>\n<p style=\"text-align: left;\">}<\/p>\n<p>\u0648\u0628 \u0633\u0627\u06cc\u062a \u062f\u0648\u0645:<\/p>\n<p><strong>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0628\u0631\u0627\u06cc <\/strong><strong>example2.com<\/strong><\/p>\n<p style=\"text-align: left;\">server {<\/p>\n<p style=\"text-align: left;\">listen 80;<\/p>\n<p style=\"text-align: left;\">server_name example2.com www.example2.com;<\/p>\n<p style=\"text-align: left;\">root\u00a0\u00a0\u00a0 \/var\/www\/html\/example2.com\/;<\/p>\n<p style=\"text-align: left;\">index index.php index.html index.htm;<\/p>\n<p style=\"text-align: left;\">#charset koi8-r;<\/p>\n<p style=\"text-align: left;\">access_log \/var\/log\/nginx\/example2.com\/example2_access_log;<\/p>\n<p style=\"text-align: left;\">error_log\u00a0 \/var\/log\/nginx\/example2.com\/example2_error_log\u00a0\u00a0 error;<\/p>\n<p style=\"text-align: left;\">location \/ {<\/p>\n<p style=\"text-align: left;\">try_files $uri $uri\/ \/index.php?$query_string;<\/p>\n<p style=\"text-align: left;\">}<\/p>\n<p style=\"text-align: left;\"># pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000<\/p>\n<p style=\"text-align: left;\">location ~ \\.php$ {<\/p>\n<p style=\"text-align: left;\">root\u00a0\u00a0\u00a0 \/var\/www\/html\/example2.com\/;<\/p>\n<p style=\"text-align: left;\">fastcgi_pass\u00a0\u00a0 127.0.0.1:9001;\u00a0\u00a0 #set port for php56-php-fpm to listen on<\/p>\n<p style=\"text-align: left;\">fastcgi_index\u00a0 index.php;<\/p>\n<p style=\"text-align: left;\">fastcgi_param\u00a0 SCRIPT_FILENAME\u00a0 $document_root$fastcgi_script_name;<\/p>\n<p style=\"text-align: left;\">include\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 fastcgi_params;<\/p>\n<p style=\"text-align: left;\">include \/etc\/nginx\/fastcgi_params;<\/p>\n<p style=\"text-align: left;\">}<\/p>\n<p style=\"text-align: left;\">}<\/p>\n<p>\u062d\u0627\u0644\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u062e\u0637\u0648\u0637 \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u0628\u062e\u0634 \u0627\u0646\u062a\u0647\u0627\u06cc\u06cc \u0628\u0644\u0648\u06a9 Http \u062f\u0631 \/etc\/nginx\/nginx.conf \u062f\u0627\u0631\u06cc\u062f.<\/p>\n<p style=\"text-align: left;\">include \/etc\/nginx\/conf.d\/*.conf;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 \u0647\u0634\u062a\u0645: \u062a\u0633\u062a \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 PHP<\/strong><\/p>\n<p>\u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0628\u0627\u06cc\u062f \u0628\u0628\u06cc\u0646\u06cc\u062f \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0627\u0632 \u062f\u0648 \u0646\u0633\u062e\u0647 \u0645\u062e\u062a\u0644\u0641 PHP \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u062f \u06cc\u0627 \u062e\u06cc\u0631. \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a info.php\u00a0\u0631\u0627 \u062f\u0631 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0631\u0648\u062a \u0633\u0627\u06cc\u062a \u062e\u0648\u062f \u0628\u0647 \u0634\u06cc\u0648\u0647 \u0632\u06cc\u0631 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\"># echo &#8220;&lt;?php phpinfo(); ?&gt;&#8221; &gt; \/var\/www\/html\/example1.com\/info.php<\/p>\n<p style=\"text-align: left;\"># echo &#8220;&lt;?php phpinfo(); ?&gt;&#8221; &gt; \/var\/www\/html\/example2.com\/info.php<\/p>\n<p>&nbsp;<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0627\u0639\u0645\u0627\u0644 \u062a\u0645\u0627\u0645\u06cc \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a\u06cc \u06a9\u0647 \u062f\u0631 \u0628\u0627\u0644\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u06cc\u062f\u060c \u0628\u0627\u06cc\u062f Nginx,\u00a0php-fpm\u00a0 \u0648 php56-php-fpm \u0631\u0627 \u0631\u06cc\u0633\u062a\u0627\u0631\u062a \u06a9\u0646\u06cc\u062f. \u0627\u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0642\u0628\u0644 \u0627\u0632 \u0627\u06cc\u0646\u06a9\u0627\u0631\u00a0 \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc Nginx \u0631\u0627 \u0628\u0631\u0627\u06cc \u062e\u0637\u0627\u0647\u0627\u06cc \u0633\u06cc\u0646\u062a\u06a9\u0633 \u0628\u0631\u0631\u0633\u06cc \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\"># nginx -t<\/p>\n<p style=\"text-align: left;\"># systemctl restart nginx php-fpm php56-php-fpm<\/p>\n<p>\u06cc\u06a9 \u06a9\u0627\u0631 \u062f\u06cc\u06af\u0631 \u0647\u0645 \u0647\u0633\u062a \u06a9\u0647 \u0628\u0627\u06cc\u062f \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f \u0628\u0647 \u062e\u0635\u0648\u0635 \u0627\u06af\u0631 \u0633\u0631\u0648\u0631 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u0645\u062d\u0644\u06cc \u0627\u062c\u0631\u0627 \u0645\u06cc \u06a9\u0646\u06cc\u062f. \u0628\u0647 \u06a9\u0645\u06a9 \u0641\u0627\u06cc\u0644 \/etc\/hosts\u00a0\u00a0 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f local DNS \u0631\u0627 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\">192.168.56.10\u00a0\u00a0 example1.com\u00a0\u00a0 example1<\/p>\n<p style=\"text-align: left;\">192.168.56.10\u00a0\u00a0 example2.com\u00a0\u00a0 example2<\/p>\n<p>&nbsp;<\/p>\n<p>\u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0645\u0631\u0648\u0631\u06af\u0631 \u062e\u0648\u062f \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f \u0648 \u0622\u062f\u0631\u0633 \u0632\u06cc\u0631 \u0631\u0627 \u062a\u0627\u06cc\u067e \u0646\u0645\u0627\u06cc\u06cc\u062f \u062a\u0627 \u0628\u062a\u0648\u0627\u0646\u06cc\u062f \u0646\u0633\u062e\u0647 \u0646\u0635\u0628 \u0634\u062f\u0647 PHP \u0628\u0631 \u0631\u0648\u06cc \u0633\u06cc\u0633\u062a\u0645 \u0631\u0627 \u062a\u0627\u06cc\u06cc\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\">http:\/\/example1.com\/index.php<\/p>\n<p style=\"text-align: left;\">http:\/\/example2.com\/index.php<\/p>\n<p>\u062e\u0648\u0628 \u06a9\u0627\u0631 \u0634\u0645\u0627 \u062a\u0645\u0627\u0645 \u0634\u062f\u0647 \u0627\u0633\u062a. \u062d\u0627\u0644\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc\u062a\u0627\u0646 \u0631\u0627 \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u06cc\u062f \u0648 \u0633\u0627\u06cc\u062a \u0647\u0627 \u0631\u0627 \u0628\u0627 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc PHP \u0645\u062e\u062a\u0644\u0641 \u062a\u0633\u062a \u0646\u0645\u0627\u06cc\u06cc\u062f.<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;2324&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 \u0627\u0645\u062a\u06cc\u0627\u0632)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;\u0686\u06af\u0648\u0646\u0647  \u0633\u0627\u06cc\u062a \u0647\u0627\u06cc\u06cc \u0645\u062a\u0639\u062f\u062f\u06cc \u0631\u0627 \u0628\u0627 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 PHP \u062f\u0631 Nginx \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u0645\u061f&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\">Rate this post<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0628\u0631\u062e\u06cc \u0627\u0632 \u0627\u0648\u0642\u0627\u062a \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u0646\u062f\u0647 \u0647\u0627\u06cc PHP \u0628\u062e\u0648\u0627\u0647\u0646\u062f\u00a0 \u0633\u0627\u06cc\u062a \u0647\u0627 \u06cc\u0627 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u0631\u0627 \u0628\u0647 \u06a9\u0645\u06a9 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc \u0645\u062a\u0641\u0627\u0648\u062a PHP \u0628\u0631 \u0631\u0648\u06cc \u0647\u0645\u0627\u0646 \u0648\u0628 \u0633\u0631\u0648\u0631 \u0628\u0633\u0627\u0632\u0646\u062f \u0648 \u0627\u062c\u0631\u0627 \u06a9\u0646\u0646\u062f. \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0627\u062f\u0645\u06cc\u0646 \u0633\u06cc\u0633\u062a\u0645 \u0647\u0627\u06cc \u0644\u06cc\u0646\u0648\u06a9\u0633\u06cc \u0628\u0627\u06cc\u062f \u0645\u062d\u06cc\u0637\u06cc \u0631\u0627 \u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u062f\u0631 \u0622\u0646 \u0642\u0627\u062f\u0631 \u0628\u0627\u0634\u06cc\u062f \u0633\u0627\u06cc\u062a \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u0631\u0627 &hellip;<\/p>\n","protected":false},"author":8,"featured_media":2325,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1374,1370,4,3],"tags":[1540,414,1797,1435,1795,1773,1796,1794],"class_list":["post-2324","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-linux","category-server-manage","category-web-articles","tag-nginx","tag-php","tag-rhel-7","tag----7","tag-----mariadb","tag-----php","tag----nginx","tag---nginx"],"views":"560","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/parry3-Bu","jetpack_featured_media_url":"https:\/\/webide.ir\/blog\/wp-content\/uploads\/2018\/01\/websites-on-different-php-version.jpg","_links":{"self":[{"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/posts\/2324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/comments?post=2324"}],"version-history":[{"count":0,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/posts\/2324\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/media\/2325"}],"wp:attachment":[{"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/media?parent=2324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/categories?post=2324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/tags?post=2324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}