{"id":562,"date":"2011-04-06T12:44:45","date_gmt":"2011-04-06T10:44:45","guid":{"rendered":"http:\/\/www.shukko.com\/x3\/?p=562"},"modified":"2011-04-06T12:44:45","modified_gmt":"2011-04-06T10:44:45","slug":"howto-mod_ruid2-directadmin","status":"publish","type":"post","link":"https:\/\/www.shukko.com\/x3\/2011\/04\/06\/howto-mod_ruid2-directadmin\/","title":{"rendered":"HOWTO mod_ruid2 DirectAdmin"},"content":{"rendered":"<p><code><br \/>\nmod_ruid2 kullanarak suphp cgi modundaki kasilmanin onune gecmek arzusundayim.<\/p>\n<p>yum -y install libcap-devel<br \/>\nwget http:\/\/downloads.sourceforge.net\/project\/mod-ruid\/mod_ruid2\/mod_ruid2-0.9.4.tar.bz2?r=&ts=1302083730&use_mirror=mesh<br \/>\ntar xjfv mod_ruid2-0.9.4.tar.bz2<br \/>\ncd mod_ruid2-0.9.4<br \/>\napxs -a -i -l cap -c mod_ruid2.c <\/p>\n<p>Now, if you didn't get any errors mod_ruid2 should be installed and added to the '\/etc\/httpd\/conf\/httpd.conf'.<br \/>\nLets confirm mod_ruid2 is added<br \/>\nQuote:<br \/>\ngrep 'mod_ruid2' \/etc\/httpd\/conf\/httpd.conf<br \/>\nIf you get any response like below its installed<br \/>\nQuote:<br \/>\nLoadModule ruid2_module \/usr\/lib\/apache\/mod_ruid2.so<br \/>\nNow we need to modify the DA httpd.conf templates a little bit to enable mod_ruid2 for the users<\/p>\n<p>Now copy the template files to custom<br \/>\nQuote:<br \/>\ncd \/usr\/local\/directadmin\/data\/templates\/<br \/>\ncp virtual_host2* custom\/<br \/>\nchown -R diradmin:diradmin custom\/<br \/>\nNow you have copied the original templates to the 'custom' directory, so they won't be overwritten.<\/p>\n<p>Now follow the steps below for each virtual_host2 file you've copied<br \/>\nQuote:<br \/>\nnano -w virtual_host2.conf<br \/>\n## replace line: SuexecUserGroup |USER| |GROUP|<br \/>\n## replace with: #SuexecUserGroup |USER| |GROUP|<br \/>\n## Add the lines below under the just replaced line<br \/>\nRMode config<br \/>\nRUidGid |USER| |GROUP|<br \/>\nRGroups apache<br \/>\nSave the files and lets rewrite the HTTPd config files<br \/>\nQuote:<br \/>\necho \"action=rewrite&value=httpd\" >> \/usr\/local\/directadmin\/data\/task.queue<br \/>\nIf you want you can start the rewrite of the HTTPd config files manually, just paste the line below and wait when its done<br \/>\nQuote:<br \/>\n\/usr\/local\/directadmin\/dataskq d800<br \/>\nAfter the rewrite is complete you can restart HTTPd with the command below<br \/>\nQuote:<br \/>\n\/etc\/init.d\/httpd restart<br \/>\nNow mod_ruid2 should be installed and you don't need to chmod anymore like 'chmod 666 config.php' or 'chmod 777 uploads'.<\/p>\n<p>To be sure the webmail clients etc still works we need to change the owner permissions<br \/>\nQuote:<br \/>\nchown -R webapps:webapps \/var\/www\/html<\/p>\n<p><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>mod_ruid2 kullanarak suphp cgi modundaki kasilmanin onune gecmek arzusundayim. yum -y install libcap-devel wget http:\/\/downloads.sourceforge.net\/project\/mod-ruid\/mod_ruid2\/mod_ruid2-0.9.4.tar.bz2?r=&#038;ts=1302083730&#038;use_mirror=mesh tar xjfv mod_ruid2-0.9.4.tar.bz2 cd mod_ruid2-0.9.4 apxs -a -i -l cap -c mod_ruid2.c Now, if you didn&#8217;t get any errors mod_ruid2 should be installed and added to the &#8216;\/etc\/httpd\/conf\/httpd.conf&#8217;. Lets confirm mod_ruid2 is added Quote: grep &#8216;mod_ruid2&#8217; \/etc\/httpd\/conf\/httpd.conf If you get [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-562","post","type-post","status-publish","format-standard","hentry","category-kategerisiz"],"_links":{"self":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/562","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/comments?post=562"}],"version-history":[{"count":1,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/562\/revisions"}],"predecessor-version":[{"id":563,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/562\/revisions\/563"}],"wp:attachment":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/media?parent=562"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/categories?post=562"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/tags?post=562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}