{"id":201,"date":"2011-04-05T07:49:02","date_gmt":"2011-04-05T07:49:02","guid":{"rendered":"http:\/\/linuxmotto.ir\/blog\/?p=201"},"modified":"2011-04-05T07:50:53","modified_gmt":"2011-04-05T07:50:53","slug":"%d9%be%db%8c%da%a9%d8%b1%d8%a8%d9%86%d8%af%db%8c-apache2-mpm-itk","status":"publish","type":"post","link":"https:\/\/linuxmotto.io\/blog\/?p=201","title":{"rendered":"\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc apache2-mpm-itk"},"content":{"rendered":"<p>\u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0628\u062d\u062b \u0627\u062c\u0631\u0627\u06cc \u06a9\u062f\u0647\u0627\u06cc php \u0628\u0627 \u06a9\u0627\u0628\u0631\u06cc \u0628\u0647 \u063a\u06cc\u0631\u0627\u0632 \u06a9\u0627\u0631\u0628\u0631 www-data \u06a9\u0647 \u062a\u0648\u06cc \u062f\u0628\u06cc\u0627\u0646 \u06a9\u0627\u0631\u0628\u0631 \u0622\u067e\u0627\u0686\u06cc \u0627\u0633\u062a (\u062a\u0648\u06cc redhat \u06a9\u0627\u0631\u0628\u0631 apache) \u0631\u0633\u06cc\u062f\u0645 \u0628\u0647 apache2-mpm-itk . \u0639\u0644\u062a \u0627\u06cc\u0646\u06a9\u0647 \u0646\u0627\u0686\u0627\u0631 \u0634\u062f\u0645 \u0628\u0647 \u0627\u06cc\u0646 \u0628\u0633\u062a\u0647 \u0631\u0648 \u0628\u06cc\u0627\u0631\u0645 \u0627\u06cc\u0646\u0647 \u06a9\u0647 \u0647\u0631 \u06a9\u062f\u0627\u0645 \u0627\u0632 \u062f\u0648 \u0631\u0627\u0647 \u062d\u0644 \u06af\u0630\u0634\u062a\u0647 \u06a9\u0647 \u06af\u0641\u062a\u0645 (suphp\u0648 suexec) \u0645\u0634\u06a9\u0644\u0627\u062a\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u0645\u0646 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u0646\u062f \u0648 \u0645\u062d\u062f\u0648\u062f\u06cc\u062a \u0647\u0627\u06cc\u06cc \u0627\u0639\u0645\u0627\u0644 \u0634\u062f. \u062f\u0631 \u0645\u0648\u0631\u062f \u0622\u062e\u0631 \u06cc\u0639\u0646\u06cc suphp \u0645\u0634\u06a9\u0644 \u0627\u06cc\u0646\u062c\u0627 \u0628\u0648\u062f \u06a9\u0647 \u0628\u0627 zend \u06a9\u0627\u0631 \u0646\u0645\u06cc \u06a9\u0631\u062f \u0648 \u062e\u0648\u0628 \u062a\u0646\u0647\u0627 \u0627\u0646\u062a\u062e\u0627\u0628\u06cc \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0645\u0646 \u0628\u0627\u0642\u06cc \u0645\u0648\u0646\u062f\u0647 apache2-mpm-itk \u0627\u0633\u062a.<\/p>\n<p><strong>\u0628\u0633\u062a\u0647 \u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632<\/strong><\/p>\n<blockquote>\n<p style=\"text-align: left;\" dir=\"ltr\">aptitude install apache2-mpm-itk libapache2-mod-php5<\/p>\n<\/blockquote>\n<p><!--more--><\/p>\n<p><strong>\u0645\u0627\u0698\u0648\u0644 \u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632<\/strong><\/p>\n<p>\u0645\u0646 \u0645\u0627\u0698\u0648\u0644\u06cc \u0631\u0627 \u0641\u0639\u0627\u0644 \u0646\u06a9\u0631\u062f\u0645 . \u0641\u06a9\u0631 \u0646\u0645\u06cc \u06a9\u0646\u0645 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0686\u06cc\u0632 \u0627\u0636\u0627\u0641\u0647 \u062a\u0631\u06cc \u0628\u0627\u0634\u062f.<\/p>\n<p><strong>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06cc\u06a9 vhost<\/strong><\/p>\n<p>\u0628\u0627 \u062a\u0639\u0631\u06cc\u0641 \u06cc\u06a9 virtual host \u0633\u0627\u062f\u0647 \u0634\u0631\u0648\u0639 \u06a9\u0646\u06cc\u062f. \u062a\u0646\u0647\u0627 \u06af\u0632\u06cc\u0646\u0647 \u0627\u0636\u0627\u0641\u0647 \u062a\u0631 AssignUserID behrad behrad \u0627\u0633\u062a \u060c \u06a9\u0647 \u0628\u0647 \u0648\u0633\u06cc\u0644\u0647 \u0622\u0646 \u06a9\u0627\u0631\u0628\u0631\u06cc \u06a9\u0647 \u0622\u067e\u0627\u0686\u06cc \u0628\u0627 \u0645\u062c\u0648\u0632 \u0622\u0646 \u0627\u062c\u0631\u0627 \u0645\u06cc \u0634\u0648\u062f \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc \u06a9\u0646\u06cc\u062f. \u067e\u0633 \u0627\u0632 \u0622\u0646 \u0633\u0631\u0648\u06cc\u0633 \u0631\u0627 restart \u06a9\u0646\u06cc\u062f \u0648 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0627\u0646\u062c\u0627\u0645 \u0634\u062f\u0647 \u0631\u0627 \u0622\u0632\u0645\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u062f.<\/p>\n<blockquote dir=\"ltr\">\n<p dir=\"ltr\">&lt;VirtualHost *:80&gt;<\/p>\n<p>ServerAdmin webmaster@linuxmotto.local<br \/>\nServerName linuxmotto.local<br \/>\nDocumentRoot \/home\/behrad\/public_html\/<br \/>\nDirectoryIndex index.php index.html<br \/>\nErrorLog \/home\/behrad\/log\/error.log<br \/>\nCustomLog \/home\/behrad\/log\/access.log combined<\/p>\n<p>AssignUserID behrad behrad<\/p>\n<p>&lt;Directory \/home\/behrad\/public_html\/&gt;<br \/>\nOptions -Indexes FollowSymLinks -MultiViews<br \/>\nAllowOverride all<br \/>\nOrder allow,deny<br \/>\nAllow from all<br \/>\n&lt;\/Directory&gt;<\/p>\n<p dir=\"ltr\">&lt;\/VirtualHost&gt;<\/p>\n<\/blockquote>\n<p><strong>\u062a\u0633\u062a \u0635\u062d\u062a \u0639\u0645\u0644\u06a9\u0631\u062f \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0627\u0646\u062c\u0627\u0645 \u0634\u062f\u0647<\/strong><\/p>\n<p>\u06cc\u0647 \u0641\u0627\u06cc\u0644 itk.php \u062f\u0631 \u0634\u0627\u062e\u0647 public_html \u0633\u0627\u062e\u062a\u0645 \u0648 \u0645\u0642\u0627\u062f\u06cc\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631\u0648\u0646 \u0622\u0646 \u0631\u06cc\u062e\u062a\u0645 \u0648 \u062f\u0627\u062e\u0644 \u0645\u0631\u0648\u0631\u06af\u0631 http:\/\/linuxmotto.loca\/itk.php \u0631\u0627 \u0635\u062f\u0627 \u0632\u062f\u0645.<\/p>\n<blockquote>\n<p style=\"text-align: left;\" dir=\"ltr\">&lt;?php<br \/>\n$file=&#8217;\/tmp\/itk_test1&#8242;;<br \/>\ntouch($file);<br \/>\n$stat_arr=stat($file);<br \/>\necho &#8220;File is: $file, UID is: $stat_arr[4], GID is: $stat_arr[5]\\n&#8221;;<br \/>\nunlink($file);<br \/>\n?&gt;<\/p>\n<\/blockquote>\n<p style=\"text-align: right;\">\u067e\u0633 \u0627\u0632 \u0641\u0631\u0627\u062e\u0648\u0627\u0646\u06cc \u062f\u0631 \u0645\u0631\u0648\u0631\u06af\u0631 \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 uid \u0648 gid \u06a9\u0627\u0631\u0628\u0631 \u0634\u0645\u0627 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0634\u062f. \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u062f\u0631\u0633\u062a \u0627\u0633\u062a.<\/p>\n<p><strong>\u0645\u0639\u0627\u06cc\u0628<\/strong><\/p>\n<p>\u0645\u0634\u06a9\u0644 \u0627\u06cc\u0646 \u0628\u0633\u062a\u0647 \u062f\u0631 \u0627\u06cc\u062c\u0627\u062f vhost \u062f\u0631 \u062a\u0639\u062f\u0627\u062f \u0628\u0627\u0644\u0627 \u0627\u0633\u062a. \u0686\u0631\u0627 \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0647\u0631 \u06a9\u0627\u0631\u0628\u0631 \u0628\u0627\u06cc\u062f \u06af\u0632\u06cc\u0646\u0647 \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0628\u0631\u0627\u06cc \u062a\u0639\u0631\u06cc\u0641 user \u0648 group \u0627\u0636\u0627\u0641\u0647 \u0634\u0648\u062f. \u0628\u0647 \u0647\u0645\u06cc\u0646 \u0639\u0644\u062a \u0628\u0631\u0627\u06cc \u0645\u06cc\u0632\u0628\u0627\u0646 \u0647\u0627\u06cc \u0627\u0634\u062a\u0631\u0627\u06a9\u06cc \u0628\u0627 \u062a\u0639\u062f\u0627\u062f \u0633\u0627\u06cc\u062a \u0628\u0627\u0644\u0627 \u0634\u0627\u06cc\u062f \u0632\u06cc\u0627\u062f \u0645\u0646\u0627\u0633\u0628 \u0646\u0628\u0627\u0634\u062f.<\/p>\n<p><strong>\u0645\u0646\u0627\u0628\u0639<\/strong><\/p>\n<p>http:\/\/devzone.zend.com\/article\/4779<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0628\u062d\u062b \u0627\u062c\u0631\u0627\u06cc \u06a9\u062f\u0647\u0627\u06cc php \u0628\u0627 \u06a9\u0627\u0628\u0631\u06cc \u0628\u0647 \u063a\u06cc\u0631\u0627\u0632 \u06a9\u0627\u0631\u0628\u0631 www-data \u06a9\u0647 \u062a\u0648\u06cc \u062f\u0628\u06cc\u0627\u0646 \u06a9\u0627\u0631\u0628\u0631 \u0622\u067e\u0627\u0686\u06cc \u0627\u0633\u062a (\u062a\u0648\u06cc redhat \u06a9\u0627\u0631\u0628\u0631 apache) \u0631\u0633\u06cc\u062f\u0645 \u0628\u0647 apache2-mpm-itk . \u0639\u0644\u062a \u0627\u06cc\u0646\u06a9\u0647 \u0646\u0627\u0686\u0627\u0631 \u0634\u062f\u0645 \u0628\u0647 \u0627\u06cc\u0646 \u0628\u0633\u062a\u0647 \u0631\u0648 \u0628\u06cc\u0627\u0631\u0645 \u0627\u06cc\u0646\u0647 \u06a9\u0647 \u0647\u0631 \u06a9\u062f\u0627\u0645 \u0627\u0632 \u062f\u0648 \u0631\u0627\u0647 \u062d\u0644 \u06af\u0630\u0634\u062a\u0647 \u06a9\u0647 \u06af\u0641\u062a\u0645 (suphp\u0648 suexec) \u0645\u0634\u06a9\u0644\u0627\u062a\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u0645\u0646 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u0646\u062f \u0648 \u0645\u062d\u062f\u0648\u062f\u06cc\u062a \u0647\u0627\u06cc\u06cc \u0627\u0639\u0645\u0627\u0644 \u0634\u062f. \u062f\u0631 \u0645\u0648\u0631\u062f \u0622\u062e\u0631 \u06cc\u0639\u0646\u06cc suphp \u0645\u0634\u06a9\u0644 \u0627\u06cc\u0646\u062c\u0627 \u0628\u0648\u062f \u06a9\u0647 \u0628\u0627 zend \u06a9\u0627\u0631 \u0646\u0645\u06cc \u06a9\u0631\u062f \u0648 \u062e\u0648\u0628 \u062a\u0646\u0647\u0627 \u0627\u0646\u062a\u062e\u0627\u0628\u06cc \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0645\u0646 \u0628\u0627\u0642\u06cc \u0645\u0648\u0646\u062f\u0647 apache2-mpm-itk \u0627\u0633\u062a. \u0628\u0633\u062a\u0647 \u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 aptitude install apache2-mpm-itk libapache2-mod-php5<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,12],"tags":[],"class_list":["post-201","post","type-post","status-publish","format-standard","hentry","category-administration","category-debian"],"_links":{"self":[{"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/posts\/201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=201"}],"version-history":[{"count":3,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/posts\/201\/revisions"}],"predecessor-version":[{"id":204,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/posts\/201\/revisions\/204"}],"wp:attachment":[{"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}