{"id":10316,"date":"2023-12-27T23:08:05","date_gmt":"2023-12-27T19:38:05","guid":{"rendered":"https:\/\/rasanegar.com\/blog\/%d8%b1%d9%88%d8%b4-%d9%86%d8%b5%d8%a8-%d8%a2%d9%be%d8%a7%da%86%db%8c-%d8%b1%d9%88%db%8c-centos-7\/"},"modified":"2023-12-27T23:08:05","modified_gmt":"2023-12-27T19:38:05","slug":"%d8%b1%d9%88%d8%b4-%d9%86%d8%b5%d8%a8-%d8%a2%d9%be%d8%a7%da%86%db%8c-%d8%b1%d9%88%db%8c-centos-7","status":"publish","type":"post","link":"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d9%86%d8%b5%d8%a8-%d8%a2%d9%be%d8%a7%da%86%db%8c-%d8%b1%d9%88%db%8c-centos-7\/","title":{"rendered":"\u0631\u0648\u0634 \u0646\u0635\u0628 \u0622\u067e\u0627\u0686\u06cc \u0631\u0648\u06cc CentOS 7"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">\u0633\u0631\u0641\u0635\u0644\u0647\u0627\u06cc \u0645\u0637\u0644\u0628<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d9%86%d8%b5%d8%a8-%d8%a2%d9%be%d8%a7%da%86%db%8c-%d8%b1%d9%88%db%8c-centos-7\/#%d9%be%db%8c%d8%b4_%d9%86%db%8c%d8%a7%d8%b2%d9%87%d8%a7\" >\u067e\u06cc\u0634 \u0646\u06cc\u0627\u0632\u0647\u0627<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d9%86%d8%b5%d8%a8-%d8%a2%d9%be%d8%a7%da%86%db%8c-%d8%b1%d9%88%db%8c-centos-7\/#%d9%86%d8%b5%d8%a8_%d8%a2%d9%be%d8%a7%da%86%db%8c\" >\u0646\u0635\u0628 \u0622\u067e\u0627\u0686\u06cc<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d9%86%d8%b5%d8%a8-%d8%a2%d9%be%d8%a7%da%86%db%8c-%d8%b1%d9%88%db%8c-centos-7\/#%d8%aa%d9%86%d8%b8%db%8c%d9%85_%d9%81%d8%a7%db%8c%d8%b1%d9%88%d8%a7%d9%84\" >\u062a\u0646\u0638\u06cc\u0645 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d9%86%d8%b5%d8%a8-%d8%a2%d9%be%d8%a7%da%86%db%8c-%d8%b1%d9%88%db%8c-centos-7\/#%d8%aa%d8%a7%db%8c%db%8c%d8%af_%d9%86%d8%b5%d8%a8_%d8%a2%d9%be%d8%a7%da%86%db%8c\" >\u062a\u0627\u06cc\u06cc\u062f \u0646\u0635\u0628 \u0622\u067e\u0627\u0686\u06cc<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d9%86%d8%b5%d8%a8-%d8%a2%d9%be%d8%a7%da%86%db%8c-%d8%b1%d9%88%db%8c-centos-7\/#%d9%85%d8%af%db%8c%d8%b1%db%8c%d8%aa_%d8%b3%d8%b1%d9%88%db%8c%d8%b3_%d8%a2%d9%be%d8%a7%da%86%db%8c\" >\u0645\u062f\u06cc\u0631\u06cc\u062a \u0633\u0631\u0648\u06cc\u0633 \u0622\u067e\u0627\u0686\u06cc<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d9%86%d8%b5%d8%a8-%d8%a2%d9%be%d8%a7%da%86%db%8c-%d8%b1%d9%88%db%8c-centos-7\/#%d8%b3%d8%a7%d8%ae%d8%aa%d8%a7%d8%b1_%d9%81%d8%a7%db%8c%d9%84_%d9%be%db%8c%da%a9%d8%b1%d8%a8%d9%86%d8%af%db%8c_%d8%a2%d9%be%d8%a7%da%86%db%8c_%d9%88_%d8%a8%d9%87%d8%aa%d8%b1%db%8c%d9%86_%d8%b1%d9%88%d8%b4_%d9%87%d8%a7\" >\u0633\u0627\u062e\u062a\u0627\u0631 \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0622\u067e\u0627\u0686\u06cc \u0648 \u0628\u0647\u062a\u0631\u06cc\u0646 \u0631\u0648\u0634 \u0647\u0627<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/rasanegaar.com\/blog\/%d8%b1%d9%88%d8%b4-%d9%86%d8%b5%d8%a8-%d8%a2%d9%be%d8%a7%da%86%db%8c-%d8%b1%d9%88%db%8c-centos-7\/#%d9%86%d8%aa%db%8c%d8%ac%d9%87\" >\u0646\u062a\u06cc\u062c\u0647<\/a><\/li><\/ul><\/nav><\/div>\n<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> 3<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span><p> <br \/>\n<br \/><\/p>\n<div class=\"markdown\">\n<p>\u0633\u0631\u0648\u0631 HTTP \u0622\u067e\u0627\u0686\u06cc \u0645\u062d\u0628\u0648\u0628 \u062a\u0631\u06cc\u0646 \u0648\u0628 \u0633\u0631\u0648\u0631 \u062f\u0631 \u062c\u0647\u0627\u0646 \u0627\u0633\u062a.  \u0627\u06cc\u0646 \u06cc\u06a9 \u0633\u0631\u0648\u0631 HTTP \u0631\u0627\u06cc\u06af\u0627\u0646\u060c \u0645\u0646\u0628\u0639 \u0628\u0627\u0632 \u0648 \u06a9\u0631\u0627\u0633 \u067e\u0644\u062a\u0641\u0631\u0645 \u0627\u0633\u062a \u06a9\u0647 \u0648\u06cc\u0698\u06af\u06cc \u0647\u0627\u06cc \u0642\u062f\u0631\u062a\u0645\u0646\u062f\u06cc \u0631\u0627 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u062a\u0648\u0633\u0637 \u0645\u0627\u0698\u0648\u0644 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u06af\u0633\u062a\u0631\u0634 \u06cc\u0627\u0628\u062f.  \u062f\u0633\u062a\u0648\u0631\u0627\u0644\u0639\u0645\u0644 \u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0648\u0634 \u0646\u0635\u0628 \u0648 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0648\u0628 \u0633\u0631\u0648\u0631 \u0622\u067e\u0627\u0686\u06cc \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u062e\u0648\u062f \u062a\u0648\u0636\u06cc\u062d \u0645\u06cc \u062f\u0647\u062f CentOS 7 \u062f\u0633\u062a\u06af\u0627\u0647.<\/p>\n<h2 id=\"prerequisites\"><span class=\"ez-toc-section\" id=\"%d9%be%db%8c%d8%b4_%d9%86%db%8c%d8%a7%d8%b2%d9%87%d8%a7\"><\/span>\u067e\u06cc\u0634 \u0646\u06cc\u0627\u0632\u0647\u0627 <span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0642\u0628\u0644 \u0627\u0632 \u0634\u0631\u0648\u0639 \u0622\u0645\u0648\u0632\u0634\u060c \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f \u06a9\u0647 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06cc\u06a9 \u06a9\u0627\u0631\u0628\u0631 \u0628\u0627 \u0627\u0645\u062a\u06cc\u0627\u0632\u0627\u062a sudo \u0648\u0627\u0631\u062f \u0633\u06cc\u0633\u062a\u0645 \u0634\u062f\u0647 \u0627\u06cc\u062f.<\/p>\n<h2 id=\"installing-apache\"><span class=\"ez-toc-section\" id=\"%d9%86%d8%b5%d8%a8_%d8%a2%d9%be%d8%a7%da%86%db%8c\"><\/span>\u0646\u0635\u0628 \u0622\u067e\u0627\u0686\u06cc <span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0622\u067e\u0627\u0686\u06cc \u0628\u0647 \u0635\u0648\u0631\u062a \u067e\u06cc\u0634 \u0641\u0631\u0636 \u062f\u0631 \u062f\u0633\u062a\u0631\u0633 \u0627\u0633\u062a CentOS \u0645\u062e\u0627\u0632\u0646 \u0648 \u0646\u0635\u0628 \u0628\u0633\u06cc\u0627\u0631 \u0633\u0627\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<p>\u0628\u0631 CentOS \u0648 RHEL \u0628\u0633\u062a\u0647 \u0622\u067e\u0627\u0686\u06cc \u0648 \u0633\u0631\u0648\u06cc\u0633 \u0641\u0631\u0627\u062e\u0648\u0627\u0646\u06cc \u0645\u06cc \u0634\u0648\u062f <code>httpd<\/code>.  \u0628\u0631\u0627\u06cc \u0646\u0635\u0628 \u067e\u06a9\u06cc\u062c \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"terminal\"><code class=\"terminal-line\" prefix=\"$\">sudo yum install httpd<\/code><\/pre>\n<p>\u067e\u0633 \u0627\u0632 \u0627\u062a\u0645\u0627\u0645 \u0646\u0635\u0628\u060c \u0633\u0631\u0648\u06cc\u0633 Apache \u0631\u0627 \u0641\u0639\u0627\u0644 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"terminal\"><code class=\"terminal-line\" prefix=\"$\">sudo systemctl enable httpd<\/code><code class=\"terminal-line\" prefix=\"$\">sudo systemctl start httpd<\/code><\/pre>\n<h2 id=\"adjusting-the-firewall\"><span class=\"ez-toc-section\" id=\"%d8%aa%d9%86%d8%b8%db%8c%d9%85_%d9%81%d8%a7%db%8c%d8%b1%d9%88%d8%a7%d9%84\"><\/span>\u062a\u0646\u0638\u06cc\u0645 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 <span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0627\u06af\u0631 \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u062a\u0648\u0633\u0637 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0645\u062d\u0627\u0641\u0638\u062a \u0645\u06cc \u0634\u0648\u062f\u060c \u0628\u0627\u06cc\u062f \u067e\u0648\u0631\u062a \u0647\u0627\u06cc HTTP \u0648 HTTPS \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f. <code>80<\/code> \u0648 <code>443<\/code>.  \u0628\u0631\u0627\u06cc \u0628\u0627\u0632 \u06a9\u0631\u062f\u0646 \u067e\u0648\u0631\u062a \u0647\u0627\u06cc \u0644\u0627\u0632\u0645 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"terminal\"><code class=\"terminal-line\" prefix=\"$\">sudo firewall-cmd --permanent --zone=public --add-service=http<\/code><code class=\"terminal-line\" prefix=\"$\">sudo firewall-cmd --permanent --zone=public --add-service=https<\/code><code class=\"terminal-line\" prefix=\"$\">sudo firewall-cmd --reload<\/code><\/pre>\n<h2 id=\"verifying-apache-installation\"><span class=\"ez-toc-section\" id=\"%d8%aa%d8%a7%db%8c%db%8c%d8%af_%d9%86%d8%b5%d8%a8_%d8%a2%d9%be%d8%a7%da%86%db%8c\"><\/span>\u062a\u0627\u06cc\u06cc\u062f \u0646\u0635\u0628 \u0622\u067e\u0627\u0686\u06cc <span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u06a9\u0647 \u0622\u067e\u0627\u0686\u06cc \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u062e\u0648\u062f \u0646\u0635\u0628 \u0648 \u0627\u062c\u0631\u0627 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u0645 CentOS 7 \u0633\u0631\u0648\u0631 \u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u0645 \u0648\u0636\u0639\u06cc\u062a \u0648 \u0646\u0633\u062e\u0647 \u0633\u0631\u0648\u06cc\u0633 \u0622\u067e\u0627\u0686\u06cc \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u0645\u060c \u0628\u0627:<\/p>\n<pre class=\"terminal\"><code class=\"terminal-line\" prefix=\"$\">sudo systemctl status httpd<\/code><\/pre>\n<pre tabindex=\"0\"><code class=\"language-output\" data-lang=\"output\">\u25cf httpd.service - The Apache HTTP Server\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/httpd.service; enabled; vendor preset: disabled)\n   Active: active (running) since Thu 2018-04-26 07:13:07 UTC; 11s ago\n     Docs: man:httpd(8)\n           man:apachectl(8)\n Main PID: 3049 (httpd)\n...\n<\/code><\/pre>\n<pre class=\"terminal\"><code class=\"terminal-line\" prefix=\"$\">sudo httpd -v<\/code><\/pre>\n<pre tabindex=\"0\"><code class=\"language-output\" data-lang=\"output\">Server version: Apache\/2.4.6 (CentOS)\nServer built:   Oct 19 2017 20:39:16\n<\/code><\/pre>\n<p>\u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0628\u0631\u0627\u06cc \u0628\u0631\u0631\u0633\u06cc \u0627\u06cc\u0646\u06a9\u0647 \u0622\u06cc\u0627 \u0647\u0645\u0647 \u0686\u06cc\u0632 \u0628\u0647 \u062f\u0631\u0633\u062a\u06cc \u06a9\u0627\u0631 \u0645\u06cc \u06a9\u0646\u062f\u060c \u0622\u062f\u0631\u0633 IP \u0633\u0631\u0648\u0631 \u062e\u0648\u062f \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f <code>http:\/\/YOUR_IP<\/code> \u062f\u0631 \u0645\u0631\u0648\u0631\u06af\u0631 \u0627\u0646\u062a\u062e\u0627\u0628\u06cc \u062e\u0648\u062f\u060c \u0648 \u067e\u06cc\u0634 \u0641\u0631\u0636 \u0631\u0627 \u062e\u0648\u0627\u0647\u06cc\u062f \u062f\u06cc\u062f CentOS 7 \u0622\u067e\u0627\u0686\u06cc \u062e\u0648\u0634 \u0622\u0645\u062f\u06cc\u062f page \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u062f\u0631 \u0632\u06cc\u0631 \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a:<\/p>\n<h2 id=\"managing-apache-service\"><span class=\"ez-toc-section\" id=\"%d9%85%d8%af%db%8c%d8%b1%db%8c%d8%aa_%d8%b3%d8%b1%d9%88%db%8c%d8%b3_%d8%a2%d9%be%d8%a7%da%86%db%8c\"><\/span>\u0645\u062f\u06cc\u0631\u06cc\u062a \u0633\u0631\u0648\u06cc\u0633 \u0622\u067e\u0627\u0686\u06cc <span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0634\u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0633\u0631\u0648\u06cc\u0633 \u0622\u067e\u0627\u0686\u06cc \u0631\u0627 \u0645\u0627\u0646\u0646\u062f \u0647\u0631 \u0648\u0627\u062d\u062f \u0633\u06cc\u0633\u062a\u0645\u06cc \u062f\u06cc\u06af\u0631 \u0645\u062f\u06cc\u0631\u06cc\u062a \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0628\u0631\u0627\u06cc \u062a\u0648\u0642\u0641 \u0633\u0631\u0648\u06cc\u0633 \u0622\u067e\u0627\u0686\u06cc\u060c \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"terminal\"><code class=\"terminal-line\" prefix=\"$\">sudo systemctl stop httpd<\/code><\/pre>\n<p>\u0628\u0631\u0627\u06cc \u0634\u0631\u0648\u0639 \u062f\u0648\u0628\u0627\u0631\u0647\u060c \u062a\u0627\u06cc\u067e \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"terminal\"><code class=\"terminal-line\" prefix=\"$\">sudo systemctl start httpd<\/code><\/pre>\n<p>\u0628\u0631\u0627\u06cc \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u062c\u062f\u062f \u0633\u0631\u0648\u06cc\u0633 \u0622\u067e\u0627\u0686\u06cc:<\/p>\n<pre class=\"terminal\"><code class=\"terminal-line\" prefix=\"$\">sudo systemctl restart httpd<\/code><\/pre>\n<p>\u0628\u0631\u0627\u06cc \u0628\u0627\u0631\u06af\u06cc\u0631\u06cc \u0645\u062c\u062f\u062f \u0633\u0631\u0648\u06cc\u0633 \u0622\u067e\u0627\u0686\u06cc \u067e\u0633 \u0627\u0632 \u0627\u06cc\u062c\u0627\u062f \u0628\u0631\u062e\u06cc \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u062f\u0631 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc:<\/p>\n<pre class=\"terminal\"><code class=\"terminal-line\" prefix=\"$\">sudo systemctl reload httpd<\/code><\/pre>\n<p>\u0627\u06af\u0631 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u0633\u0631\u0648\u06cc\u0633 \u0622\u067e\u0627\u0686\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u0634\u0631\u0648\u0639 \u062f\u0631 \u0628\u0648\u062a \u063a\u06cc\u0631\u0641\u0639\u0627\u0644 \u06a9\u0646\u06cc\u062f:<\/p>\n<pre class=\"terminal\"><code class=\"terminal-line\" prefix=\"$\">sudo systemctl disable httpd<\/code><\/pre>\n<p>\u0648 \u0628\u0631\u0627\u06cc \u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u0646 \u0645\u062c\u062f\u062f \u0622\u0646:<\/p>\n<pre class=\"terminal\"><code class=\"terminal-line\" prefix=\"$\">sudo systemctl enable httpd<\/code><\/pre>\n<h2 id=\"apache-configuration-files-structure-and-best-practices\"><span class=\"ez-toc-section\" id=\"%d8%b3%d8%a7%d8%ae%d8%aa%d8%a7%d8%b1_%d9%81%d8%a7%db%8c%d9%84_%d9%be%db%8c%da%a9%d8%b1%d8%a8%d9%86%d8%af%db%8c_%d8%a2%d9%be%d8%a7%da%86%db%8c_%d9%88_%d8%a8%d9%87%d8%aa%d8%b1%db%8c%d9%86_%d8%b1%d9%88%d8%b4_%d9%87%d8%a7\"><\/span>\u0633\u0627\u062e\u062a\u0627\u0631 \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0622\u067e\u0627\u0686\u06cc \u0648 \u0628\u0647\u062a\u0631\u06cc\u0646 \u0631\u0648\u0634 \u0647\u0627 <span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>\u062a\u0645\u0627\u0645 \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0622\u067e\u0627\u0686\u06cc \u062f\u0631 <code>\/etc\/httpd<\/code> \u0641\u0647\u0631\u0633\u062a \u0631\u0627\u0647\u0646\u0645\u0627.<\/li>\n<li>\u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0627\u0635\u0644\u06cc \u0622\u067e\u0627\u0686\u06cc \u0627\u0633\u062a <code>\/etc\/httpd\/conf\/httpd.conf<\/code>.<\/li>\n<li>\u062a\u0645\u0627\u0645 \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u06a9\u0627\u0646\u0641\u06cc\u06af \u06a9\u0647 \u0628\u0627 <code>.conf<\/code> \u0648\u0627\u0642\u0639 \u062f\u0631 <code>\/etc\/httpd\/conf.d<\/code> \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u062f\u0631 \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0627\u0635\u0644\u06cc \u0622\u067e\u0627\u0686\u06cc \u06af\u0646\u062c\u0627\u0646\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a.<\/li>\n<li>\u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0647 \u0648\u0638\u06cc\u0641\u0647 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u0645\u0627\u0698\u0648\u0644 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u0622\u067e\u0627\u0686\u06cc \u0631\u0627 \u0628\u0631 \u0639\u0647\u062f\u0647 \u062f\u0627\u0631\u0646\u062f \u062f\u0631 \u0627\u06cc\u0646 \u0642\u0633\u0645\u062a \u0642\u0631\u0627\u0631 \u062f\u0627\u0631\u0646\u062f <code>\/etc\/httpd\/conf.modules.d<\/code> \u0641\u0647\u0631\u0633\u062a \u0631\u0627\u0647\u0646\u0645\u0627.<\/li>\n<li>\u0628\u0631\u0627\u06cc \u0646\u06af\u0647\u062f\u0627\u0631\u06cc \u0628\u0647\u062a\u0631\u060c \u062a\u0648\u0635\u06cc\u0647 \u0645\u06cc \u0634\u0648\u062f \u06cc\u06a9 \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u062c\u062f\u0627\u06af\u0627\u0646\u0647 (vhost) \u0628\u0631\u0627\u06cc \u0647\u0631 \u062f\u0627\u0645\u0646\u0647 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f.<\/li>\n<li>\u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u062c\u062f\u06cc\u062f \u0622\u067e\u0627\u0686\u06cc vhost \u0628\u0627\u06cc\u062f \u0628\u0647 \u067e\u0627\u06cc\u0627\u0646 \u0628\u0631\u0633\u062f <code>.conf<\/code> \u0648 \u062f\u0631 \u0622\u0646 \u0630\u062e\u06cc\u0631\u0647 \u0634\u0648\u062f <code>\/etc\/httpd\/conf.d<\/code> \u0641\u0647\u0631\u0633\u062a \u0631\u0627\u0647\u0646\u0645\u0627.  \u0634\u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u062a\u0639\u062f\u0627\u062f \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 vhost \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f.<\/li>\n<li>\u0627\u06cc\u062f\u0647 \u062e\u0648\u0628\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0627\u0632 \u06cc\u06a9 \u0642\u0631\u0627\u0631\u062f\u0627\u062f \u0646\u0627\u0645\u06af\u0630\u0627\u0631\u06cc \u0627\u0633\u062a\u0627\u0646\u062f\u0627\u0631\u062f \u067e\u06cc\u0631\u0648\u06cc \u06a9\u0646\u06cc\u062f\u060c \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644 \u0627\u06af\u0631 \u0646\u0627\u0645 \u062f\u0627\u0645\u0646\u0647 \u0634\u0645\u0627 \u0628\u0627\u0634\u062f <code>mydomain.com<\/code> \u0633\u067e\u0633 \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0628\u0627\u06cc\u062f \u0646\u0627\u0645\u06af\u0630\u0627\u0631\u06cc \u0634\u0648\u062f <code>\/etc\/httpd\/conf.d\/mydomain.com.conf<\/code><\/li>\n<li>\u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u0644\u0627\u06af \u0622\u067e\u0627\u0686\u06cc (<code>access_log<\/code> \u0648 <code>error_log<\/code>) \u062f\u0631 <code>\/var\/log\/httpd\/<\/code> \u0641\u0647\u0631\u0633\u062a \u0631\u0627\u0647\u0646\u0645\u0627.  \u067e\u06cc\u0634\u0646\u0647\u0627\u062f \u0645\u06cc \u0634\u0648\u062f \u0645\u062a\u0641\u0627\u0648\u062a \u0628\u0627\u0634\u062f <code>access<\/code> \u0648 <code>error<\/code> \u0641\u0627\u06cc\u0644 \u0647\u0627\u06cc \u0644\u0627\u06af \u0628\u0631\u0627\u06cc \u0647\u0631 vhost.<\/li>\n<li>\u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0631\u06cc\u0634\u0647 \u0633\u0646\u062f \u062f\u0627\u0645\u0646\u0647 \u062e\u0648\u062f \u0631\u0627 \u062f\u0631 \u0647\u0631 \u0645\u06a9\u0627\u0646\u06cc \u06a9\u0647 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0646\u06cc\u062f.  \u0645\u062a\u062f\u0627\u0648\u0644 \u062a\u0631\u06cc\u0646 \u0645\u06a9\u0627\u0646 \u0647\u0627 \u0628\u0631\u0627\u06cc webroot \u0639\u0628\u0627\u0631\u062a\u0646\u062f \u0627\u0632:\n<ul>\n<li><code>\/home\/&lt;user_name&gt;\/&lt;site_name&gt;<\/code><\/li>\n<li><code>\/var\/www\/&lt;site_name&gt;<\/code><\/li>\n<li><code>\/var\/www\/html\/&lt;site_name&gt;<\/code><\/li>\n<li><code>\/opt\/&lt;site_name&gt;<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2 id=\"conclusion\"><span class=\"ez-toc-section\" id=\"%d9%86%d8%aa%db%8c%d8%ac%d9%87\"><\/span>\u0646\u062a\u06cc\u062c\u0647 <span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0634\u0645\u0627 \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0622\u067e\u0627\u0686\u06cc \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u062e\u0648\u062f \u0646\u0635\u0628 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f CentOS 7 \u0633\u0631\u0648\u0631.  \u0627\u06a9\u0646\u0648\u0646 \u0622\u0645\u0627\u062f\u0647 \u0627\u0633\u062a\u0642\u0631\u0627\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\u06cc \u062e\u0648\u062f \u0648 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0622\u067e\u0627\u0686\u06cc \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0633\u0631\u0648\u0631 \u0648\u0628 \u06cc\u0627 \u067e\u0631\u0648\u06a9\u0633\u06cc \u0647\u0633\u062a\u06cc\u062f.<\/p>\n<p>\u0627\u06af\u0631 \u0633\u0648\u0627\u0644 \u06cc\u0627 \u0628\u0627\u0632\u062e\u0648\u0631\u062f\u06cc \u062f\u0627\u0631\u06cc\u062f\u060c \u062f\u0631 \u06a9\u0627\u0645\u0646\u062a \u0628\u06af\u0630\u0627\u0631\u06cc\u062f.<\/p>\n<div class=\"flex flex-wrap my-8\">\u0622\u067e\u0627\u0686\u06cc \u0633\u0646\u062a\u0648\u0633<\/div>\n<div class=\"p-6 my-8 bg-teal-100 markdown\">\n<p class=\"text-base\">\u0627\u06cc\u0646 \u067e\u0633\u062a \u0628\u062e\u0634\u06cc \u0627\u0632 <span class=\"font-medium\">LAMP Stack \u0631\u0627 \u0631\u0648\u0634\u0646 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f CentOS 7<\/span> \u0633\u0644\u0633\u0644\u0647.<br \/>\u0633\u0627\u06cc\u0631 \u067e\u0633\u062a \u0647\u0627\u06cc \u0627\u06cc\u0646 \u0645\u062c\u0645\u0648\u0639\u0647:<\/p>\n<div class=\"flex justify-between\">\n<div class=\"markdown text-base\"><span class=\"mr-2\">\u2022<\/span><br \/>\n\u0631\u0648\u0634 \u0646\u0635\u0628 \u0622\u067e\u0627\u0686\u06cc \u0631\u0648\u06cc CentOS 7<\/div>\n<div class=\"hidden sm:block\"><time class=\"text-sm\" datetime=\"2018-04-27T02:24:10+01:00\">27 \u0622\u0648\u0631\u06cc\u0644 2018<\/time><\/div>\n<\/div>\n<div class=\"flex justify-between\">\n<div class=\"markdown text-base\"><span class=\"mr-2\">\u2022<\/span><br \/>\nMySQL \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f CentOS 7<\/div>\n<div class=\"hidden sm:block\"><time class=\"text-sm\" datetime=\"2018-05-23T12:24:10+01:00\">23 \u0645\u0647 2018<\/time><\/div>\n<\/div>\n<div class=\"flex justify-between\">\n<div class=\"markdown text-base\"><span class=\"mr-2\">\u2022<\/span><br \/>\n\u0631\u0648\u0634 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0647\u0627\u0633\u062a \u0645\u062c\u0627\u0632\u06cc \u0622\u067e\u0627\u0686\u06cc CentOS 7<\/div>\n<div class=\"hidden sm:block\"><time class=\"text-sm\" datetime=\"2018-08-17T20:24:10+01:00\">17 \u0622\u06af\u0648\u0633\u062a 2018<\/time><\/div>\n<\/div>\n<div class=\"flex justify-between\">\n<div class=\"markdown text-base\"><span class=\"mr-2\">\u2022<\/span><br \/>\nApache \u0631\u0627 \u0628\u0627 Let&#8217;s Encrypt \u0631\u0648\u0634\u0646 \u06a9\u0646\u06cc\u062f CentOS 7<\/div>\n<div class=\"hidden sm:block\"><time class=\"text-sm\" datetime=\"2018-09-08T23:54:10+01:00\">8 \u0633\u067e\u062a\u0627\u0645\u0628\u0631 2018<\/time><\/div>\n<\/div>\n<\/div>\n<\/div>\n\n<div>\u0628\u0631\u0627\u06cc \u0646\u06af\u0627\u0631\u0634 \u0628\u062e\u0634\u0647\u0627\u06cc\u06cc \u0627\u0632 \u0627\u06cc\u0646 \u0645\u062a\u0646 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0627\u0632 \u062a\u0631\u062c\u0645\u0647 \u0645\u0627\u0634\u06cc\u0646\u06cc \u06cc\u0627 \u0647\u0648\u0634 \u0645\u0635\u0646\u0648\u0639\u06cc GPT \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u062f\u0647 \u0628\u0627\u0634\u062f <br \/>\n\u0644\u0637\u0641\u0627 \u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u062c\u0648\u062f \u0645\u0634\u06a9\u0644 \u062f\u0631 \u0645\u062a\u0646 \u06cc\u0627 \u0645\u0641\u0647\u0648\u0645 \u0646\u0628\u0648\u062f\u0646 \u062a\u0648\u0636\u06cc\u062d\u0627\u062a\u060c \u0627\u0632 \u0637\u0631\u06cc\u0642 \u062f\u06a9\u0645\u0647 \u06af\u0632\u0627\u0631\u0634 \u0646\u0648\u0634\u062a\u0627\u0631 \u06cc\u0627 \u062f\u0631\u062c \u0646\u0638\u0631 \u0631\u0648\u06cc \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628 \u0645\u0627 \u0631\u0627 \u0627\u0632 \u062c\u0632\u06cc\u06cc\u0627\u062a \u0645\u0634\u06a9\u0644 \u0645\u0634\u0627\u0647\u062f\u0647 \u0634\u062f\u0647 \u0645\u0637\u0644\u0639 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0628\u0647 \u0622\u0646 \u0631\u0633\u06cc\u062f\u06af\u06cc \u06a9\u0646\u06cc\u0645\n<\/div>\n<p>\u0632\u0645\u0627\u0646 \u0627\u0646\u062a\u0634\u0627\u0631: 1402-12-27 23:08:02<br \/>\n<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;10316&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;\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628&quot;,&quot;legend&quot;:&quot;0\\\/5 (0 \u0631\u0627\u06cc)&quot;,&quot;size&quot;:&quot;30&quot;,&quot;title&quot;:&quot;\u0631\u0648\u0634 \u0646\u0635\u0628 \u0622\u067e\u0627\u0686\u06cc \u0631\u0648\u06cc CentOS 7&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} ({count} \u0631\u0627\u06cc)&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: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/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: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-left: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 24px;\">\n            <span class=\"kksr-muted\">\u0627\u0645\u062a\u06cc\u0627\u0632 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">\u0632\u0645\u0627\u0646 \u0644\u0627\u0632\u0645 \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647: <\/span> <span class=\"rt-time\"> 3<\/span> <span class=\"rt-label rt-postfix\">\u062f\u0642\u06cc\u0642\u0647<\/span><\/span>\u0633\u0631\u0648\u0631 HTTP \u0622\u067e\u0627\u0686\u06cc \u0645\u062d\u0628\u0648\u0628 \u062a\u0631\u06cc\u0646 \u0648\u0628 \u0633\u0631\u0648\u0631 \u062f\u0631 \u062c\u0647\u0627\u0646 \u0627\u0633\u062a. \u0627\u06cc\u0646 \u06cc\u06a9 \u0633\u0631\u0648\u0631 HTTP \u0631\u0627\u06cc\u06af\u0627\u0646\u060c \u0645\u0646\u0628\u0639 \u0628\u0627\u0632 \u0648 \u06a9\u0631\u0627\u0633 \u067e\u0644\u062a\u0641\u0631\u0645 \u0627\u0633\u062a \u06a9\u0647 \u0648\u06cc\u0698\u06af\u06cc \u0647\u0627\u06cc \u0642\u062f\u0631\u062a\u0645\u0646\u062f\u06cc \u0631\u0627 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u062a\u0648\u0633\u0637 \u0645\u0627\u0698\u0648\u0644 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u06af\u0633\u062a\u0631\u0634 \u06cc\u0627\u0628\u062f. \u062f\u0633\u062a\u0648\u0631\u0627\u0644\u0639\u0645\u0644 \u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0648\u0634 \u0646\u0635\u0628 \u0648 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0648\u0628 \u0633\u0631\u0648\u0631 \u0622\u067e\u0627\u0686\u06cc \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u062e\u0648\u062f \u062a\u0648\u0636\u06cc\u062d \u0645\u06cc \u062f\u0647\u062f [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":10317,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[202,95],"tags":[2665,2638,2640,180,2536,2531,2539,2641,2532,1845],"class_list":["post-10316","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-os","category-linux","tag-apache---lets-encrypt---centos-7","tag-lamp-stack-----centos-7","tag-mysql----centos-7","tag-180","tag-2536","tag--linux","tag-2539","tag-------centos-7","tag-2532","tag-1845"],"acf":[],"_links":{"self":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/10316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/comments?post=10316"}],"version-history":[{"count":0,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/posts\/10316\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media\/10317"}],"wp:attachment":[{"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/media?parent=10316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/categories?post=10316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rasanegaar.com\/blog\/wp-json\/wp\/v2\/tags?post=10316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}