{"id":153,"date":"2011-03-29T12:41:02","date_gmt":"2011-03-29T12:41:02","guid":{"rendered":"http:\/\/linuxmotto.ir\/blog\/?p=153"},"modified":"2011-04-05T07:38:47","modified_gmt":"2011-04-05T07:38:47","slug":"%d9%be%db%8c%da%a9%d8%b1%d8%a8%d9%86%d8%af%db%8c-suphp","status":"publish","type":"post","link":"https:\/\/linuxmotto.io\/blog\/?p=153","title":{"rendered":"\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc suPHP"},"content":{"rendered":"<p><strong>suPHP \u0686\u06cc\u0647\u061f<\/strong><\/p>\n<p>\u062e\u0648\u0628 \u062a\u0648 \u06cc\u06a9\u06cc \u0627\u0632 \u067e\u0633\u062a \u0647\u0627\u06cc \u0642\u0628\u0644\u06cc \u062f\u0631 \u0645\u0648\u0631\u062f suexec \u06af\u0641\u062a\u0645 \u0648 \u062e\u0648\u0628 \u06cc\u0647 \u0639\u06cc\u0628 \u062f\u0627\u0634\u062a \u0627\u0648\u0646\u0645 \u0645\u0634\u06a9\u0644 \u062f\u0631 http authentication \u0628\u0648\u062f. \u0628\u0631\u0627\u06cc \u0647\u0645\u06cc\u0646 \u0627\u0648\u0645\u062f\u0645 \u0633\u0631\u0627\u063a suphp. \u062e\u06cc\u0644\u06cc \u0633\u0627\u062f\u0647 \u0648 \u062e\u0648\u0628 \u06a9\u0627\u0631 \u0645\u06cc \u06a9\u0646\u0647 . \u0645\u0646 \u06a9\u0647 \u0627\u0632\u0634 \u062e\u0648\u0634\u0645 \u0627\u0648\u0645\u062f \ud83d\ude09 . \u062f\u0631 \u062a\u0639\u0631\u06cc\u0641 suphp \u0686\u06cc\u0632 \u062c\u062f\u06cc\u062f \u0646\u06cc\u0633\u062a \u0647\u0645\u0627\u0646 \u062a\u0639\u0631\u06cc\u0641 suexec \u0631\u0627 \u0645\u06cc \u06cc\u0627\u0631\u0645 .<strong><br \/>\n<\/strong><\/p>\n<p>\u06cc\u06a9\u06cc \u0627\u0632 \u0645\u0648\u0636\u0648\u0639\u0627\u062a \u0645\u0647\u0645 \u062f\u0631 \u0645\u06cc\u0632\u0628\u0627\u0646\u06cc \u0627\u0634\u062a\u0631\u0627\u06a9\u06cc (\u0627\u06cc\u0646 \u0647\u0645 \u062a\u0631\u062c\u0645\u0647 \u0627\u06cc \u0627\u0632 share  hosting \ud83d\ude09 ) \u0645\u0648\u0636\u0648\u0639 \u062f\u0633\u062a\u0631\u0633\u06cc \u067e\u0648\u0634\u0647 \u0647\u0627\u0633\u062a. \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0634\u0645\u0627 \u06cc\u06a9 \u067e\u0648\u0634\u0647 \u0628\u0631\u0627\u06cc  \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u0641\u0627\u06cc\u0644 \u062f\u0631 \u0648\u0628\u0644\u0627\u06af\u062a\u0648\u0646 \u062f\u0631 \u0646\u0638\u0631 \u06af\u0631\u0641\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u060c \u0627\u0648\u0644\u06cc\u0646 \u06a9\u0627\u0631\u06cc \u06a9\u0647 \u0628\u0647 \u0630\u0647\u0646\u062a\u0648\u0646  \u0645\u06cc \u0631\u0633\u0647 \u0627\u06cc\u0646 \u0647\u0633\u062a \u06a9\u0647 \u062f\u0633\u062a\u0631\u0633\u06cc \u0647\u0627 \u0631\u0627 \u0628\u0647 777 \u062a\u063a\u06cc\u06cc\u0631 \u0628\u062f\u06cc\u062f. \u0627\u06cc\u0646 \u0645\u0648\u0636\u0648\u0639 \u0628\u0627\u0639\u062b \u0645\u06cc \u0634\u0647  \u06a9\u0647 \u06a9\u0627\u0631\u0628\u0631\u0627\u06cc \u062f\u06cc\u06af\u0647 \u0647\u0645 \u0628\u0647 \u067e\u0648\u0634\u0647 \u0634\u0645\u0627 \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u0646\u062f \u0648 \u062e\u0648\u0628 \u0645\u0634\u06a9\u0644\u0627\u062a\u06cc \u06a9\u0647 \u0645\u0645\u06a9\u0646\u0647  \u067e\u06cc\u0634 \u0628\u06cc\u0627\u062f.<\/p>\n<p>\u0627\u0632 \u062c\u0645\u0644\u0647 \u0631\u0627\u0647 \u062d\u0644 \u0647\u0627\u06cc \u0645\u0648\u062c\u0648\u062f SuExec, suPHP , Openbasedir, apache2-mpm-itk  \u0648 \u0686\u0646\u062f \u062a\u0627\u06cc \u062f\u06cc\u06af\u0647 \u0627\u0633\u062a \u06a9\u0647 \u0627\u0644\u0627\u0646 \u0628\u0647 \u0630\u0647\u0646\u0645 \u0646\u0645\u06cc \u0631\u0633\u0647. \u0647\u0645\u0647 <!--more-->\u0627\u06cc\u0646\u0647\u0627 \u06a9\u0627\u0631\u0634\u0648\u0646 \u0628\u0631 \u0627\u0633\u0627\u0633 \u06cc\u06a9  \u0627\u0635\u0644 \u0647\u0633\u062a: \u0627\u062c\u0631\u0627\u06cc \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a\u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631 \u0628\u0627 \u0645\u062c\u0648\u0632 \u062f\u0633\u062a\u0631\u0633\u06cc \u062e\u0648\u062f \u06a9\u0627\u0631\u0628\u0631\u060c \u0646\u0647 \u06a9\u0627\u0628\u0631 \u0622\u067e\u0627\u0686\u06cc. \u06a9\u0647 \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0628\u0647 \u062a\u0648\u0636\u06cc\u062d suphp \u0645\u06cc \u067e\u0631\u062f\u0627\u0632\u06cc\u0645.<\/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 <code>apache2-mpm-worker php5-cgi <\/code>libapache2-mod-suphp<\/p>\n<\/blockquote>\n<p><strong>\u0645\u0627\u0698\u0648\u0644 \u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632<\/strong><\/p>\n<p>\u0628\u0631\u0627\u06cc \u0634\u0631\u0648\u0639 \u0627\u0632 \u063a\u06cc\u0631 \u0641\u0639\u0627\u0644 \u0628\u0648\u062f\u0646 \u0645\u0627\u0698\u0648\u0644 \u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0628\u0627 suphp \u062a\u062f\u0627\u062e\u0644 \u062f\u0627\u0631\u0646\u062f \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f<\/p>\n<blockquote>\n<p dir=\"ltr\">a2dismod suexec php5 actions<\/p>\n<\/blockquote>\n<p>\u0648 \u0628\u0639\u062f \u0645\u0627\u0698\u0648\u0644 suphp \u0631\u0627 \u0641\u0639\u0627\u0644 \u06a9\u0646\u06cc\u062f<\/p>\n<blockquote>\n<p dir=\"ltr\">a2enmod suphp<\/p>\n<\/blockquote>\n<p>\u0628\u0631\u0627\u06cc \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u0627\u0632 \u0627\u0639\u0645\u0627\u0644 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u0622\u067e\u0627\u0686\u06cc \u0631\u0627 \u0645\u062c\u062f\u062f\u0627 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f<\/p>\n<blockquote>\n<p dir=\"ltr\">\/etc\/init.d\/apache2 restart<\/p>\n<\/blockquote>\n<p><strong>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06cc\u06a9 virtual host<\/strong><\/p>\n<p>\u0646\u06cc\u0627\u0632 \u0628\u0647 \u062a\u063a\u06cc\u06cc\u0631 \u062e\u0648\u0627\u0633\u062a\u06cc \u0646\u06cc\u0633\u062a\u06cc\u062f. \u0628\u0627 \u062a\u0639\u0631\u06cc\u0641 \u06cc\u06a9 virtual host \u0633\u0627\u062f\u0647 \u06a9\u0644 \u06a9\u0627\u0631 \u062d\u0644\u0647. \u062f\u0631 \u062d\u0642\u06cc\u0642\u062a \u0646\u06cc\u0627\u0632\u06cc \u0628\u0647 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u062e\u0627\u0635\u06cc \u0646\u062f\u0627\u0631\u06cc\u062f. \u0628\u0627 \u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u0646 \u0645\u0627\u0698\u0648\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0647\u0627 \u0627\u0639\u0645\u0627\u0644 \u0645\u06cc \u0634\u0647. \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0645\u0646\u0647:<\/p>\n<blockquote dir=\"ltr\">\n<p style=\"text-align: left;\" dir=\"ltr\">&lt;VirtualHost *:80&gt;<\/p>\n<p style=\"text-align: left;\">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 style=\"text-align: left;\">&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 style=\"text-align: left;\" 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>\u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0645\u0646\u0638\u0648\u0631 \u06a9\u0627\u0641\u06cc\u0647 \u0641\u0627\u06cc\u0644 var\/log\/suphp\/suphp.log\/ \u0631\u0627 \u0628\u0627 tail \u0632\u06cc\u0631 \u0646\u0638\u0631 \u0628\u06af\u06cc\u0631\u06cc\u062f. \u062e\u0648\u0628 \u0628\u0647\u062a\u0648\u0646 \u0646\u0634\u0648\u0646 \u0645\u06cc \u062f\u0647 \u06a9\u0647 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0647\u0627 \u0628\u0627 \u0686\u0647 uid \u0627\u062c\u0631\u0627 \u0645\u06cc\u0634\u0647. \u062f\u0631 \u0636\u0645\u0646 \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0645\u0634\u06a9\u0644 \u062f\u0627\u0634\u062a\u06cc\u062f \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc etc\/suphp\/suphp.conf\/ \u0631\u0627 \u0628\u0628\u06cc\u0646\u06cc\u062f. \u0645\u0646 \u0646\u06cc\u0627\u0632\u06cc \u0628\u0647 \u062a\u063a\u06cc\u06cc\u0631 \u067e\u06cc\u062f\u0627 \u0646\u06a9\u0631\u062f\u0645 \u0648\u0644\u06cc \u0627\u06af\u0647 \u0645\u0634\u06a9\u0644 \u062f\u0627\u0634\u062a\u06cc\u062f \u0628\u0647\u0634 \u06cc\u0647 \u0646\u06af\u0627\u0647\u06cc \u0628\u0646\u062f\u0627\u0632\u06cc\u062f. \u062f\u0631 \u0639\u06cc\u0646 \u062d\u0627\u0644 \u0628\u0627 \u062f\u06cc\u062f\u0646 \u0641\u0627\u06cc\u0644 \u06a9\u0627\u0646\u0641\u06cc\u06af \u0645\u06cc \u0641\u0647\u0645\u06cc\u062f \u062f\u0627\u0631\u0647 \u0628\u0631 \u0686\u0647 \u0627\u0633\u0627\u0633\u06cc \u06a9\u0627\u0631 \u0645\u06cc \u06a9\u0646\u0647.<strong><br \/>\n<\/strong><\/p>\n<p><strong>\u0645\u0639\u0627\u06cc\u0628<\/strong><\/p>\n<p>\u0645\u0634\u06a9\u0644\u06cc \u0628\u0627 \u0647\u0627\u0634 \u062f\u0627\u0634\u062a\u0645 \u0627\u06cc\u0646 \u0628\u0648\u062f \u06a9\u0647 \u0646\u062a\u0648\u0646\u0633\u062a\u0645 \u0628\u0627 zend \u0646\u0635\u0628\u0634 \u06a9\u0646\u0645.<\/p>\n<p><strong>\u0646\u06a9\u062a\u0647: <\/strong>\u0628\u0627 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc suphp \u062f\u06cc\u06af\u0647 \u067e\u0627\u0631\u0627\u0645\u062a\u0631\u0647\u0627\u06cc php \u0645\u0627\u0646\u0646\u062f php_flag \u0648 php_value \u062f\u0631 \u0641\u0627\u06cc\u0644 htaccess. \u062e\u0648\u0627\u0646\u062f\u0647 \u0646\u0645\u06cc \u0634\u0647 \u0648 \u0634\u0645\u0627 \u0628\u0627\u06cc\u062f \u06cc\u06a9 \u0641\u0627\u06cc\u0644 php.ini \u0628\u0633\u0627\u0632\u06cc\u062f \u0648 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u0645\u0648\u0631\u062f \u0646\u0638\u0631\u062a\u0648\u0646 \u0631\u0627 \u0627\u0648\u0646\u062c\u0627 \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f.<strong><br \/>\n<\/strong><\/p>\n<p><strong>\u0645\u0646\u0627\u0628\u0639<\/strong><\/p>\n<p>http:\/\/blog.stuartherbert.com\/php\/2008\/01\/18\/using-suphp-to-secure-a-shared-server\/<\/p>\n<p>http:\/\/forums.debian.net\/viewtopic.php?f=16&#038;t=50780<\/p>\n","protected":false},"excerpt":{"rendered":"<p>suPHP \u0686\u06cc\u0647\u061f \u062e\u0648\u0628 \u062a\u0648 \u06cc\u06a9\u06cc \u0627\u0632 \u067e\u0633\u062a \u0647\u0627\u06cc \u0642\u0628\u0644\u06cc \u062f\u0631 \u0645\u0648\u0631\u062f suexec \u06af\u0641\u062a\u0645 \u0648 \u062e\u0648\u0628 \u06cc\u0647 \u0639\u06cc\u0628 \u062f\u0627\u0634\u062a \u0627\u0648\u0646\u0645 \u0645\u0634\u06a9\u0644 \u062f\u0631 http authentication \u0628\u0648\u062f. \u0628\u0631\u0627\u06cc \u0647\u0645\u06cc\u0646 \u0627\u0648\u0645\u062f\u0645 \u0633\u0631\u0627\u063a suphp. \u062e\u06cc\u0644\u06cc \u0633\u0627\u062f\u0647 \u0648 \u062e\u0648\u0628 \u06a9\u0627\u0631 \u0645\u06cc \u06a9\u0646\u0647 . \u0645\u0646 \u06a9\u0647 \u0627\u0632\u0634 \u062e\u0648\u0634\u0645 \u0627\u0648\u0645\u062f \ud83d\ude09 . \u062f\u0631 \u062a\u0639\u0631\u06cc\u0641 suphp \u0686\u06cc\u0632 \u062c\u062f\u06cc\u062f \u0646\u06cc\u0633\u062a \u0647\u0645\u0627\u0646 \u062a\u0639\u0631\u06cc\u0641 suexec \u0631\u0627 \u0645\u06cc \u06cc\u0627\u0631\u0645 . \u06cc\u06a9\u06cc \u0627\u0632 \u0645\u0648\u0636\u0648\u0639\u0627\u062a \u0645\u0647\u0645 \u062f\u0631 \u0645\u06cc\u0632\u0628\u0627\u0646\u06cc \u0627\u0634\u062a\u0631\u0627\u06a9\u06cc (\u0627\u06cc\u0646 \u0647\u0645 \u062a\u0631\u062c\u0645\u0647 \u0627\u06cc \u0627\u0632 share hosting \ud83d\ude09 ) \u0645\u0648\u0636\u0648\u0639 \u062f\u0633\u062a\u0631\u0633\u06cc \u067e\u0648\u0634\u0647 \u0647\u0627\u0633\u062a. \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0634\u0645\u0627 \u06cc\u06a9 \u067e\u0648\u0634\u0647 \u0628\u0631\u0627\u06cc \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u0641\u0627\u06cc\u0644 \u062f\u0631 \u0648\u0628\u0644\u0627\u06af\u062a\u0648\u0646 \u062f\u0631 \u0646\u0638\u0631 \u06af\u0631\u0641\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u060c \u0627\u0648\u0644\u06cc\u0646 \u06a9\u0627\u0631\u06cc \u06a9\u0647 \u0628\u0647 \u0630\u0647\u0646\u062a\u0648\u0646 \u0645\u06cc \u0631\u0633\u0647 \u0627\u06cc\u0646 \u0647\u0633\u062a \u06a9\u0647 \u062f\u0633\u062a\u0631\u0633\u06cc \u0647\u0627 \u0631\u0627 \u0628\u0647 777 \u062a\u063a\u06cc\u06cc\u0631 \u0628\u062f\u06cc\u062f. [&hellip;]<\/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-153","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\/153","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=153"}],"version-history":[{"count":19,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/posts\/153\/revisions"}],"predecessor-version":[{"id":202,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=\/wp\/v2\/posts\/153\/revisions\/202"}],"wp:attachment":[{"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxmotto.io\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}