<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RedHatVN Network &#187; Directadmin</title>
	<atom:link href="http://redhatvn.net/tag/directadmin/feed" rel="self" type="application/rss+xml" />
	<link>http://redhatvn.net</link>
	<description>Shared Linux problems</description>
	<lastBuildDate>Mon, 31 Oct 2011 07:10:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>DirectAdmin change IP problems</title>
		<link>http://redhatvn.net/directadmin-change-ip-problems</link>
		<comments>http://redhatvn.net/directadmin-change-ip-problems#comments</comments>
		<pubDate>Fri, 17 Sep 2010 08:42:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1317</guid>
		<description><![CDATA[Q: I had to re-IP a server, as transferring to a new carrier. Followed the DA instructions to convert to new server IP. No errors were noted. When gone into admin found that the old IPs where still in DA and cannot delete them. Also the new server IP was not in the &#8220;IP Manager&#8221;. [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/directadmin-change-ip-problems"></g:plusone></div><p><span style="color: #ff0000;">Q:</span> I had to re-IP a server, as transferring to a new carrier. Followed the  DA instructions to convert to new server IP. No errors were noted. When  gone into admin found that the old IPs where still in DA and cannot  delete them. Also the new server IP was not in the &#8220;IP Manager&#8221;. All the  rest of the IPs were placed into the manager with the Old IPs still  visible tried again to delete without success. Tried to re-install new  server IP came up message that the old IPs were the server IP and that  it would not be installed. Any solutions to this problem? Advice would  be appreciated.</p>
<p><span style="color: #ff0000;">R: </span>If they&#8217;re out of the admin section, they&#8217;d probably still be in Reseller ip.list files.</p>
<p>Just remove them from the /usr/local/directadmin/data/users/*/user_ip.list file.</p>
<p>Where * are all of your resellers and admins.</p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/directadmin-change-ip-problems/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[HOWTO] mod_ruid2</title>
		<link>http://redhatvn.net/howto-mod_ruid2</link>
		<comments>http://redhatvn.net/howto-mod_ruid2#comments</comments>
		<pubDate>Fri, 03 Sep 2010 08:03:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1257</guid>
		<description><![CDATA[Hello everyone, Since there are alot of people asking for it, here is my HowTo about mod_ruid2 This is based on my CentOS server with Apache 2.x. Installing this module its no longer needed to chmod config files to 666 or upload/attachments directories to 777. Since with this module enabled everything @ HTTP will run [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/howto-mod_ruid2"></g:plusone></div><p>Hello everyone,</p>
<p>Since there are alot of people asking for it, here is my HowTo about mod_ruid2<br />
This is based on my CentOS server with Apache 2.x.</p>
<p><strong>Installing this module its no longer needed to chmod config files to  666 or upload/attachments directories to 777. Since with this module  enabled everything @ HTTP will run under the user itself and not  &#8216;apache&#8217; anymore.</strong><br />
<span id="more-1257"></span><br />
** If you are using mod_ruid instead of mod_ruid2, first of all remove the mod_ruid line from &#8216;<strong>/etc/httpd/conf/httpd.conf</strong>&#8216;</p>
<p>First, we are going to install <strong>libcap-devel</strong><br />
<code>yum -y install libcap-devel</code><br />
After this is done we are going to download and install mod_ruid2<br />
<code>wget <a href="http://dave.t0xic.nl/tars/mod_ruid2-0.9.tar.bz2" target="_blank">http://dave.t0xic.nl/tars/mod_ruid2-0.9.tar.bz2</a><br />
tar xjf mod_ruid2-0.9.tar.bz2<br />
cd mod_ruid2-0.9<br />
apxs -a -i -l cap -c mod_ruid2.c</code></p>
<p>Now, if you didn&#8217;t get any errors mod_ruid2 should be installed and added to the &#8216;<strong>/etc/httpd/conf/httpd.conf</strong>&#8216;.<br />
Lets confirm mod_ruid2 is added<br />
<code>grep 'mod_ruid2' /etc/httpd/conf/httpd.conf</code><br />
If you get any response like below its installed</p>
<blockquote><p>LoadModule ruid2_module       /usr/lib/apache/mod_ruid2.so</p></blockquote>
<p>Now we need to modify the DA httpd.conf templates a little bit to enable mod_ruid2 for the users</p>
<p>Now copy the template files to custom<br />
<code>cd /usr/local/directadmin/data/templates/<br />
cp virtual_host2* custom/<br />
chown -R diradmin:diradmin custom/</code></p>
<p>Now you have copied the original templates to the &#8216;custom&#8217; directory, so they won&#8217;t be overwritten.</p>
<p>Now follow the steps below for each virtual_host2 file you&#8217;ve copied<br />
<code>nano -w virtual_host2.conf</code></p>
<blockquote><p>## replace line: <strong>SuexecUserGroup |USER| |GROUP|</strong><br />
## replace with: <strong>#SuexecUserGroup |USER| |GROUP|</strong><br />
## Add the lines below under the just replaced line<br />
RMode          config<br />
RUidGid        |USER| |GROUP|<br />
RGroups        apache</p></blockquote>
<p>Save the files and lets rewrite the HTTPd config files<br />
<code>echo "action=rewrite&amp;value=httpd" &gt;&gt; /usr/local/directadmin/data/task.queue</code></p>
<p>If you want you can start the rewrite of the HTTPd config files manually, just paste the line below and wait when its done<br />
<code>/usr/local/directadmin/dataskq d800</code><br />
After the rewrite is complete you can restart HTTPd with the command below<br />
<code>/etc/init.d/httpd restart</code><br />
Now mod_ruid2 should be installed and you don&#8217;t need to chmod anymore like &#8216;chmod 666 config.php&#8217; or &#8216;chmod 777 uploads&#8217;.</p>
<p>To be sure the webmail clients etc still works we need to change the owner permissions<br />
<code>chown -R webapps:webapps /var/www/html</code></p>
<p>** Questions with Answers **<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
<strong>Q:</strong> How can I test this is working?<br />
<strong>A:</strong> Easy, install some CMS that you are used before. Like  WordPress, Joomla that required (before!!) chmod 666 or 777 to get  install/working.</p>
<p><strong>Q:</strong> I&#8217;ve dirs/files owned by apache for some users, must I change this?<br />
<strong>A:</strong> Yes, you need to give the dirs/files owner of the user itself, not apache anymore. Check below<br />
<span style="text-decoration: underline;">Thanks for snk for the commands below, to fix the owner permissions of the dirs/files</span></p>
<p><code>cd /usr/local/directadmin/scripts &amp;&amp; ./set_permissions.sh user_homes<br />
find /home/*/domains/*/public_html -type d -print0 | xargs -0 chmod 711<br />
find /home/*/domains/*/public_html -type f -print0 | xargs -0 chmod 644<br />
cd /usr/local/directadmin/data/users &amp;&amp; for i in `ls`; do { chown -R $i:$i /home/$i/domains/*/public_html;}; done;</code></p>
<p><em>* Added &#8216;&amp;&amp;&#8217; so if they do a typo, it won&#8217;t change anything.</em></p>
<p>You are missing a question, or you have a question, please let me know and I&#8217;ll try to answer them for you!</p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/howto-mod_ruid2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to extract RPM or DEB packages</title>
		<link>http://redhatvn.net/how-to-extract-rpm-or-deb-packages</link>
		<comments>http://redhatvn.net/how-to-extract-rpm-or-deb-packages#comments</comments>
		<pubDate>Thu, 22 Apr 2010 10:08:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1172</guid>
		<description><![CDATA[RPM and DEB packages are both containers for other files. An RPM is some sort of cpio archive. On the other hand, a DEB file is a pure ar archive. So, it should be possible to unpack their contents using standard archiving tools, regardless of your distribution’s package format. Under normal conditions, you should use [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/how-to-extract-rpm-or-deb-packages"></g:plusone></div><p>RPM and DEB packages are both containers for other files. An RPM is  some sort of <strong>cpio</strong> archive. On the other hand, a DEB  file is a pure <strong>ar</strong> archive. So, it should be possible to  unpack their contents using standard archiving tools, regardless of  your distribution’s package format. Under normal conditions, you should  use your distribution’s standard package manager, <strong>rpm</strong> or <strong>dpkg</strong> and their frontends, to manage those files.  But, if you need to be more generic, here is how to do it.<br />
<span id="more-1172"></span></p>
<h4>RPM</h4>
<p>For RPMs you need two command line utilities, <strong>rpm2cpio</strong> and <strong>cpio</strong>. Extracting the contents of the RPM package  is an <em>one-step</em> process:<br />
<code>rpm2cpio mypackage.rpm | cpio -vid</code><br />
If you just need to list the contents of the package without  extracting them, use the following:<br />
<code>rpm2cpio mypackage.rpm | cpio -vt</code><br />
The <strong>-v</strong> option is used in order to get verbose output  to the stdout. If you don’t need it, you can safely omit this switch.  For more information about the <code>cpio</code> options, please refer  to the <code>cpio(1)</code> manual page.</p>
<h4>DEB</h4>
<p>DEB files are <em>ar archives</em>, which contain three files:</p>
<ul>
<li>debian-binary</li>
<li>control.tar.gz</li>
<li>data.tar.gz</li>
</ul>
<p>As you might have already guessed, the needed archived files exist in  <code>data.tar.gz</code>. It is also obvious that unpacking this file  is a <em>two-step</em> process.</p>
<p>First, extract the aforementioned three files from the DEB file (<strong>ar</strong> archive):<br />
<code>tar vx mypackage.deb</code><br />
Then extract the contents of <code>data.tar.gz</code> using <strong>tar</strong>:<br />
<code>tar -xzvf data.tar.gz</code><br />
Or, if you just need to get a <em>listing</em> of the files:<br />
<code>tar -tzvf data.tar.gz</code><br />
Again the <strong>-v</strong> option in both <strong>ar</strong> and <strong>tar</strong> is used in order to get verbose output. It is safe not to use it. For  more information, read the man pages: <code>tar(1)</code> and <code>ar(1)</code>.</p>
<p><span style="text-decoration: line-through;">If anyone knows an <em>one-step process</em> to extract the  contents of the <code>data.tar.gz</code>, I’d be very interested in it!</span></p>
<p><strong>Update</strong></p>
<p><code>tar p mypackage.deb data.tar.gz | tar zx</code></p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/how-to-extract-rpm-or-deb-packages/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to Update Webalizer Stats on Directadmin</title>
		<link>http://redhatvn.net/how-to-update-webalizer-stats-on-directadmin</link>
		<comments>http://redhatvn.net/how-to-update-webalizer-stats-on-directadmin#comments</comments>
		<pubDate>Tue, 01 Jun 2010 03:56:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://redhatvn.net/how-to-update-webalizer-stats-on-directadmin</guid>
		<description><![CDATA[As you know, Webalizer stats are usually updated once a day, when using a Directadmin server. What to do, if you need more current stats? Here are some solutions (work good for me on CentOS 5). If you need to update all server accounts, just type in the following command as root: echo "action=tally&#38;value=all" &#62;&#62; [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/how-to-update-webalizer-stats-on-directadmin"></g:plusone></div><p>As you know, Webalizer stats are usually updated once a day, when  using a Directadmin server. What to do, if you need more current stats?  Here are some solutions (work good for me on CentOS 5).</p>
<p>If you need to update all server accounts, just type in the following  command as root:</p>
<p><code>echo "action=tally&amp;value=all" &gt;&gt;  /usr/local/directadmin/data/task.queue</code></p>
<p>In order to update stats for a single domain, here is another  command:</p>
<p><code>/usr/bin/webalizer -p -n |DOMAIN| -o  /home/|USER|/domains/|DOMAIN|/stats /var/log/httpd/domains/|DOMAIN|.log</code></p>
<p>Just replace |USER| with domain username and |DOMAIN| with domain  itself and have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/how-to-update-webalizer-stats-on-directadmin/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Transfer backup files from server to server in command line!</title>
		<link>http://redhatvn.net/transfer-backup-files-from-server-to-server-in-command-line</link>
		<comments>http://redhatvn.net/transfer-backup-files-from-server-to-server-in-command-line#comments</comments>
		<pubDate>Thu, 08 Apr 2010 09:33:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1157</guid>
		<description><![CDATA[i have been struggling to find some way or another to transfer my file from one linux server to another using commandline. Before this i was just using cpanel to do backups. Here is an easy way to accomplish transferring backup files from one server to another in linux. Just simple command using SCP (secure [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/transfer-backup-files-from-server-to-server-in-command-line"></g:plusone></div><p>i have been struggling to find some way or another to transfer my  file from one linux server to another using commandline. Before this i  was just using cpanel to do backups.</p>
<p>Here is an easy way to accomplish transferring backup files from one  server to another in linux. Just simple command using SCP (secure file  copy)<br />
<span id="more-1157"></span><br />
<code>scp -C -P portnumber <em>local_filename</em> root@your.ip.address:<em>destination_file</em></code></p>
<p>Example:<br />
<code>scp -C -P 2929 backups.tar.gz root@IP.ADDRESS:/home/backups/</code></p>
<p>-C is compression to speed up transfer.<br />
-r is for recursive<br />
-P is your SSH port number (default ssh port 22)<br />
[If you are running SSH other than default port you will need to specify  this]</p>
<p>NOTE:<br />
Dont forget that if you are running a firewall (CSF or APF) make sure  that your unblock port in your EG_TCP_PORT (outbound TCP port) in your  local host.</p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/transfer-backup-files-from-server-to-server-in-command-line/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
