<?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>UnderHost.com Networks Status &#187; cPanel</title>
	<atom:link href="http://networks.underhost.com/category/cpanel-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://networks.underhost.com</link>
	<description></description>
	<lastBuildDate>Fri, 06 Jan 2012 00:49:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>[NL5] Under DDoS</title>
		<link>http://networks.underhost.com/cpanel-tutorial/nl5-under-ddos/</link>
		<comments>http://networks.underhost.com/cpanel-tutorial/nl5-under-ddos/#comments</comments>
		<pubDate>Sun, 19 Dec 2010 17:20:15 +0000</pubDate>
		<dc:creator>UnderHost Management</dc:creator>
				<category><![CDATA[Networks]]></category>
		<category><![CDATA[cPanel]]></category>

		<guid isPermaLink="false">http://blog.underhost.com/?p=181</guid>
		<description><![CDATA[We apologize for the downtime our customers on the shared server ‘NL5’ are experiencing at this time.  A Denial of Service Attack is underway on a domain hosted on this shared server.  Our Admin team is working hard to resolve this issue and restore service for the rest of the server.  We will update this ...]]></description>
			<content:encoded><![CDATA[<p>We apologize for the downtime our customers on the shared server  ‘NL5’ are experiencing at this time.  A Denial of Service Attack is  underway on a domain hosted on this shared server.  Our Admin team is  working hard to resolve this issue and restore service for the rest of  the server.  We will update this space with more details, should they  become available.  If you have any questions, please feel free to  contact Support for more information!</p>
]]></content:encoded>
			<wfw:commentRss>http://networks.underhost.com/cpanel-tutorial/nl5-under-ddos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cPHulk Brute Force Detection</title>
		<link>http://networks.underhost.com/cpanel-tutorial/cphulk-brute-force-detection/</link>
		<comments>http://networks.underhost.com/cpanel-tutorial/cphulk-brute-force-detection/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 04:41:48 +0000</pubDate>
		<dc:creator>UnderHost Management</dc:creator>
				<category><![CDATA[cPanel]]></category>

		<guid isPermaLink="false">http://blog.underhost.com/?p=83</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’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’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 dir="ltr">mysql cphulkd
mysql&gt; delete from brutes;
mysql&gt; delete from logins;</pre>
]]></content:encoded>
			<wfw:commentRss>http://networks.underhost.com/cpanel-tutorial/cphulk-brute-force-detection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Nginx in a cPanel server</title>
		<link>http://networks.underhost.com/cpanel-tutorial/install-nginx-in-a-cpanel-server/</link>
		<comments>http://networks.underhost.com/cpanel-tutorial/install-nginx-in-a-cpanel-server/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 20:02:56 +0000</pubDate>
		<dc:creator>UnderHost Management</dc:creator>
				<category><![CDATA[cPanel]]></category>

		<guid isPermaLink="false">http://blog.underhost.com/?p=64</guid>
		<description><![CDATA[1) Go to WHM &#62; Tweak Settings and change the Apache port: The port on which Apache listens for HTTP connections. Specifying a specific IP will prevent Apache from listening on all other IPs. (default: 0.0.0.0:80) To: 0.0.0.0:8081 ---------- 2) Grab a copy of the nginx installation script: mkdir /root/cpacct &#38;&#38; cd /root/cpacct wget underhost.com/nginxsetup.tar ...]]></description>
			<content:encoded><![CDATA[<div>
<p>1) Go to WHM &gt; Tweak Settings and change  the Apache port:</p>
<p>The port on which Apache listens for HTTP connections. Specifying a  specific IP will prevent Apache from listening on all other IPs.  (default: 0.0.0.0:80)</p>
<blockquote><p>To:<br />
0.0.0.0:8081</p>
<p>----------</p></blockquote>
<p>2) Grab a copy of the nginx installation script:</p>
<div>
<blockquote>
<pre>mkdir /root/cpacct &amp;&amp; cd /root/cpacct
wget underhost.com/nginxsetup.tar
tar xf nginxsetup.tar
cd publicnginx
./nginxinstaller install
</pre>
</blockquote>
</div>
<p>-----------</p>
<p>3) If you receive this error when trying to install:</p>
<blockquote>
<pre>access key doesn't exist create it in WHM

Then go to WHM &gt; Cluster/Remote Access &gt; Setup Remote Access Key and click on the "Generate New Key" button.

