{"id":2305,"date":"2018-01-09T07:38:17","date_gmt":"2018-01-09T04:08:17","guid":{"rendered":"http:\/\/webide.ir\/blog\/?p=2305"},"modified":"2018-01-09T07:38:17","modified_gmt":"2018-01-09T04:08:17","slug":"%d9%86%d8%b5%d8%a8-%d9%86%d8%b3%d8%ae%d9%87-%d9%87%d8%a7%db%8c-%d9%85%d8%aa%d8%b9%d8%af%d8%af-php-%d8%a7%d9%88%d8%a8%d9%88%d9%86%d8%aa%d9%88","status":"publish","type":"post","link":"https:\/\/webide.ir\/blog\/%d9%86%d8%b5%d8%a8-%d9%86%d8%b3%d8%ae%d9%87-%d9%87%d8%a7%db%8c-%d9%85%d8%aa%d8%b9%d8%af%d8%af-php-%d8%a7%d9%88%d8%a8%d9%88%d9%86%d8%aa%d9%88","title":{"rendered":"\u0686\u06af\u0648\u0646\u0647 \u0628\u0631 \u0631\u0648\u06cc  \u0627\u0648\u0628\u0648\u0646\u062a\u0648 16.04 \/17.10 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc \u0645\u062a\u0639\u062f\u062f PHP \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u0645\u061f"},"content":{"rendered":"<p>\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\u062a\u0639\u062f\u062f PHP \u0628\u0631 \u0631\u0648\u06cc \u0627\u0648\u0628\u0648\u0646\u062a\u0648 16.04 \u0648 \u0627\u0628\u0648\u0646\u062a\u0648 17.10 \u0631\u0627 \u0628\u0627 \u0647\u0645 \u0645\u0631\u0648\u0631 \u06a9\u0646\u06cc\u0645. \u0627\u06cc\u0646\u06a9\u0627\u0631 \u0632\u0645\u0627\u0646\u06cc \u0645\u0641\u06cc\u062f \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f \u06a9\u0647 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0648\u0628 \u0645\u062a\u0639\u062f\u062f\u06cc \u0628\u0631 \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u0645\u062c\u0627\u0632\u06cc \u062e\u0648\u062f \u062f\u0627\u0631\u06cc\u062f \u0627\u0645\u0627 \u06cc\u06a9 \u06cc\u0627 \u062f\u0648 \u0645\u0648\u0631\u062f \u0627\u0632 \u0622\u0646 \u0647\u0627 \u0628\u0627 \u0646\u0633\u062e\u0647 PHP \u067e\u06cc\u0634 \u0641\u0631\u0636\u06cc \u06a9\u0647 \u0628\u0631 \u0631\u0648\u06cc \u0627\u0628\u0648\u0646\u062a\u0648 \u0646\u0635\u0628 \u0627\u0633\u062a \u0633\u0627\u0632\u06af\u0627\u0631 \u0646\u06cc\u0633\u062a.\u00a0 \u0645\u062e\u0632\u0646 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 16.04 \u0648 \u0627\u0628\u0648\u0646\u062a\u0648 17.10 \u062f\u0631 \u0628\u0631\u06af\u06cc\u0631\u0646\u062f\u0647\u00a0 \u00a0PHP 7.1\u0627\u0633\u062a. \u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0628\u0647 \u0634\u0645\u0627 \u0646\u0634\u0627\u0646 \u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u0627\u062f \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f PHP5.6 \u060c PHP 7.0 \u060c PHP7.1 \u00a0\u0648 PHP7.2 \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc <strong><a href=\"http:\/\/webide.ir\/vps\">\u0633\u0631\u0648\u0631 \u0645\u062c\u0627\u0632\u06cc<\/a><\/strong> \u06a9\u0647 \u0633\u06cc\u0633\u062a\u0645\u00a0 \u0639\u0627\u0645\u0644 \u0622\u0646 \u0627\u0648\u0628\u0648\u0646\u062a\u0648\u0633\u062a \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f. \u067e\u0633 \u0647\u0645\u0631\u0627\u0647 \u0648\u0628 \u0627\u06cc\u062f\u0647 \u0628\u0627\u0634\u06cc\u062f.<\/p>\n<p><!--more--><\/p>\n<h3>\u00a0\u0646\u0635\u0628 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc \u0645\u062a\u0639\u062f\u062f PHP \u0628\u0631 \u0631\u0648\u06cc \u0627\u0648\u0628\u0648\u0646\u062a\u0648 \u0627\u0632 \u0637\u0631\u06cc\u0642 PPA:<\/h3>\n<p>\u0634\u0627\u06cc\u062f \u0628\u062a\u0648\u0627\u0646 \u06af\u0641\u062a \u0631\u0627\u062d\u062a \u062a\u0631\u06cc\u0646 \u0631\u0648\u0634 \u0628\u0631\u0627\u06cc \u0646\u0635\u0628 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc \u0645\u062a\u0639\u062f\u062f PHP\u060c \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 PPA \u0627\u0633\u062a. \u0628\u0631\u0627\u06cc \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u0627\u06cc\u0646 PPA \u062f\u0631 \u062a\u0631\u0645\u06cc\u0646\u0627\u0644 \u062e\u0648\u062f \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f. \u067e\u06a9\u06cc\u062c software-properties-common \u0627\u06af\u0631 \u0628\u062e\u0648\u0627\u0647\u06cc\u062f \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631 \u0631\u0627 \u0627\u0632 PPA \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f \u0646\u06cc\u0627\u0632 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f. \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0627\u06cc\u0646 \u06af\u0632\u06cc\u0646\u0647 \u0628\u0647 \u0635\u0648\u0631\u062a \u062e\u0648\u062f\u06a9\u0627\u0631 \u0628\u0631 \u0631\u0648\u06cc\u00a0 \u062f\u0633\u06a9\u062a\u0627\u067e \u0627\u0648\u0628\u0648\u0646\u062a\u0648 \u0646\u0635\u0628 \u0634\u062f\u0647 \u0628\u0627\u0634\u062f \u0627\u0645\u0627 \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u0622\u0646 \u0631\u0627 \u0646\u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f.<\/p>\n<p style=\"text-align: left;\">sudo apt install software-properties-common<\/p>\n<p style=\"text-align: left;\">\n<p style=\"text-align: left;\">sudo add-apt-repository ppa:ondrej\/php<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: left;\">sudo apt update<\/p>\n<p>\u062e\u0648\u0628 \u062d\u0627\u0644\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f PHP7.2 \u0631\u0627 \u0628\u0627 \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0628\u0631 \u0631\u0648\u06cc \u0627\u0628\u0648\u0646\u062a\u0648\u06cc 16.04 \u0648 \u0627\u0628\u0648\u0646\u062a\u0648\u06cc 17.10 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\">sudo apt install php7.2 php7.2-fpm<\/p>\n<p>\u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0631\u062e\u06cc \u0627\u0632 \u0627\u06a9\u0633\u062a\u0646\u0634\u0646 \u0647\u0627\u06cc \u0631\u0627\u06cc\u062c PHP7.2 \u0631\u0627 \u0647\u0645 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\">sudo apt install php7.2-mysql php7.2-mbstring php7.2-xml php7.2-gd php7.2-curl<\/p>\n<p>\u0628\u0627 \u062a\u0627\u06cc\u067e sudo apt install php7.2 \u0648 \u0641\u0634\u0627\u0631 \u062f\u0627\u062f\u0646 \u00a0\u062f\u0648 \u0645\u0631\u062a\u0628\u0647 \u06cc \u062f\u06a9\u0645\u0647 TAB\u00a0 \u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u062a\u0645\u0627\u0645\u06cc \u0627\u06a9\u0633\u062a\u0646\u0634\u0646 \u0647\u0627\u06cc \u0645\u0648\u062c\u0648\u062f \u0631\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u0628\u0631\u0627\u06cc \u0646\u0635\u0628 PHP7.1 \u0628\u0631 \u0631\u0648\u06cc \u0627\u0648\u0628\u0648\u0646\u062a\u0648\u00a0 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: left;\">sudo apt install php7.1 php7.1-fpm<\/p>\n<p>\u062d\u0627\u0644\u0627 \u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0628\u0631\u062e\u06cc \u0627\u0632 \u0627\u06a9\u0633\u062a\u0646\u0634\u0646 \u0647\u0627\u06cc \u0631\u0627\u06cc\u062c PHP7.1 \u0631\u0627 \u0647\u0645 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\">sudo apt install php7.1-mysql php7.1-mbstring php7.1-xml php7.1-gd php7.1-curl<\/p>\n<p>\u0627\u06af\u0631 \u062f\u0648\u0633\u062a \u062f\u0627\u0634\u062a\u06cc\u062f \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f PHP7.0 \u0648 PHP5.6 \u0631\u0627 \u0628\u0647 \u0647\u0645\u06cc\u0646 \u0631\u0648\u0634 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f. \u0641\u0642\u0637 \u06a9\u0627\u0641\u06cc\u0633\u062a \u0646\u0633\u062e\u0647 \u0645\u062f\u0646\u0638\u0631 \u062e\u0648\u062f \u0631\u0627 \u062f\u0631 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0628\u0627\u0644\u0627 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u0646\u0645\u0627\u06cc\u06cc\u062f.<\/p>\n<h4>\u00a0\u062a\u0639\u0648\u06cc\u0636 \u0628\u06cc\u0646 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc PHP \u062f\u0631 Apache Virtual Host:<\/h4>\n<p>\u0628\u0647 \u0637\u0648\u0631 \u067e\u06cc\u0634 \u0641\u0631\u0636\u060c \u0622\u067e\u0627\u0686\u06cc \u0627\u0632 \u06cc\u06a9 \u0646\u0633\u062e\u0647 PHP \u062f\u0631 \u062a\u0645\u0627\u0645\u06cc \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a \u0647\u0627\u06cc \u062e\u0648\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u062f. \u0627\u06af\u0631 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u062f\u0631 \u06cc\u06a9 \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a \u062e\u0627\u0635 \u0627\u0632 \u0646\u0633\u062e\u0647 \u0645\u062a\u0641\u0627\u0648\u062a\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f \u0628\u0627\u06cc\u062f \u0645\u0627\u0698\u0648\u0644 Apache PHP \u0631\u0627 \u063a\u06cc\u0631 \u0641\u0639\u0627\u0644 \u06a9\u0646\u06cc\u062f \u0648 \u06a9\u062f PHP \u0631\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 PHP-FPM \u0627\u062c\u0631\u0627 \u0646\u0645\u0627\u06cc\u06cc\u062f. \u0628\u0628\u06cc\u0646\u06cc\u062f mod_php \u0646\u0635\u0628 \u0634\u062f\u0647 \u0627\u0633\u062a \u06cc\u0627 \u062e\u06cc\u0631.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: left;\">dpkg -l | grep libapache2-mod-php<\/p>\n<p>\u0627\u06af\u0631 \u0646\u0635\u0628 \u0628\u0648\u062f \u0628\u0627\u06cc\u062f \u0622\u0646 \u0631\u0627 \u063a\u06cc\u0631 \u0641\u0639\u0627\u0644 \u06a9\u0646\u06cc\u062f. \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644\u060c \u0645\u0646 \u0628\u0631 \u0631\u0648\u06cc \u0627\u0628\u0648\u0646\u062a\u0648\u06cc 17.10 \u062e\u0648\u062f libapache2-mod-php7.1 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u0646\u0635\u0628 \u0634\u062f\u0647 \u062f\u0627\u0631\u0645.<\/p>\n<p>&nbsp;<\/p>\n<p>\u0628\u0627 \u0627\u062c\u0631\u0627\u06cc \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0627\u0646 \u0631\u0627 \u063a\u06cc\u0631 \u0641\u0639\u0627\u0644 \u06a9\u0631\u062f:<\/p>\n<p style=\"text-align: left;\">sudo a2dismod php7.1<\/p>\n<p>\u0647\u0645\u0686\u0646\u06cc\u0646 \u0628\u0627\u06cc\u062f \u0645\u0627\u0698\u0648\u0644 prefork MPM \u0631\u0627 \u0646\u06cc\u0632 \u063a\u06cc\u0631 \u0641\u0639\u0627\u0644 \u06a9\u0646\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\">sudo a2dismod mpm_prefork<\/p>\n<p>\u062e\u0648\u0628 \u062d\u0627\u0644\u0627 \u0628\u0627\u06cc\u062f \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0633\u0647 \u0645\u0627\u0698\u0648\u0644 \u0631\u0627 \u0628\u0647 \u0645\u0646\u0638\u0648\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 PHP-FPM \u0641\u0639\u0627\u0644 \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\">sudo a2enmod mpm_event proxy_fcgi setenvif<\/p>\n<p>\u0628\u0647 \u062e\u0627\u0637\u0631 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0627\u0633\u0646\u06cc\u067e\u062a \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc PHP-FPM \u062f\u0631 \/etc\/apache2\/conf-available\/ \u0648\u0627\u0642\u0639 \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<p>\u0641\u0631\u0636 \u06a9\u0646\u06cc\u062f \u0628\u0631 \u0631\u0648\u06cc \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a \u0648\u0631\u062f\u067e\u0631\u0633 \u062e\u0648\u062f \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u0627\u0632 \u0646\u0633\u062e\u0647 PHP7.2 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.\u0647\u0631 \u0686\u06cc\u0632\u06cc \u0631\u0627 \u062f\u0631 php7.2-fpm.conf \u06a9\u067e\u06cc \u06a9\u0646\u06cc\u062f \u0648 \u0622\u0646 \u0631\u0627 \u062f\u0631 \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a \u0648\u0631\u062f\u067e\u0631\u0633 \u062e\u0648\u062f \u0628\u06cc\u0646 \u062a\u06af \u0647\u0627\u06cc&lt;VirtualHost&gt; \u067e\u06cc\u0633\u062a \u0646\u0645\u0627\u06cc\u06cc\u062f.<\/p>\n<p>\u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0628\u0646\u062f\u06cc\u062f. \u0622\u067e\u0627\u0686\u06cc \u0631\u0627 \u0631\u06cc\u0633\u062a\u0627\u0631\u062a \u06a9\u0646\u06cc\u062f \u062a\u0627 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \u0627\u0639\u0645\u0627\u0644 \u0634\u0648\u062f.<\/p>\n<p style=\"text-align: left;\">sudo systemctl restart apache2<\/p>\n<p>\u0641\u0631\u0636 \u06a9\u0646\u06cc\u062f \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f PHP7.1 \u0631\u0627 \u062f\u0631 \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a Mautic \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f. \u06a9\u0627\u0641\u06cc\u0633\u062a \u0647\u0631 \u0686\u06cc\u0632\u06cc \u0631\u0627 \u062f\u0631 php7.1-fpm.conf \u06a9\u067e\u06cc \u06a9\u0646\u06cc\u062f \u0648 \u0622\u0646 \u0631\u0627 \u062f\u0631 \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a Mautic \u0628\u06cc\u0646 \u062a\u06af \u0647\u0627\u06cc \u00a0&lt;VirtualHost&gt; \u067e\u06cc\u0633\u062a \u0646\u0645\u0627\u06cc\u06cc\u062f \u0648 \u0622\u067e\u0627\u0686\u06cc \u0631\u0627 \u0631\u06cc\u0633\u062a\u0627\u0631\u062a \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0647 \u0628\u0628\u06cc\u0646\u06cc\u062f \u0686\u0647 \u0646\u0633\u062e\u0647 \u0627\u06cc \u0627\u0632 PHP \u062a\u0648\u0633\u0637 \u0648\u06cc\u0631\u0686\u0648\u0627\u0644 \u0647\u0627\u0633\u062a \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u0645\u06cc \u06af\u06cc\u0631\u062f \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0641\u0627\u06cc\u0644 info.php \u0631\u0627 \u062f\u0631 document root \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\">sudo nano \/var\/www\/html\/info.php<\/p>\n<p>\u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u0641\u0627\u06cc\u0644 \u067e\u06cc\u0633\u062a \u06a9\u0646\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\">&lt;?php phpinfo(); ?&gt;<\/p>\n<p>\u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0628\u0646\u062f\u06cc\u062f. \u0633\u067e\u0633 \u062f\u0631 \u0646\u0648\u0627\u0631 \u0645\u0631\u0648\u0631\u06af\u0631\u00a0 \u0639\u0628\u0627\u0631\u062a \u0632\u06cc\u0631 \u0631\u0627 \u062a\u0627\u06cc\u067e \u06a9\u0646\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\">your-domain.com\/info.php<\/p>\n<h4>\u062a\u0639\u0648\u06cc\u0636 \u0628\u06cc\u0646 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc PHP \u062f\u0631 Nginx Server Block:<\/h4>\n<p>\u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0645\u06cc \u062f\u0627\u0646\u06cc\u062f Nginx \u06a9\u062f\u0647\u0627\u06cc PHP \u0631\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 PHP-FPM \u0627\u062c\u0631\u0627 \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u0628\u0631 \u0631\u0648\u06cc \u0633\u0648\u06a9\u062a \u06cc\u0648\u0646\u06cc\u06a9\u0633 listen \u0645\u06cc \u06a9\u0646\u062f. \u0641\u0627\u06cc\u0644 \u0633\u0648\u06a9\u062a \u062f\u0631 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc\/run\/php\/ \u0642\u0631\u0627\u0631 \u062f\u0627\u0631\u062f.<\/p>\n<p>\u0641\u0627\u06cc\u0644 Nginx server block \u0634\u0645\u0627 \u0645\u0639\u0645\u0648\u0644\u0627 \u0627\u0633\u0646\u06cc\u067e\u062a \u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0645\u062a\u0635\u0644 \u0634\u062f\u0646 \u0628\u0647 \u0633\u0631\u0648\u0631 PHP-FPM \u062f\u0627\u0631\u062f.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: left;\">location ~ \\.php$ {<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0 fastcgi_pass unix:\/run\/php\/php5.6-fpm.sock;<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0 include fastcgi_params;<\/p>\n<p style=\"text-align: left;\">\u00a0\u00a0\u00a0 include snippets\/fastcgi-php.conf;<\/p>\n<p style=\"text-align: left;\">\u00a0 }<\/p>\n<p style=\"text-align: left;\">\n<p>\u0646\u0633\u062e\u0647 PHP \u0627\u06cc \u06a9\u0647 \u062a\u0648\u0633\u0637 Nginx \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u0645\u06cc \u06af\u06cc\u0631\u062f \u062a\u0648\u0633\u0637 \u062e\u0637 \u062f\u0648\u0645 \u0627\u0633\u0646\u06cc\u067e\u062a \u0645\u0634\u062e\u0635 \u0645\u06cc \u0634\u0648\u062f. \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 PHP7.2 \u062f\u0631 Nginx server block \u062e\u0627\u0635\u060c \u0622\u0646 \u062e\u0637 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\">fastcgi_pass unix:\/run\/php\/php7.2-fpm.sock;<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 PHP7.0 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0622\u0646 \u062e\u0637 \u0631\u0627 \u0628\u062f\u06cc\u0646 \u0635\u0648\u0631\u062a \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\">fastcgi_pass unix:\/run\/php\/php7.0-fpm.sock;<\/p>\n<p>\u062e\u0648\u0628 \u062d\u0627\u0644\u0627 \u0641\u0627\u06cc\u0644 \u062e\u0648\u062f \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0628\u0646\u062f\u06cc\u062f. \u0633\u067e\u0633 Nginx \u0631\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u0628\u0627\u0631\u06af\u0632\u0627\u0631\u06cc \u06a9\u0646\u06cc\u062f \u062a\u0627 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \u0627\u0639\u0645\u0627\u0644 \u06af\u0631\u062f\u062f:<\/p>\n<p style=\"text-align: left;\">sudo systemctl reload nginx<\/p>\n<p>\u0627\u0645\u06cc\u062f\u0648\u0627\u0631\u0645 \u0627\u0632 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0644\u0630\u062a \u0628\u0631\u062f\u0647 \u0628\u0627\u0634\u06cc\u062f. \u0646\u0638\u0631\u0627\u062a \u062e\u0648\u062f \u0631\u0627 \u062f\u0631 \u0628\u062e\u0634 \u062f\u06cc\u062f\u06af\u0627\u0647 \u0647\u0627 \u0628\u0627 \u0645\u0627 \u062f\u0631 \u0645\u06cc\u0627\u0646 \u0628\u06af\u0630\u0627\u0631\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;2305&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 \u0628\u0631 \u0631\u0648\u06cc  \u0627\u0648\u0628\u0648\u0646\u062a\u0648 16.04 \\\/17.10 \u0646\u0633\u062e\u0647 \u0647\u0627\u06cc \u0645\u062a\u0639\u062f\u062f PHP \u0631\u0627 \u0646\u0635\u0628 \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>\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\u062a\u0639\u062f\u062f PHP \u0628\u0631 \u0631\u0648\u06cc \u0627\u0648\u0628\u0648\u0646\u062a\u0648 16.04 \u0648 \u0627\u0628\u0648\u0646\u062a\u0648 17.10 \u0631\u0627 \u0628\u0627 \u0647\u0645 \u0645\u0631\u0648\u0631 \u06a9\u0646\u06cc\u0645. \u0627\u06cc\u0646\u06a9\u0627\u0631 \u0632\u0645\u0627\u0646\u06cc \u0645\u0641\u06cc\u062f \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f \u06a9\u0647 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0648\u0628 \u0645\u062a\u0639\u062f\u062f\u06cc \u0628\u0631 \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u0645\u062c\u0627\u0632\u06cc \u062e\u0648\u062f \u062f\u0627\u0631\u06cc\u062f \u0627\u0645\u0627 \u06cc\u06a9 \u06cc\u0627 \u062f\u0648 \u0645\u0648\u0631\u062f \u0627\u0632 \u0622\u0646 \u0647\u0627 \u0628\u0627 \u0646\u0633\u062e\u0647 PHP \u067e\u06cc\u0634 \u0641\u0631\u0636\u06cc \u06a9\u0647 \u0628\u0631 \u0631\u0648\u06cc \u0627\u0628\u0648\u0646\u062a\u0648 &hellip;<\/p>\n","protected":false},"author":8,"featured_media":2306,"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":[1371,1634,1370,3],"tags":[414,1329,373,50,45,1773],"class_list":["post-2305","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","category-vps","category-linux","category-web-articles","tag-php","tag-1329","tag-373","tag-50","tag-45","tag-----php"],"views":"788","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/parry3-Bb","jetpack_featured_media_url":"https:\/\/webide.ir\/blog\/wp-content\/uploads\/2018\/01\/Php-Tutorials-for-beginner.jpg","_links":{"self":[{"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/posts\/2305","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=2305"}],"version-history":[{"count":0,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/posts\/2305\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/media\/2306"}],"wp:attachment":[{"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/media?parent=2305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/categories?post=2305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webide.ir\/blog\/wp-json\/wp\/v2\/tags?post=2305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}