<?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>The Linux Noob &#187; Tutorial</title>
	<atom:link href="http://thelinuxnoob.com/category/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://thelinuxnoob.com</link>
	<description>Fixin&#039; issues one ticket at a time</description>
	<lastBuildDate>Wed, 14 Mar 2012 16:07:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>MySQL Error in Fantastico</title>
		<link>http://thelinuxnoob.com/cpanel/mysql-error-in-fantastico/</link>
		<comments>http://thelinuxnoob.com/cpanel/mysql-error-in-fantastico/#comments</comments>
		<pubDate>Wed, 14 Mar 2012 16:07:55 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=211</guid>
		<description><![CDATA[A client opened a ticket since they were receiving the following error when trying to install a script via fantasticrap&#8230;I mean fantastico. Warning: mysql_connect() [function.mysql-connect]: Access denied for user &#8216;linuxnoo&#8217;@'localhost&#8217; (using password: YES) in /tmp/cpanel_phpengine.1304688239.24500MvupN_eQWd on line 1642 Access denied for user &#8216;linuxnoo&#8217;@'localhost&#8217; (using password: YES) This issue is caused by a mismatch in the [...]]]></description>
			<content:encoded><![CDATA[<p>A client opened a ticket since they were receiving the following error when trying to install a script via fantasticrap&#8230;I mean fantastico.</p>
<blockquote><p>Warning: mysql_connect() [function.mysql-connect]: Access denied for user &#8216;linuxnoo&#8217;@'localhost&#8217; (using password: YES) in /tmp/cpanel_phpengine.1304688239.24500MvupN_eQWd on line 1642<br />
Access denied for user &#8216;linuxnoo&#8217;@'localhost&#8217; (using password: YES)</p></blockquote>
<p>This issue is caused by a mismatch in the cPanel password and the MySQL users password. You can verify this in SSH by running the following.</p>
<pre class="brush: bash; title: ; notranslate">
mysql&gt; use mysql;
mysql&gt; select user,password,password('YourPassword') from user where user='YourCpanelUser';
+----------+-----------------------------+-----------------------+
| user     | password  | password('--')          |
+----------+-----------------------------+-----------------------+
| linuxnoo | *E6.....3F | *B6.....3A |
+----------+-----------------------------+-----------------------+
2 rows in set (0.00 sec)</pre>
<p>As you can see above, the two password fields do not match so we need to update this.</p>
<pre class="brush: bash; title: ; notranslate">mysql&gt; update user set password=password('bNEQL13dvJ') where user='linuxnoo' limit 2;
mysql&gt; select user,password,password('bNEQL13dvJ') from user where user='linuxnoo';
+----------+-------------------------------------------+-------------------------------------------+
| user     | password                                  | password('bNEQL13dvJ')                    |
+----------+-------------------------------------------+-------------------------------------------+
| linuxnoo | *E6D911C8973EEDDA0CE0618EFB493E704776DB3F | *E6D911C8973EEDDA0CE0618EFB493E704776DB3F |
+----------+-------------------------------------------+-------------------------------------------+
2 rows in set (0.00 sec)
</pre>
<p>After the password update try to install again and it should work just fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/cpanel/mysql-error-in-fantastico/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto: Install cpnginx + Fixes</title>
		<link>http://thelinuxnoob.com/cpanel/howto-install-cpnginx-fixes/</link>
		<comments>http://thelinuxnoob.com/cpanel/howto-install-cpnginx-fixes/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 03:46:22 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=331</guid>
		<description><![CDATA[Long time no post&#8230;I know. I recently had to do a cpnginx install since our 3rd level team was a little short at the time. Nonetheless, it&#8217;s a pretty straight forward install. The uninstall is just as simple. Unfortunately things didn&#8217;t go smooth on the first install, and I ran into a few errors which [...]]]></description>
			<content:encoded><![CDATA[<p>Long time no post&#8230;I know. I recently had to do a cpnginx install since our 3rd level team was a little short at the time. Nonetheless, it&#8217;s a pretty straight forward install.</p>
<pre class="brush: bash; title: ; notranslate">root@grumpy [/]# cd /usr/local/src
root@grumpy [/usr/local/src]# wget http://nginxcp.com/latest/nginxadmin.tar
root@grumpy [/usr/local/src]# tar xf nginxadmin.tar
root@grumpy [/usr/local/src]# cd publicnginx
root@grumpy [/usr/local/src/publicnginx]# ./nginxinstaller install</pre>
<p>The uninstall is just as simple.</p>
<pre class="brush: bash; title: ; notranslate">root@grumpy [/]# cd /usr/local/src
root@grumpy [/usr/local/src]# wget http://nginxcp.com/latest/nginxadmin.tar
root@grumpy [/usr/local/src]# tar xf nginxadmin.tar
root@grumpy [/usr/local/src]# cd publicnginx
root@grumpy [/usr/local/src/publicnginx]# ./nginxinstaller uninstall</pre>
<p>Unfortunately things didn&#8217;t go smooth on the first install, and I ran into a few errors which were caused by an out of date python install.<span id="more-331"></span></p>
<pre class="brush: bash; title: ; notranslate">root@grumpy [/usr/local/src]# tar xf nginxadmin2.6-stable.tar
root@grumpy [/usr/local/src]# cd publicnginx
root@grumpy [/usr/local/src/publicnginx]# ./nginxinstaller install
Welcome to the Nginx Admin installer......Starting Install
Generating vhosts...
Traceback (most recent call last):
File &quot;/scripts/createvhosts.py&quot;, line 2, in ?
import yaml
File &quot;/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg/yaml/__init__.py&quot;, line 26
SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause
Installing WHM interface...
deploying booster rockets
Traceback (most recent call last):
File &quot;/usr/local/src/publicnginx/nginxinstaller2&quot;, line 9, in ?
import createvhosts
File &quot;/usr/local/src/publicnginx/createvhosts.py&quot;, line 2, in ?
import yaml
File &quot;/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg/yaml/__init__.py&quot;, line 26
SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause</pre>
<p>To fix this error, you need to do the following.</p>
<pre class="brush: bash; title: ; notranslate">remove nginx (instructions at the bottom of the post)
root@grumpy [/usr/local/src]# wget http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tgz
root@grumpy [/usr/local/src]# tar fxz Python-2.5.2.tgz
root@grumpy [/usr/local/src]# cd Python-2.5.2
root@grumpy [/usr/local/src]# ./configure
root@grumpy [/usr/local/src]# make
root@grumpy [/usr/local/src]# make install
root@grumpy [/usr/local/src]# fresh install</pre>
<p>if you run into this:</p>
<blockquote><p>Restarting nginx daemon: nginxRemaining processes: 16560<br />
cat: /var/run/nginx.pid: No such file or directory<br />
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec &#8230; or kill -l [sigspec]<br />
not running</p></blockquote>
<pre class="brush: bash; title: ; notranslate">root@grumpy [/usr/local/src/publicnginx]# killall -9 nginx
root@grumpy [/usr/local/src/publicnginx]# ./nginxinstaller uninstall
root@grumpy [/usr/local/src/publicnginx]# ./nginxinstaller install</pre>
<p>If you run into any issues, please feel free to post below in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/cpanel/howto-install-cpnginx-fixes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WHM Scripts</title>
		<link>http://thelinuxnoob.com/tutorial/whm-scripts/</link>
		<comments>http://thelinuxnoob.com/tutorial/whm-scripts/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 14:23:20 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[/scripts]]></category>
		<category><![CDATA[whm scripts]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=81</guid>
		<description><![CDATA[Did you know that if you have cPanel/WHM on your server, you also have a bunch of serverside commands that you can use?  These are good for advanced users, or the people who prefer to manage their servers in a hurry via the command line rather than waiting for a web interface to load. Nearly [...]]]></description>
			<content:encoded><![CDATA[<p>Did you know that if you have cPanel/WHM on your server, you also have a bunch of serverside commands that you can use?  These are good for advanced users, or the people who prefer to manage their servers in a hurry via the command line rather than waiting for a web interface to load.</p>
<p>Nearly everything that you can do in the WHM backend can be performed via command line.  These scripts are located in your server&#8217;s /scripts/ directory.  Only use scripts that have been verified by cPanel, or that you know yourself are safe as an unsafe script may damage your server.</p>
<p>Long list of scripts after the break&#8230;<span id="more-81"></span></p>
<p>To use any of these scripts, prefix it with /scripts/, for example, to package an account for backup you would type:</p>
<blockquote><p>/scripts/pkgacct accountusernamehere (replacing that with the account name on your server that you wish to backup)</p></blockquote>
<ul>
<li><code>build_maxemails_config</code> — Sets limits on the amount of email that users can send from domains on your server. For more information about configuring limits with this script, see our documentation <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/MaiDelimiter">here</a>.</li>
<li><code>easyapache</code> — Upgrades and reinstalls <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmApache">Apache</a>.</li>
<li><code>phpextensionmgr</code> — Manages <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmPhp">PHP</a> extensions.</li>
<li><code>*up</code>— Updates a service. We currently provide the following update scripts for the services noted:
<ul>
<li><strong>bandminup</strong> — <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#BandMin">Bandmin</a> application.</li>
<li><strong>courierup</strong> — <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmCourier">Courier</a> mail server.</li>
<li><strong>cpaddonsup</strong> — cPanel’s addon scripts.</li>
<li><strong>dovecotup</strong> — <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#DoveCot">Dovecot</a> mail server.</li>
<li><strong>eximup</strong> — <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmExim">Exim</a> mail exchanger.</li>
<li><strong>ftpup</strong> — <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmFtp">FTP</a> servers (ProFTP and Pure-<a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmFtp">FTP</a>).</li>
<li><strong>imapup</strong> — <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmImap">IMAP</a> mail server.</li>
<li><strong>mysqlup</strong> —MySQL service.</li>
<li><strong>nsdup</strong> — BIND <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#NameServer">nameserver</a>.</li>
<li><strong>phpup</strong> — Current version of <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmPhp">PHP</a>.</li>
<li><strong>suphpup</strong> — SuPHP tool for handling <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmPhp">PHP</a> requests.</li>
</ul>
</li>
<li><code>restartsrv_*</code> — Restarts a service. We currently provide restart scripts for the following; simply replace the asterisk (*) in <code>restartsrv_*</code>with the term in bold:
<ul>
<li><strong>apache</strong> — <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmApache">Apache</a> web server.</li>
<li><strong>bind</strong> — BIND <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#NameServer">nameserver</a> software.</li>
<li><strong>chkservd</strong> — cPanel’s TailWatch log processing service.</li>
<li><strong>clamd</strong> — ClamAV anti-virus software.</li>
<li><strong>courier</strong> — <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmCourier">Courier</a> mail server.</li>
<li><strong><a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#CpDavd">cpdavd</a></strong> — cPanel’s WebDAV server.</li>
<li><strong>cppop</strong> — cPanel’s POP server.</li>
<li><strong>dovecot</strong> — <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#DoveCot">Dovecot</a> mail server.</li>
<li><strong>entropychat</strong> — Entropy chat client.</li>
<li><strong>exim</strong> — <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmExim">Exim</a> mail exchanger.</li>
<li><strong>eximstats</strong> — <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmExim">Exim</a> mail statistics tracker.</li>
<li><strong>ftpserver</strong> — <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmFtp">FTP</a> server.</li>
<li><strong>httpd</strong> — <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmApache">Apache</a> web server.</li>
<li><strong>imap</strong> — <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmImap">IMAP</a> server.</li>
<li><strong>inetd</strong> — Super-server <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmDaemon">daemon</a> for managing Internet services.</li>
<li><strong>interchange</strong> — <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#InterChange">Interchange</a> e-commerce software.</li>
<li><strong>ipaliases</strong> — IP aliasing software.</li>
<li><strong>melange</strong> — Melange chat client.</li>
<li><strong>mysql</strong> — MySQL database server.</li>
<li><strong>named</strong> — BIND <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#NameServer">nameserver</a> software.</li>
<li><strong><a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmNsd">nsd</a></strong> — Open-source NSD <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#NameServer">nameserver</a> <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmDaemon">daemon</a>.</li>
<li><strong>postgres</strong> — PostgresSQL database service.</li>
<li><strong>postgresql</strong> — PostgreSQL database service.</li>
<li><strong>proftpd</strong> — ProFTP server <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmDaemon">daemon</a>.</li>
<li><strong>pureftpd</strong> — Pure-<a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmFtp">FTP</a> server <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmDaemon">daemon</a>.</li>
<li><strong>rsyslogd</strong> — Open-source log forwarder <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmDaemon">daemon</a>.</li>
<li><strong>spamd</strong> — Spam-deferral <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmDaemon">daemon</a>.</li>
<li><strong>sshd</strong> — Secure <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmShell">shell</a> <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmDaemon">daemon</a>.</li>
<li><strong>syslogd</strong> — Log forwarder <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmDaemon">daemon</a>.</li>
<li><strong>tailwatchd</strong> — cPanel’s TailWatch log processing service.</li>
<li><strong>tomcat</strong> — <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmApache">Apache</a> Tomcat service.</li>
<li><strong>xinetd</strong> — Open-source super-server <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmDaemon">daemon</a>.</li>
</ul>
</li>
<li><code>addpop</code> — Adds a POP account.</li>
<li><code>delpop</code> — Removes a POP account.</li>
<li><code>wwwacct</code> — Adds a cPanel account.</li>
<li><code>killpkg</code> — Removes a package.</li>
<li><code>restorepkg</code> — Restores a package.</li>
<li><code>cpbackup</code> — Backs up all accounts.</li>
<li><code>pkgacct</code> — Handles <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#CpanelPkgs">cPanel packages</a>.</li>
<li><code>upcp</code> — Updates cPanel and WHM.</li>
<li><code>setupmailserver</code> — Allows you to switch between mailservers.</li>
<li><code>setupftpserver</code> — Allows you to switch between <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmFtp">FTP</a> servers.</li>
<li><code>setupnameserver</code> — Allows switching between <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmDns">DNS</a> servers.</li>
<li><code>checkperlmodules</code>— Contains a list of standard CPAN modules to install on cPanel servers. This script is used in conjunction with realperlinstaller, below. This script can be used with the following arguments:
<ul>
<li><strong>&#8211;force</strong> will reinstall everymodule regardless of whether or not it is working.</li>
<li><strong>&#8211;full </strong>will ensure that all modules are present as opposed to only checking for essential modules.</li>
</ul>
</li>
<li><code>realperlinstaller</code> — A wrapper script that automates the installation of <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmPerl">Perl</a> CPAN modules.</li>
<li><code>suspendacct</code> — Suspends an account.</li>
<li><code>unsuspendacct</code> — Unsuspends an account.</li>
<li><code>runweblogs</code> — Updates statistics for a user.</li>
<li><code>runstatsonce</code> — Updates statistics for all users.</li>
<li><code>makecppphp</code> — Re-installs cPanel’s internal <a href="http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/WhmGlossary#WhmPhp">PHP</a>.</li>
<li><code>portsup</code> — Updates ports (FreeBSD® systems only).</li>
</ul>
<p>Have any questions about any of these commands, what they are or what they do, don&#8217;t hesitate to leave a comment and we&#8217;ll get back to you!</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/tutorial/whm-scripts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing Perl on a cPanel server</title>
		<link>http://thelinuxnoob.com/linux/installing-perl-on-a-cpanel-server/</link>
		<comments>http://thelinuxnoob.com/linux/installing-perl-on-a-cpanel-server/#comments</comments>
		<pubDate>Sat, 07 May 2011 21:50:16 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=209</guid>
		<description><![CDATA[Installing/upgrading perl is a pretty straight forward task and is necessary for cPanel to function properly. If I remember correctly, the install takes 25-30 minutes to complete depending on your server setup.]]></description>
			<content:encoded><![CDATA[<p>Installing/upgrading perl is a pretty straight forward task and is necessary for cPanel to function properly.</p>
<pre class="brush: bash; title: ; notranslate">root@ohhai [~]# wget http://layer1.cpanel.net/perl588installer.tar.gz
root@ohhai [~]# tar -xvzf perl588installer.tar.gz
root@ohhai [~]# cd perl588installer
root@ohhai [~]# ./install
</pre>
<p>If I remember correctly, the install takes 25-30 minutes to complete depending on your server setup.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/installing-perl-on-a-cpanel-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internal Server Error &#8212; User is over quota</title>
		<link>http://thelinuxnoob.com/linux/internal-server-error-user-is-over-quota/</link>
		<comments>http://thelinuxnoob.com/linux/internal-server-error-user-is-over-quota/#comments</comments>
		<pubDate>Mon, 06 Sep 2010 19:50:04 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[500 error]]></category>
		<category><![CDATA[overquota]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=169</guid>
		<description><![CDATA[Came across this issue at work where a client was receiving this message when trying to enter webmail, even though the e-mail account and cPanel account were not over quota. Internal Server Error User &#8216;useraccount&#8217; is over quota. This happens when the users &#8216;overquota&#8217; status is cached and can be fixed by removing the users [...]]]></description>
			<content:encoded><![CDATA[<p>Came across this issue at work where a client was receiving this message when trying to enter webmail, even though the e-mail account and cPanel account were not over quota.</p>
<blockquote><p>Internal Server Error</p>
<p>User &#8216;useraccount&#8217; is over quota.</p></blockquote>
<p>This happens when the users &#8216;overquota&#8217; status is cached and can be fixed by removing the users folder located at the following.</p>
<pre class="brush: bash; title: ; notranslate">/var/cpanel/overquota/username</pre>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/internal-server-error-user-is-over-quota/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VPN via the TUN/TAP device</title>
		<link>http://thelinuxnoob.com/linux/vpn-via-the-tun-tap-device/</link>
		<comments>http://thelinuxnoob.com/linux/vpn-via-the-tun-tap-device/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 15:57:17 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[openvz]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[container]]></category>
		<category><![CDATA[node]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[tap]]></category>
		<category><![CDATA[tun]]></category>
		<category><![CDATA[tun/tap]]></category>
		<category><![CDATA[vzctl]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=157</guid>
		<description><![CDATA[I had a client contact me earlier this morning because one of their clients was receiving the following error on their VPS when trying to run OpenVPN. Note: Cannot open TUN/TAP dev /dev/net/tun: Permission denied (errno=13) Note: Attempting fallback to kernel 2.2 TUN/TAP interface Cannot open TUN/TAP dev /dev/tun0: No such file or directory (errno=2) [...]]]></description>
			<content:encoded><![CDATA[<p>I had a client contact me earlier this morning because one of their clients was receiving the following error on their VPS when trying to run OpenVPN.</p>
<blockquote><p> Note: Cannot open TUN/TAP dev /dev/net/tun: Permission denied (errno=13)<br />
 Note: Attempting fallback to kernel 2.2 TUN/TAP interface<br />
 Cannot open TUN/TAP dev /dev/tun0: No such file or directory (errno=2)</p></blockquote>
<p>I&#8217;ve never run into this issue before, but was able to find an awesome tutorial on the <a title="VPN via TUN/TAP device" href="http://wiki.openvz.org/VPN_via_the_TUN/TAP_device" target="_blank">OpenVZ</a> website.</p>
<p>First, make sure the tun module has been already loaded on the hardware node:</p>
<pre class="brush: bash; title: ; notranslate"># lsmod | grep tun</pre>
<p>If it is not there, use the following command to load <strong>tun</strong> module:</p>
<pre class="brush: bash; title: ; notranslate"># modprobe tun</pre>
<p>To make sure that <strong>tun</strong> module will be automatically loaded on  every reboot you can also add it or into /etc/modules.conf (on RHEL see  /etc/sysconfig/modules/ directory) or into /etc/sysconfig/vz-scripts/<em>VEID</em>.mount.</p>
<pre class="brush: bash; title: ; notranslate">echo 'modprobe tun' /etc/sysconfig/vz-scripts/VEID.mount</pre>
<p>Allow your container to use the tun/tap device by running the following commands on the host node:</p>
<pre class="brush: bash; title: ; notranslate">vzctl set VEID --devices c:10:200:rw --save
vzctl set VEID --capability net_admin:on --save</pre>
<p>And create the character device file inside the container (execute the following on the host node):</p>
<pre class="brush: bash; title: ; notranslate">vzctl exec VEID mkdir -p /dev/net
vzctl exec VEID mknod /dev/net/tun c 10 200
vzctl exec VEID chmod 600 /dev/net/tun</pre>
<p>Enter cat /dev/net/tun to test whether the TUN/TAP device is available:</p>
<ul>
<li> If you receive the message cat: /dev/net/tun: File descriptor in bad state your TUN/TAP device is ready for use.</li>
<li> If you receive the message cat: /dev/net/tun: No such device the TUN/TAP device was not successfully created.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/vpn-via-the-tun-tap-device/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Enable NAT module for VPS can’t initialize iptables table `nat’: Table does not exist</title>
		<link>http://thelinuxnoob.com/linux/enable-nat-module-for-vps-can%e2%80%99t-initialize-iptables-table-nat%e2%80%99-table-does-not-exist/</link>
		<comments>http://thelinuxnoob.com/linux/enable-nat-module-for-vps-can%e2%80%99t-initialize-iptables-table-nat%e2%80%99-table-does-not-exist/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 02:18:40 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[openvz]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[container]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[node]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=155</guid>
		<description><![CDATA[I was getting the following error in a container on one of my nodes. You can fix this by using the following commands.]]></description>
			<content:encoded><![CDATA[<p>I was getting the following error in a container on one of my nodes.</p>
<pre class="brush: bash; title: ; notranslate">[root@server1 ~]# iptables -t nat -F
iptables v1.3.5: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.</pre>
<pre class="brush: bash; title: ; notranslate">[root@server1 ~]# iptables -t nat -nvL
iptables v1.3.5: can’t initialize iptables table `nat’: Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.</pre>
<p>You can fix this by using the following commands.</p>
<pre class="brush: bash; title: ; notranslate">[root@yoshi ~]# vzctl stop 150
[root@yoshi ~]# vzctl set 150 --iptables &quot;iptable_nat iptable_filter iptable_mangle  ip_conntrack ipt_conntrack ipt_REDIRECT ipt_REJECT ipt_multiport  ipt_helper ipt_LOG ipt_state&quot; --save
Saved parameters for VE 150
[root@yoshi ~]# vzctl restart 150
[root@yoshi ~]# vzctl enter 150
[root@server1 ~]# iptables -t nat -nvL
Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination

Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination</pre>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/enable-nat-module-for-vps-can%e2%80%99t-initialize-iptables-table-nat%e2%80%99-table-does-not-exist/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>cPHulk Brute Force Detection</title>
		<link>http://thelinuxnoob.com/linux/cphulk-brute-force-detection/</link>
		<comments>http://thelinuxnoob.com/linux/cphulk-brute-force-detection/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 16:48:22 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[bfd]]></category>
		<category><![CDATA[brute force]]></category>
		<category><![CDATA[cphulk]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=149</guid>
		<description><![CDATA[Ever run into issues with typing in your root password, or forgot what you set it to, then got locked out of WHM? Well, here&#8217;s a quick and easy way to get your access back when receiving this error message. This account is currently locked out because a brute force attempt  was detected. Please wait [...]]]></description>
			<content:encoded><![CDATA[<p>Ever run into issues with typing in your root password, or forgot what you set it to, then got locked out of WHM? Well, here&#8217;s a quick and easy way to get your access back when receiving this error message.</p>
<blockquote><p>This account is currently locked out because a brute force attempt  was detected. Please wait 10 minutes and try again. Attempting to login again will only increase this delay. If you frequently experience this problem, we recommend having your username changed to something less generic.</p></blockquote>
<p>Run the following as root in SSH.</p>
<pre class="brush: bash; title: ; notranslate">mysql cphulkd
mysql&gt; delete from brutes;
mysql&gt; delete from logins;</pre>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/cphulk-brute-force-detection/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A few OpenVZ commands</title>
		<link>http://thelinuxnoob.com/linux/a-few-openvz-commands/</link>
		<comments>http://thelinuxnoob.com/linux/a-few-openvz-commands/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 02:16:18 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[openvz]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=138</guid>
		<description><![CDATA[Below are the commonly used OpenVZ commands, which are run from the main node. Shows list of all the VPS’s hosted on the Node. To start the VPS To stop (Shut Down) the VPS To view the status of the particular VPS To stop the VPS quickly and forcefully To enter in a particular VPS [...]]]></description>
			<content:encoded><![CDATA[<p>Below are the commonly used OpenVZ commands, which are run from the main node.</p>
<p>Shows list of all the VPS’s hosted on the Node.</p>
<pre class="brush: bash; title: ; notranslate">vzlist -a</pre>
<p>To start the VPS</p>
<pre class="brush: bash; title: ; notranslate">vzctl start VEID</pre>
<p>To stop (Shut Down) the VPS</p>
<pre class="brush: bash; title: ; notranslate">vzctl stop VEID</pre>
<p>To view the status of the particular VPS</p>
<pre class="brush: bash; title: ; notranslate">vzctl status VEID</pre>
<p>To stop the VPS quickly and forcefully</p>
<pre class="brush: bash; title: ; notranslate">vzctl stop VEID --fast</pre>
<p>To enter in a particular VPS</p>
<pre class="brush: bash; title: ; notranslate">vzctl enter VEID</pre>
<p>To set the Hostname of a VPS</p>
<pre class="brush: bash; title: ; notranslate">vzctl set VEID --hostname vps.domain.com --save</pre>
<p>To add a new IP to the hosting VPS</p>
<pre class="brush: bash; title: ; notranslate">vzctl set VEID --ipadd 1.2.3.4 --save</pre>
<p>To delete the IP from VPS</p>
<pre class="brush: bash; title: ; notranslate">vzctl set VEID --ipdel 1.2.3.4 --save</pre>
<p>To reset root password of a VPS</p>
<pre class="brush: bash; title: ; notranslate">vzctl set VEID --userpasswd root:new_password --save</pre>
<p>To add the nameserver IP’s to the VPS</p>
<pre class="brush: bash; title: ; notranslate">vzctl set VEID --nameserver 1.2.3.4 --save</pre>
<p>To run any command on a VPS from Node</p>
<pre class="brush: bash; title: ; notranslate">vzctl exec VEID command</pre>
<p>To install any package/Software on a VPS from Node</p>
<pre class="brush: bash; title: ; notranslate">vzyum VEID install package_name </pre>
<p>**VEID refers to the ID of the Particular VPS**</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/a-few-openvz-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Session.save_path error</title>
		<link>http://thelinuxnoob.com/linux/session-save_path-error/</link>
		<comments>http://thelinuxnoob.com/linux/session-save_path-error/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 10:28:27 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Php.ini]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[session.save_path]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=71</guid>
		<description><![CDATA[So&#8230;I came across this error on a clients site which he was receiving when trying to install a 3rd party script. The session.save_path setting in your php configuration file (php.ini) is not set or is set to a folder which did not exist. You might need to set the save_path setting in php.ini or verify [...]]]></description>
			<content:encoded><![CDATA[<p>So&#8230;I came across this error on a clients site which he was receiving when trying to install a 3rd party script.</p>
<blockquote><p>The session.save_path setting in your php configuration file (php.ini) is not set or is set to a folder which did not exist. You might need to set the save_path setting in php.ini or verify that the folder sets in save_path exist.</p></blockquote>
<p>It&#8217;s a pretty simple fix in the servers php.ini.<span id="more-71"></span> First thing you need to do is locate your servers copy of the php.ini by running the following command via SSH.</p>
<blockquote><p>root@lolwut [~]# php -i | grep php.ini<br />
Configuration File (php.ini) Path =&gt; /usr/local/lib<br />
Loaded Configuration File =&gt; /usr/local/lib/php.ini<br />
root@lolwut [~]#</p></blockquote>
<p>Once you&#8217;ve found the php.ini, use your favorite editor and locate the following line.</p>
<blockquote><p>root@lolwut [~]# grep &#8216;session.save_path&#8217; /usr/local/lib/php.ini<br />
;     session.save_path = &#8220;N;/path&#8221;<br />
;session.save_path = /tmp<br />
;       (see session.save_path above), then garbage collection does *not*<br />
root@lolwut [~]#</p></blockquote>
<p>In this case, simply remove &#8220;;&#8221; which will uncomment the line. If you are missing the &#8220;/tmp&#8221; part of the line, you will need to add it. Make these changes and save the file, then restart apache and you&#8217;re good to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/session-save_path-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

