<?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>InstaCarma Blog &#187; port</title>
	<atom:link href="http://www.instacarma.com/blog/tag/port/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.instacarma.com/blog</link>
	<description>Information Resource for Web Hosting Technical Support and Server Management</description>
	<lastBuildDate>Sat, 10 Mar 2012 21:44:10 +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>Changing /cpanel to something else</title>
		<link>http://www.instacarma.com/blog/technical/changing-cpanel-to-something-else/</link>
		<comments>http://www.instacarma.com/blog/technical/changing-cpanel-to-something-else/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 20:51:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[WHM]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=1125</guid>
		<description><![CDATA[Filed under: apache, cPanel, port, redirect, security, WHM Issue : How can you access cPanel like, say, http://domainname.com/xyz ? This is for security purposes. Solution : This can be done but not recommended as it would not be of much effect security-wise. Even if you change it, cPanel/WHM would still run on the standard ports [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/apache/'>apache</a>, <a href='http://www.instacarma.com/blog/tag/cpanel/'>cPanel</a>, <a href='http://www.instacarma.com/blog/tag/port/'>port</a>, <a href='http://www.instacarma.com/blog/tag/redirect/'>redirect</a>, <a href='http://www.instacarma.com/blog/tag/security/'>security</a>, <a href='http://www.instacarma.com/blog/tag/whm/'>WHM</a></p>
<p><strong>Issue : </strong></p>
<p>How can you access cPanel like, say, http://domainname.com/xyz ? This is for security purposes.</p>
<p><strong>Solution : </strong></p>
<p>This can be done but not recommended as it would not be of much effect security-wise.<br />
Even if you change it, cPanel/WHM would still run on the standard ports (2082/2083 &#038; 2086/2087) which is known to everyone. If you have a valid cPanel license then you can contact their support and get the ports changed. This coupled with a strong password (change regularly) should be good enough.</p>
<p>However, coming back to the original question, you can achieve it in the following way : </p>
<p>Go to <em>/usr/local/apache/conf/httpd.conf</em><br />
Find the following line : </p>
<blockquote><p>ScriptAliasMatch ^/?cpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi</p></blockquote>
<p>Comment it out by adding a &#8216;#&#8217; at the beginning and add the following line below that line : </p>
<blockquote><p>ScriptAliasMatch ^/?xyz/?$ /usr/local/cpanel/cgi-sys/redirect.cgi</p></blockquote>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/changing-cpanel-to-something-else/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/changing-cpanel-to-something-else/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the default port for SSH</title>
		<link>http://www.instacarma.com/blog/technical/changing-the-default-port-for-ssh/</link>
		<comments>http://www.instacarma.com/blog/technical/changing-the-default-port-for-ssh/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 16:52:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=1009</guid>
		<description><![CDATA[Filed under: port, ssh Issue : How to change the default port for SSH? Solution : Open the port (which you want to use for SSH) in the server firewall and restart the firewall to apply the change. Then, open the configuration file /etc/ssh/sshd_config using your favorite editor and change : #Port 22 to Port [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/port/'>port</a>, <a href='http://www.instacarma.com/blog/tag/ssh/'>ssh</a></p>
<p><strong>Issue : </strong></p>
<p>How to change the default port for SSH?</p>
<p><strong>Solution : </strong></p>
<p>Open the port (which you want to use for SSH) in the server firewall and restart the firewall to apply the change.<br />
Then, open the configuration file <em>/etc/ssh/sshd_config</em> using your favorite editor and change :</p>
<p>#Port 22<br />
to<br />
Port x </p>
<p>Replace &#8216;x&#8217; with the required port number.</p>
<p>Restart sshd :</p>
<blockquote><p>/etc/init.d/sshd restart</p></blockquote>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/changing-the-default-port-for-ssh/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/changing-the-default-port-for-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Allowing exim to run automatically on ports other than 25 and 26</title>
		<link>http://www.instacarma.com/blog/technical/allowing-exim-to-run-automatically-on-ports-apart-from-25-and-26/</link>
		<comments>http://www.instacarma.com/blog/technical/allowing-exim-to-run-automatically-on-ports-apart-from-25-and-26/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 17:21:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles and tutorials]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[port]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=961</guid>
		<description><![CDATA[Filed under: exim, port We can achieve this by starting exim on the particular port (say 588) using the following command: /usr/sbin/exim -oX 588 -bd But to get this done automatically whenever exim starts, do the following: 1) In /etc/chkserv.d, add a file called exim_588 (to run it on port 588). Note the underscore there. [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/exim/'>exim</a>, <a href='http://www.instacarma.com/blog/tag/port/'>port</a></p>
<p>We can achieve this by starting exim on the particular port (say 588) using the following command:</p>
<blockquote><p>/usr/sbin/exim -oX 588 -bd</p></blockquote>
<p>But to get this done automatically whenever exim starts, do the following:</p>
<p>1) In <em>/etc/chkserv.d</em>, add a file called exim_588 (to run it on port 588).</p>
<p>Note the underscore there. Do not replace it with hyphen as there is another file exim-26 that uses that. The content of the file would be:</p>
<blockquote><p>service[exim-588]=588,QUIT,220,/etc/rc.d/init.d/exim stop;/etc/rc.d/init.d/exim stop;/etc/rc.d/init.d/exim stop;/etc/rc.d/init.d/exim start;/usr/sbin/exim -oX 588 -bd
</p></blockquote>
<p>2) Enable it in <em>/etc/chkserv.d/chkservd.conf</em></p>
<p>exim_588:1</p>
<p>3) Now make the following changes in <em>/etc/init.d/exim</em>. Search for ALTPORT and add the following lines below that:</p>
<blockquote><p>if [ "`echo $file | awk -F_ '{ print $1 }'`" = "exim" ]; then<br />
ALTPORT2=&#8221;`echo $file | awk -F_ &#8216;{ print $2 }&#8217;`&#8221;<br />
fi
</p></blockquote>
<p>Again search for it and add these lines:</p>
<blockquote><p>if [ "$ALTPORT2" != "" -a "`grep \"daemon_smtp_port.* $ALTPORT2\" /etc/exim.conf`" = "" ]; then<br />
echo -n &#8220;Starting exim-$ALTPORT2: &#8221;<br />
TMPDIR=/tmp $DAEMONIZE /usr/sbin/exim -bd -oX $ALTPORT2<br />
echo $RESULT<br />
fi</p></blockquote>
<p>This will ensure that exim runs on port 588  on start. You can also see it enabled in Whm >> Service Manager.</p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/allowing-exim-to-run-automatically-on-ports-apart-from-25-and-26/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/allowing-exim-to-run-automatically-on-ports-apart-from-25-and-26/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

