<?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>Tech Stuff &#187; Cpanel</title>
	<atom:link href="http://tech-stuff.org/category/uncategorized/hosting/cpanel-hosting/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech-stuff.org</link>
	<description>Hosting Tips &#38; Tricks</description>
	<lastBuildDate>Mon, 14 Dec 2009 16:33:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Apache did not start</title>
		<link>http://tech-stuff.org/apache-did-not-start/</link>
		<comments>http://tech-stuff.org/apache-did-not-start/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 12:49:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://tech-stuff.org/?p=134</guid>
		<description><![CDATA[Error log contains:
[emerg] (28)No space left on device: Couldn&#8217;t create accept                        lock
or
[crit] (28)No space left on device: mod_rewrite: could not             [...]]]></description>
			<content:encoded><![CDATA[<p>Error log contains:</p>
<p>[emerg] (28)No space left on device: Couldn&#8217;t create accept                        lock<br />
or<br />
[crit] (28)No space left on device: mod_rewrite: could not                        create rewrite_log_lock Configuration Failed<br />
Checking your disk shows that you have plenty of space.                        The problem is that apache didn&#8217;t shut down properly, and                        it&#8217;s left myriads of semaphore-arrays left, owned by my                        apache-user. Run:-</p>
<p>For CPanel :</p>
<p>ipcs -s | grep nobody<br />
Removing these semaphores immediately should solve the problem                        and allow apache to start.<br />
ipcs -s | grep nobody | perl                        -e &#8216;while (&lt;STDIN&gt;) { @a=split(/\s+/); print `ipcrm                        sem $a[1]`}&#8217;</p>
<p>For Plesk :</p>
<p>ipcs -s | grep apache<br />
Removing these semaphores immediately should solve the problem                        and allow apache to start.<br />
ipcs -s | grep apache | perl -e &#8216;while (&lt;STDIN&gt;) { @a=split(/\s+/); print `ipcrm sem $a[1]`}&#8217;</p>
]]></content:encoded>
			<wfw:commentRss>http://tech-stuff.org/apache-did-not-start/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Send Email from a PHP Script Using SMTP Authentication</title>
		<link>http://tech-stuff.org/how-to-send-email-from-a-php-script-using-smtp-authentication/</link>
		<comments>http://tech-stuff.org/how-to-send-email-from-a-php-script-using-smtp-authentication/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 15:22:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[auth]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://tech-stuff.org/?p=112</guid>
		<description><![CDATA[PHP mail() and SMTP Authentication
Part of what makes the PHP mail() function is so simple is its lack of flexibility. Most importantly and frustratingly, the stock mail() does not usually allow you to use the SMTP server of your choice, and it does not support SMTP authentication, required by many a mail server today, at [...]]]></description>
			<content:encoded><![CDATA[<h3>PHP mail() and SMTP Authentication</h3>
<p>Part of what makes the PHP <em>mail()</em> function is so simple is its lack of flexibility. Most importantly and frustratingly, the stock <em>mail()</em> does not usually allow you to use the SMTP server of your choice, and it does not support SMTP authentication, required by many a mail server today, at all.</p>
<p>Fortunately, overcoming PHP&#8217;s built-in shortcomings need not be difficult, complicated or painful either. For most email uses, the free PEAR Mail package offers all the power and flexibility needed, and it authenticates with your desired outgoing mail server, too. For enhanced security, secure SSL connections are supported.</p>
<h3>Send Email from a PHP Script Using SMTP Authentication</h3>
<p>To connect to an outgoing SMTP server from a PHP script using SMTP authentication and send an email:</p>
<ul>
<li>Make sure the <a onclick="zT(this, '1/XJ')" href="http://pear.php.net/package/Mail">PEAR Mail package</a> is installed.
<ul>
<li>Typically, in particular with PHP 4 or later, this will have already been done for you. Just give it a try.</li>
</ul>
</li>
<li>Adapt the example below for your needs. Make sure you change the following variables at least:
<ul>
<li><em>from</em>: the email address from which you want the message to be sent.</li>
<li><em>to</em>: the recipient&#8217;s email address and name.</li>
<li><em>host</em>: your outgoing SMTP server name.</li>
<li><em>username</em>: the SMTP user name (typically the same as the user name used to retrieve mail).</li>
<li><em>password</em>: the password for SMTP authentication.</li>
</ul>
</li>
</ul>
<h3>Sending Mail from PHP Using SMTP Authentication &#8211; Example</h3>
<blockquote><p>&lt;?php<br />
require_once &#8220;Mail.php&#8221;;</p>
<p>$from = &#8220;Sandra Sender &lt;sender@example.com&gt;&#8221;;<br />
$to = &#8220;Ramona Recipient &lt;recipient@example.com&gt;&#8221;;<br />
$subject = &#8220;Hi!&#8221;;<br />
$body = &#8220;Hi,\n\nHow are you?&#8221;;</p>
<p>$host = &#8220;mail.example.com&#8221;;<br />
$username = &#8220;smtp_username&#8221;;<br />
$password = &#8220;smtp_password&#8221;;</p>
<p>$headers = array (&#8216;From&#8217; =&gt; $from,<br />
&#8216;To&#8217; =&gt; $to,<br />
&#8216;Subject&#8217; =&gt; $subject);<br />
$smtp = Mail::factory(&#8217;smtp&#8217;,<br />
array (&#8216;host&#8217; =&gt; $host,<br />
&#8216;auth&#8217; =&gt; true,<br />
&#8216;username&#8217; =&gt; $username,<br />
&#8216;password&#8217; =&gt; $password));</p>
<p>$mail = $smtp-&gt;send($to, $headers, $body);</p>
<p>if (PEAR::isError($mail)) {<br />
echo(&#8220;&lt;p&gt;&#8221; . $mail-&gt;getMessage() . &#8220;&lt;/p&gt;&#8221;);<br />
} else {<br />
echo(&#8220;&lt;p&gt;Message successfully sent!&lt;/p&gt;&#8221;);<br />
}<br />
?&gt;</p></blockquote>
<h3>Sending Mail from PHP Using SMTP Authentication and SSL Encryption &#8211; Example</h3>
<blockquote><p>&lt;?php<br />
require_once &#8220;Mail.php&#8221;;</p>
<p>$from = &#8220;Sandra Sender &lt;sender@example.com&gt;&#8221;;<br />
$to = &#8220;Ramona Recipient &lt;recipient@example.com&gt;&#8221;;<br />
$subject = &#8220;Hi!&#8221;;<br />
$body = &#8220;Hi,\n\nHow are you?&#8221;;</p>
<p>$host = &#8220;ssl://mail.example.com&#8221;;<br />
$port = &#8220;465&#8243;;<br />
$username = &#8220;smtp_username&#8221;;<br />
$password = &#8220;smtp_password&#8221;;</p>
<p>$headers = array (&#8216;From&#8217; =&gt; $from,<br />
&#8216;To&#8217; =&gt; $to,<br />
&#8216;Subject&#8217; =&gt; $subject);<br />
$smtp = Mail::factory(&#8217;smtp&#8217;,<br />
array (&#8216;host&#8217; =&gt; $host,<br />
&#8216;port&#8217; =&gt; $port,<br />
&#8216;auth&#8217; =&gt; true,<br />
&#8216;username&#8217; =&gt; $username,<br />
&#8216;password&#8217; =&gt; $password));</p>
<p>$mail = $smtp-&gt;send($to, $headers, $body);</p>
<p>if (PEAR::isError($mail)) {<br />
echo(&#8220;&lt;p&gt;&#8221; . $mail-&gt;getMessage() . &#8220;&lt;/p&gt;&#8221;);<br />
} else {<br />
echo(&#8220;&lt;p&gt;Message successfully sent!&lt;/p&gt;&#8221;);<br />
}<br />
?&gt;</p></blockquote>
<blockquote></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://tech-stuff.org/how-to-send-email-from-a-php-script-using-smtp-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deleting nouser Files – cleanup after cPanel</title>
		<link>http://tech-stuff.org/deleting-nouser-files-%e2%80%93-cleanup-after-cpanel/</link>
		<comments>http://tech-stuff.org/deleting-nouser-files-%e2%80%93-cleanup-after-cpanel/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 21:58:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[files cleanup]]></category>
		<category><![CDATA[users]]></category>

		<guid isPermaLink="false">http://tech-stuff.org/?p=94</guid>
		<description><![CDATA[

Not many CPANEL server admin knows that when they delete user account, there are some of those user files that still left on the server. Because user has been deleted, so the files will be owned by nouser.
This can be a problem when your server is highly cycled (you add and delete users very frequently) [...]]]></description>
			<content:encoded><![CDATA[<div>
<div>
<p>Not many CPANEL server admin knows that when they delete user account, there are some of those user files that still left on the server. Because user has been deleted, so the files will be owned by nouser.</p>
<p>This can be a problem when your server is highly cycled (you add and delete users very frequently) because you can hit the system user limit. This means you cant create no more user on your system. Deleting user to add another one wont work.</p>
<p><strong>Solution :</strong></p>
<p>You have to remove all files that owned by no user. Usualy they placed on these directories :</p>
<ul>
<li>/home</li>
<li>/usr/local/apache/conf/sites</li>
<li>/usr/local/frontpage</li>
<li>/usr/local/apache/domlogs</li>
<li>/var/cpanel/bandwidth</li>
<li>/etc/vdomainaliases</li>
<li>/var/cpanel/users.cache/</li>
<li>/var/cpanel/bwusagecache/</li>
<li>/var/spool/cron.suspended/</li>
</ul>
<p>To find these files is quite easy. Just lunch :</p>
<p>find /usr/local/apache/conf/sites/  \( -nouser -or -nogroup \) -exec rm -f {} \;</p>
<p>find /usr/local/frontpage/ \( -nouser -or -nogroup \) -exec rm -f {} \;</p>
<p>find /usr/local/apache/domlogs/ \( -nouser -or -nogroup \) -exec rm -f {} \;</p>
<p>find /var/cpanel/bandwidth/ \( -nouser -or -nogroup \) -exec rm -f {} \;</p>
<p>find /etc/vdomainaliases/ \( -nouser -or -nogroup \) -exec rm -f {} \;</p>
<p>find /var/cpanel/bwusagecache/ \( -nouser -or -nogroup \) -exec rm -f {} \;</p>
<p>find /var/cpanel/users.cache/ \( -nouser -or -nogroup \) -exec rm -f {} \;</p>
<p>find /var/cpanel/bandwidth.cache/ \( -nouser -or -nogroup \) -exec rm -f {} \;</p>
<p><strong>Note :</strong><strong> </strong></p>
<p><strong>-exec rm -f {} \; </strong>meaning you execute rm -f to those files. You may change it for example : <strong>-exec chown root:root </strong><strong>{} \;</strong></p>
<p><strong><br />
</strong></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://tech-stuff.org/deleting-nouser-files-%e2%80%93-cleanup-after-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to configure Exim on a cPanel server to use a smart host</title>
		<link>http://tech-stuff.org/how-to-configure-exim-on-a-cpanel-server-to-use-a-smart-host/</link>
		<comments>http://tech-stuff.org/how-to-configure-exim-on-a-cpanel-server-to-use-a-smart-host/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 19:55:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[smarthost]]></category>

		<guid isPermaLink="false">http://tech-stuff.org/?p=71</guid>
		<description><![CDATA[A Smart Host is a SMTP server that will accept mail from another server and then deliver the mail for that server.  For example, server1 is setup to use server2 as a smart host. Anytime someone sends e-mail on server1 it is automatically relayed to server2 regardless of the MX entrys for the domain. Server2 then accepts [...]]]></description>
			<content:encoded><![CDATA[<p><span class="mediumtext">A Smart Host is a SMTP server that will accept mail from another server and then deliver the mail for that server.  For example, server1 is setup to use server2 as a smart host. Anytime someone sends e-mail on server1 it is automatically relayed to server2 regardless of the MX entrys for the domain. Server2 then accepts this message, looks up the proper delivery host/IP and attempts to deliver the message to that host.</p>
<p>To configure a smart host, create /etc/exim.conf.local and add the following lines. Be sure to change to the hostname or ip of the smart host server:</p>
<p><em> @ROUTERSTART@<br />
smart_route:<br />
driver = manualroute<br />
domains = !+local_domains<br />
transport = remote_smtp<br />
route_list = * host.name.of.smart.host.server</em></p>
<p>Next run <em>/scripts/buildeximconf</em></p>
<p>Then run<em> /scripts/restartsrv_exim</em></p>
<p>Thats it, watch the logs for a bit to make sure it&#8217;s working!</p>
<p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://tech-stuff.org/how-to-configure-exim-on-a-cpanel-server-to-use-a-smart-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>upgrade clamav on cpanel( WARNING: ClamAV &#8230;. is OUTDATED )</title>
		<link>http://tech-stuff.org/upgrade-clamav-on-cpanel-warning-clamav-is-outdated/</link>
		<comments>http://tech-stuff.org/upgrade-clamav-on-cpanel-warning-clamav-is-outdated/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 19:20:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[clamav]]></category>

		<guid isPermaLink="false">http://tech-stuff.org/?p=68</guid>
		<description><![CDATA[First, download the latest version from Sourceforge:


Code:
wget http://downloads.sourceforge.net/clamav/clamav-0.95.1.tar.gz

Extract it and move into that directory:


Code:
tar -xzf clamav-*
cd clamav*

Compile:


Code:
./configure --prefix=/usr
make
make install

Comment out examples in the config files:


Code:
replace "Example" "#Example" -- /usr/etc/freshclam.conf
replace "Example" "#Example" -- /usr/etc/clamd.conf

Get the new virus definitions:


Code:
freshclam

Then just make sure you have the latest version of the ClamAV scanner if you&#8217;re using it (this can [...]]]></description>
			<content:encoded><![CDATA[<p><strong></strong>First, download the latest version from Sourceforge:</p>
<p><!-- BEGIN TEMPLATE: bbcode_code --></p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<pre class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;" dir="ltr">wget http://downloads.sourceforge.net/clamav/clamav-0.95.1.tar.gz</pre>
</div>
<p><!-- END TEMPLATE: bbcode_code -->Extract it and move into that directory:</p>
<p><!-- BEGIN TEMPLATE: bbcode_code --></p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<pre class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 50px; text-align: left;" dir="ltr">tar -xzf clamav-*
cd clamav*</pre>
</div>
<p><!-- END TEMPLATE: bbcode_code -->Compile:</p>
<p><!-- BEGIN TEMPLATE: bbcode_code --></p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<pre class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 66px; text-align: left;" dir="ltr">./configure --prefix=/usr
make
make install</pre>
</div>
<p><!-- END TEMPLATE: bbcode_code -->Comment out examples in the config files:</p>
<p><!-- BEGIN TEMPLATE: bbcode_code --></p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<pre class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 50px; text-align: left;" dir="ltr">replace "Example" "#Example" -- /usr/etc/freshclam.conf
replace "Example" "#Example" -- /usr/etc/clamd.conf</pre>
</div>
<p><!-- END TEMPLATE: bbcode_code -->Get the new virus definitions:</p>
<p><!-- BEGIN TEMPLATE: bbcode_code --></p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<pre class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px; text-align: left;" dir="ltr">freshclam</pre>
</div>
<p><!-- END TEMPLATE: bbcode_code -->Then just make sure you have the latest version of the ClamAV scanner if you&#8217;re using it (this can be done from the &#8220;Manage Plugins&#8221; screen in the cPanel section of WHM).</p>
]]></content:encoded>
			<wfw:commentRss>http://tech-stuff.org/upgrade-clamav-on-cpanel-warning-clamav-is-outdated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to identify high load apache processes</title>
		<link>http://tech-stuff.org/how-to-identify-high-load-apache-processes/</link>
		<comments>http://tech-stuff.org/how-to-identify-high-load-apache-processes/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 14:32:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://tech-stuff.org/?p=59</guid>
		<description><![CDATA[just paste to shell (cpanel server):
ps -axo &#8220;%C %p&#8221; &#124;sort -nr &#124;head -5 &#124;while read i p; do echo -n $i; /usr/local/apache/bin/apachectl fullstatus &#124;grep -A 1 $p; done
there is also a python script for that : apache-top.py . you can donwload it from: http://www.fr3nd.net/projects/apache-top/. it&#8217;s a nice tool but still need some customization.
]]></description>
			<content:encoded><![CDATA[<p>just paste to shell (cpanel server):</p>
<p>ps -axo &#8220;%C %p&#8221; |sort -nr |head -5 |while read i p; do echo -n $i; /usr/local/apache/bin/apachectl fullstatus |grep -A 1 $p; done</p>
<p>there is also a python script for that : apache-top.py . you can donwload it from: http://www.fr3nd.net/projects/apache-top/. it&#8217;s a nice tool but still need some customization.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech-stuff.org/how-to-identify-high-load-apache-processes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to restrict apache permissions to execute /usr/bin/perl</title>
		<link>http://tech-stuff.org/how-to-restrict-apache-permissions-to-execute-usrbinperl/</link>
		<comments>http://tech-stuff.org/how-to-restrict-apache-permissions-to-execute-usrbinperl/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 13:41:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://www.tech-stuff.org/?p=44</guid>
		<description><![CDATA[Just change perl permissions like bellow . apache will be able of course to execute perl scripts from cgi.
-bash-3.2# ls -al /usr/bin/perl
-rwxr-xr-x 2 root root 13688 Sep 17 20:40 /usr/bin/perl
-bash-3.2# chgrp apache /usr/bin/perl
-bash-3.2# chmod 705 /usr/bin/perl
-bash-3.2# ls -al /usr/bin/perl
-rwx---r-x 2 root apache 13688 Jan 28 15:09 /usr/bin/perl
]]></description>
			<content:encoded><![CDATA[<pre>Just change perl permissions like bellow . apache will be able of course to execute perl scripts from cgi.
-bash-3.2# ls -al /usr/bin/perl
-rwxr-xr-x 2 root root 13688 Sep 17 20:40 /usr/bin/perl
-bash-3.2# chgrp apache /usr/bin/perl
-bash-3.2# chmod 705 /usr/bin/perl
-bash-3.2# ls -al /usr/bin/perl
-rwx---r-x 2 root apache 13688 Jan 28 15:09 /usr/bin/perl</pre>
]]></content:encoded>
			<wfw:commentRss>http://tech-stuff.org/how-to-restrict-apache-permissions-to-execute-usrbinperl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Ruby on CPanel</title>
		<link>http://tech-stuff.org/install-ruby-on-cpanel/</link>
		<comments>http://tech-stuff.org/install-ruby-on-cpanel/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 11:46:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[hosting]]></category>

		<guid isPermaLink="false">http://www.tech-stuff.org/?p=11</guid>
		<description><![CDATA[If you are using CPanel 11 (the latest version available at this time) you can easily install ruby on your system using CPanel. Previously, you had to do this using operating system packages or manually from sources. Now, we can just run /scripts/installruby and this will do everything for us:

download, compile and install ruby
download and [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using <strong>CPanel 11</strong> (the latest version available at this time) you can easily install <strong>ruby </strong>on your system using CPanel. Previously, you had to do this using operating system packages or manually from sources. Now, we can just run <strong>/scripts/installruby</strong> and this will do everything for us:</p>
<ul>
<li>download, compile and install ruby</li>
<li>download and install RubyGems and some gems like rails and mongrel</li>
</ul>
<p><code>/scripts/installruby</code><br />
At this time it will install the latest 1.8 ruby:<br />
<code><strong>ruby -v</strong><br />
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]</code><br />
and the following gems (using rubygems-1.1.1):<br />
<code><strong>gem list</strong><br />
actionmailer (2.1.0)<br />
actionpack (2.1.0)<br />
activerecord (2.1.0)<br />
activeresource (2.1.0)<br />
activesupport (2.1.0)<br />
cgi_multipart_eof_fix (2.5.0)<br />
daemons (1.0.10)<br />
fastthread (1.0.1)<br />
gem_plugin (0.2.3)<br />
mongrel (1.1.5)<br />
rails (2.1.0)<br />
rake (0.8.1)</code><br />
This should be enough for running ruby scripts, but if you want to use <em>Ruby On Rails from within CPanel</em> then you just have to complete this by running <strong>/usr/local/cpanel/bin/ror_setup</strong>. If you are interested to deploy RoR environments on CPanel you can do this from inside CPanel. For more information check out the <a href="http://www.cpanel.net/docs/ror/index.html" target="_blank">CPanel docs</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech-stuff.org/install-ruby-on-cpanel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