4)  At that point, then re-run "./nginxinstaller install" command. Rebuild Apache and then restart nginx and Apache
<div>
<pre>/scripts/rebuildhttpdconf
/etc/init.d/nginx restart
/etc/init.d/httpd restart</pre>
</div>
</pre>
</blockquote>
</div>
]]></content:encoded>
			<wfw:commentRss>http://networks.underhost.com/cpanel-tutorial/install-nginx-in-a-cpanel-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Files &#8211; File Permissions</title>
		<link>http://networks.underhost.com/cpanel-tutorial/files-file-permissions/</link>
		<comments>http://networks.underhost.com/cpanel-tutorial/files-file-permissions/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 20:02:07 +0000</pubDate>
		<dc:creator>UnderHost Management</dc:creator>
				<category><![CDATA[cPanel]]></category>

		<guid isPermaLink="false">http://blog.underhost.com/?p=31</guid>
		<description><![CDATA[Changing file/folder permissions All files on UNIX (including Linux and other UNIX variants) machines have access permissions. In this way the operating system knows how to deal with requests to access the files. There are three types of access: Read - Denoted as r, files with read access can be displayed to the user. Write ...]]></description>
			<content:encoded><![CDATA[<div id="post_message_1259"><strong>Changing file/folder permissions</strong></p>
<p>All files on UNIX (including Linux and other UNIX variants) machines   have access permissions. In this way the operating system knows how to   deal with requests to access the files. There are three types of access:</p>
<ul>
<li><strong>Read</strong> - Denoted as r, files with read access can be   displayed to the user.</li>
<li><strong>Write</strong> - Denoted as w, files with write access can be   modified by the user.</li>
<li><strong>Execute</strong> - Denoted as x, files with execute access can be   executed as programs by the user.</li>
</ul>
<p>Access types are set for three types of user group:</p>
<ul>
<li><strong>User</strong> - The owner of the file.</li>
<li><strong>Group</strong> - Other files which are in the same folder or  group.</li>
<li><strong>World</strong> - Everyone else.</li>
</ul>
<p>The web server needs to be able to read your web pages in order to  be  able to display them in a browser. The following permissions need  to be  set in order for your web site to function properly.</p>
<ul>
<li>All HTML files and images need to be readable by others. The   value for this is 644 (readable by User, Group and World, and writable   by User). It is set automatically when you upload files.</li>
<li>All folders need to be executable by others. The value for this  is  755 (readable by User, Group and World, writable by User, executable  by  User, Group and World). It is set automatically when you create a   folder.</li>
<li>All CGI files (all files in the cgi-bin folder) need to be   executable by other. The value for this is 755 (readable by User, Group,   and World, writable by User, executable by User, Group, and World). It   is not set automatically when you upload files. You need to change  file  permissions manually.</li>
</ul>
<p>It is  important that none of your files or folders is writable  by anyone else.  Any file or folder which is writable by others can be  erased by them.</p>
</div>
<div><strong>To change file or folder permissions:</strong></p>
<ol>
<li> Step 1: Open your File Manager and  navigate to the file or folder  that you need to change.</li>
<li> Step 2: Click on the name of the file or  folder.</li>
<li> Step 3: Click on the <strong>Change Permissions</strong> link in the top menu  of the File Manager page.</li>
<li> Step 4: Click on as many check boxes as  you require to create the  right permission. The permission numbers  underneath the check boxes  will update automatically.</li>
<li> Step 5: Click on the <strong>Change Permissions</strong> button when you are  ready. The new permission level is saved and the  display updated to  show the modified file.</li>
</ol>
</div>
<div>
<div><img src="http://www.siteground.com/knox/tutorials/uploaded_images/images/cpanel/image25.jpg" border="0" alt="" /></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://networks.underhost.com/cpanel-tutorial/files-file-permissions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatic cPanel backup with cron &amp; PHP</title>
		<link>http://networks.underhost.com/cpanel-tutorial/free-cpanel-backup-script/</link>
		<comments>http://networks.underhost.com/cpanel-tutorial/free-cpanel-backup-script/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 23:43:21 +0000</pubDate>
		<dc:creator>UnderHost Management</dc:creator>
				<category><![CDATA[cPanel]]></category>

		<guid isPermaLink="false">http://blog.underhost.com/?p=1</guid>
		<description><![CDATA[The situation is this: You use cPanel on our web hosting server. You use the cPanel backup tool to regularly backup /home directory (includes my web files, mail, etc), and my MySQL databases. You love the fact that you can use it to backup to a remote FTP server, and you do that on a ...]]></description>
			<content:encoded><![CDATA[<p>The situation is this: You use cPanel on our web hosting server. You use  the cPanel backup tool to regularly backup /home directory (includes my  web files, mail, etc), and my MySQL databases. You love the fact that  you can use it to backup to a remote FTP server, and you do that on a  fairly regular basis.</p>
<p>The major drawback is that you have to remember/schedule to perform this  backup manually. This becomes especially difficult if you have multiple  cPanel accounts. It would be amazing if you could just schedule the  cPanel backup to run at regular intervals, perhaps with cron. Well,  although there's no option for that in cPanel, the script below will  allow you to do exactly that!</p>
<p>This backup script includes SSL support. This isn't necessary if you run  the script on the server for which you're generating the backup; but  the SSL support is very important if you're running the script somewhere  else to connect to your cPanel hosting account.</p>
<p>&lt;?php</p>
<p>// PHP script to allow periodic cPanel backups automatically, optionally to a remote FTP server.</p>
<p>// This script contains passwords. KEEP ACCESS TO THIS FILE SECURE! (place it in your home dir, not /www/)</p>
<p>// ********* THE FOLLOWING ITEMS NEED TO BE CONFIGURED *********</p>
<p>// Info required for cPanel access</p>
<p>$cpuser = "username"; // Username used to login to CPanel</p>
<p>$cppass = "password"; // Password used to login to CPanel</p>
<p>$domain = "example.com"; // Domain name where CPanel is run</p>
<p>$skin = "x"; // Set to cPanel skin you use (script won't work if it doesn't match). Most people run the default x theme</p>
<p>// Info required for FTP host</p>
<p>$ftpuser = "ftpusername"; // Username for FTP account</p>
<p>$ftppass = "ftppassword"; // Password for FTP account</p>
<p>$ftphost = "ftp.example.com"; // Full hostname or IP address for FTP host</p>
<p>$ftpmode = "ftp"; // FTP mode ("ftp" for active, "passiveftp" for passive)</p>
<p>// Notification information</p>
<p>$notifyemail = "you@example.com"; // Email address to send results</p>
<p>// Secure or non-secure mode</p>
<p>$secure = 0; // Set to 1 for SSL (requires SSL support), otherwise will use standard HTTP</p>
<p>// Set to 1 to have web page result appear in your cron log</p>
<p>$debug = 0;</p>
<p>// *********** NO CONFIGURATION ITEMS BELOW THIS LINE *********</p>
<p>if ($secure) {</p>
<p>$url = "ssl://".$domain;</p>
<p>$port = 2083;</p>
<p>} else {</p>
<p>$url = $domain;</p>
<p>$port = 2082;</p>
<p>}</p>
<p>$socket = fsockopen($url,$port);</p>
<p>if (!$socket) { echo "Failed to open socket connection... Bailing out!\n"; exit; }</p>
<p>// Encode authentication string</p>
<p>$authstr = $cpuser.":".$cppass;</p>
<p>$pass = base64_encode($authstr);</p>
<p>$params = "dest=$ftpmode&amp;email=$notifyemail&amp;server=$ftphost&amp;user=$ftpuser&amp;pass=$ftppass&amp;submit=Generate Backup";</p>
<p>// Make POST to cPanel</p>
<p>fputs($socket,"POST /frontend/".$skin."/backup/dofullbackup.html?".$params." HTTP/1.0\r\n");</p>
<p>fputs($socket,"Host: $domain\r\n");</p>
<p>fputs($socket,"Authorization: Basic $pass\r\n");</p>
<p>fputs($socket,"Connection: Close\r\n");</p>
<p>fputs($socket,"\r\n");</p>
<p>// Grab response even if we don't do anything with it.</p>
<p>while (!feof($socket)) {</p>
<p>$response = fgets($socket,4096);</p>
<p>if ($debug) echo $response;</p>
<p>}</p>
<p>fclose($socket);</p>
<p>?&gt;</p>
<p><strong>To schedule the script to run regularly, save it as fullbackup.php in  your top directory (not /public_html, which would be less secure), and  enter a new cron job like the following:</strong></p>
<div>
<div>Code:</div>
<pre dir="ltr">15 2 * * * /usr/local/bin/php /home/youraccount/fullbackup.php</pre>
</div>
<p>(Runs every night at 2:15 a.m.)</p>
<p>or</p>
<div>
<div>Code:</div>
<pre dir="ltr">15 2 * * 1 /usr/local/bin/php /home/youraccount/fullbackup.php</pre>
</div>
<p>(Runs every Sunday night at 2:15 a.m.)</p>
<p><a href="http://underhost.com/backup.php"><strong>Just contact us if you want to orders a secured backup space into a  backup servers.</strong></a></p>
]]></content:encoded>
			<wfw:commentRss>http://networks.underhost.com/cpanel-tutorial/free-cpanel-backup-script/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

