<?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>Kazila, LLC</title>
	<atom:link href="http://www.kazila.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kazila.com/blog</link>
	<description>The offical company blog</description>
	<lastBuildDate>Sun, 13 May 2012 15:21:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to install/configure vsftpd on CentOS 5</title>
		<link>http://www.kazila.com/blog/2012/05/13/how-to-installconfigure-vsftpd-on-centos-5/</link>
		<comments>http://www.kazila.com/blog/2012/05/13/how-to-installconfigure-vsftpd-on-centos-5/#comments</comments>
		<pubDate>Sun, 13 May 2012 06:07:18 +0000</pubDate>
		<dc:creator>nate</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.kazila.com/blog/?p=93</guid>
		<description><![CDATA[This tutorial is going to outline the installation and configuration of vsftpd which is a secure and powerful FTP server for Linux based systems. You will first want to install vsftpd via yum 1 yum install vsftpd After it&#8217;s installed, you&#8217;ll want to make some configuration changes First, you will need to stop vsftpd 1 [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial is going to outline the installation and configuration of vsftpd which is a secure and powerful FTP server for Linux based systems. </p>
<p>You will first want to install vsftpd via yum</p>

<div class="wp_codebox"><table><tr id="p9314"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p93code14"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> vsftpd</pre></td></tr></table></div>

<p>After it&#8217;s installed, you&#8217;ll want to make some configuration changes </p>
<p>First, you will need to stop vsftpd</p>

<div class="wp_codebox"><table><tr id="p9315"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p93code15"><pre class="bash" style="font-family:monospace;">service vsftpd stop</pre></td></tr></table></div>

<p>Then edit the configuration file via nano</p>

<div class="wp_codebox"><table><tr id="p9316"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p93code16"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>vsftpd<span style="color: #000000; font-weight: bold;">/</span>vsftpd.conf</pre></td></tr></table></div>

<p>You will want to configure the following settings:</p>

<div class="wp_codebox"><table><tr id="p9317"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p93code17"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">anonymous_enable</span>=NO 
<span style="color: #007800;">local_enable</span>=YES
<span style="color: #007800;">write_enable</span>=YES</pre></td></tr></table></div>

<p>Now you will need a username and login &#8211; so lets create it</p>

<div class="wp_codebox"><table><tr id="p9318"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p93code18"><pre class="bash" style="font-family:monospace;">useradd <span style="color: #660033;">-d</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">dir</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>nologin ftpusername</pre></td></tr></table></div>

<p>Setup the password for the username you just created</p>

<div class="wp_codebox"><table><tr id="p9319"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p93code19"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">passwd</span> ftpusername</pre></td></tr></table></div>

<p>Remember, this user will be assigned access to directory so be sure to adjust this setting to your liking</p>

<div class="wp_codebox"><table><tr id="p9320"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p93code20"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> ftpusername <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">dir</span>
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">775</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">dir</span></pre></td></tr></table></div>

<p>Now you will want to create a userlist file via nano and then add the username</p>

<div class="wp_codebox"><table><tr id="p9321"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p93code21"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>vsftpd<span style="color: #000000; font-weight: bold;">/</span>vsftpd.user</pre></td></tr></table></div>

<p>And then add the username to the file</p>

<div class="wp_codebox"><table><tr id="p9322"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p93code22"><pre class="bash" style="font-family:monospace;">ftpusername</pre></td></tr></table></div>

<p>Save and exit</p>
<p>Configure the configuration file</p>

<div class="wp_codebox"><table><tr id="p9323"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code" id="p93code23"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># the list of users to give access</span>
<span style="color: #007800;">userlist_file</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>vsftpd.user
&nbsp;
<span style="color: #666666; font-style: italic;"># this list is on</span>
<span style="color: #007800;">userlist_enable</span>=YES
&nbsp;
<span style="color: #666666; font-style: italic;"># It is not a list of users to deny ftp access</span>
<span style="color: #007800;">userlist_deny</span>=NO</pre></td></tr></table></div>

<p>Then make sure the following file looks like this:</p>

<div class="wp_codebox"><table><tr id="p9324"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p93code24"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>shells</pre></td></tr></table></div>


<div class="wp_codebox"><table><tr id="p9325"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code" id="p93code25"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ksh
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>rc
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>tcsh
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>tcsh
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>esh
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">dash</span>
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span>
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">rbash</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>nologin</pre></td></tr></table></div>

<p>Finally, you&#8217;re ready to fire things up and give it a shot</p>

<div class="wp_codebox"><table><tr id="p9326"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p93code26"><pre class="bash" style="font-family:monospace;">service vsftpd start</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.kazila.com/blog/2012/05/13/how-to-installconfigure-vsftpd-on-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quickly Install a PPTD VPN on your Xen VPS (CentOS 5 x64 and x86_64)</title>
		<link>http://www.kazila.com/blog/2012/03/11/quickly-install-pptd-vpn-on-your-xen-vps-centos-5/</link>
		<comments>http://www.kazila.com/blog/2012/03/11/quickly-install-pptd-vpn-on-your-xen-vps-centos-5/#comments</comments>
		<pubDate>Mon, 12 Mar 2012 03:14:23 +0000</pubDate>
		<dc:creator>nate</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.kazila.com/blog/?p=73</guid>
		<description><![CDATA[If you are having issues manually installing and configuring a PPTD VPN from scratch, you can take advantage of this shell script that will install everything for you. Copy and past the following code and save it as a .sh file. Then simply chmod 755 filename.sh and execute the file using sh filename.sh 1 2 [...]]]></description>
			<content:encoded><![CDATA[<p>If you are having issues manually installing and configuring a PPTD VPN from scratch, you can take advantage of this shell script that will install everything for you. </p>
<p>Copy and past the following code and save it as a .sh file. Then simply <code>chmod 755 filename.sh</code> and execute the file using <code>sh filename.sh</code></p>

<div class="wp_codebox"><table><tr id="p7329"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
</pre></td><td class="code" id="p73code29"><pre class="bash" style="font-family:monospace;">yum remove <span style="color: #660033;">-y</span> pptpd ppp
iptables <span style="color: #660033;">--flush</span> POSTROUTING <span style="color: #660033;">--table</span> nat
iptables <span style="color: #660033;">--flush</span> FORWARD
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>pptpd.conf
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ppp
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.diahosting.com<span style="color: #000000; font-weight: bold;">/</span>dload<span style="color: #000000; font-weight: bold;">/</span>dkms-2.0.17.5-<span style="color: #000000;">1</span>.noarch.rpm
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.diahosting.com<span style="color: #000000; font-weight: bold;">/</span>dload<span style="color: #000000; font-weight: bold;">/</span>kernel_ppp_mppe-1.0.2-3dkms.noarch.rpm
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.diahosting.com<span style="color: #000000; font-weight: bold;">/</span>dload<span style="color: #000000; font-weight: bold;">/</span>pptpd-1.3.4-<span style="color: #000000;">1</span>.rhel5.1.i386.rpm
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.diahosting.com<span style="color: #000000; font-weight: bold;">/</span>dload<span style="color: #000000; font-weight: bold;">/</span>ppp-2.4.4-<span style="color: #000000;">9.0</span>.rhel5.i386.rpm
&nbsp;
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">make</span> libpcap iptables gcc-c++ logrotate <span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #c20cb9; font-weight: bold;">cpio</span> <span style="color: #c20cb9; font-weight: bold;">perl</span> pam tcp_wrappers
rpm <span style="color: #660033;">-ivh</span> dkms-2.0.17.5-<span style="color: #000000;">1</span>.noarch.rpm
rpm <span style="color: #660033;">-ivh</span> kernel_ppp_mppe-1.0.2-3dkms.noarch.rpm
rpm <span style="color: #660033;">-qa</span> kernel_ppp_mppe
rpm <span style="color: #660033;">-Uvh</span> ppp-2.4.4-<span style="color: #000000;">9.0</span>.rhel5.i386.rpm
rpm <span style="color: #660033;">-ivh</span> pptpd-1.3.4-<span style="color: #000000;">1</span>.rhel5.1.i386.rpm
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">mknod</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>ppp c <span style="color: #000000;">108</span> <span style="color: #000000;">0</span> 
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>ipv4<span style="color: #000000; font-weight: bold;">/</span>ip_forward 
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;mknod /dev/ppp c 108 0&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.local
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;echo 1 &gt; /proc/sys/net/ipv4/ip_forward&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.local
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;localip 172.16.36.1&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>pptpd.conf
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;remoteip 172.16.36.2-254&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>pptpd.conf
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;ms-dns 8.8.8.8&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ppp<span style="color: #000000; font-weight: bold;">/</span>options.pptpd
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;ms-dns 8.8.4.4&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ppp<span style="color: #000000; font-weight: bold;">/</span>options.pptpd
&nbsp;
<span style="color: #007800;">pass</span>=<span style="color: #000000; font-weight: bold;">`</span>openssl rand <span style="color: #000000;">6</span> -base64<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span> <span style="color: #007800;">pass</span>=<span style="color: #007800;">$1</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;vpn pptpd <span style="color: #007800;">${pass}</span> *&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ppp<span style="color: #000000; font-weight: bold;">/</span>chap-secrets
&nbsp;
iptables <span style="color: #660033;">-t</span> nat <span style="color: #660033;">-A</span> POSTROUTING <span style="color: #660033;">-s</span> 172.16.36.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">24</span> <span style="color: #660033;">-j</span> SNAT <span style="color: #660033;">--to-source</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ifconfig</span>  <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">'inet addr:'</span><span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-v</span> <span style="color: #ff0000;">'127.0.0.1'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> -d: <span style="color: #660033;">-f2</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'NR==1 { print $1}'</span><span style="color: #000000; font-weight: bold;">`</span>
iptables <span style="color: #660033;">-A</span> FORWARD <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">--syn</span> <span style="color: #660033;">-s</span> 172.16.36.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">24</span> <span style="color: #660033;">-j</span> TCPMSS <span style="color: #660033;">--set-mss</span> <span style="color: #000000;">1356</span>
service iptables save
&nbsp;
chkconfig iptables on
chkconfig pptpd on
&nbsp;
service iptables start
service pptpd start
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;VPN service is installed, your VPN username is vpn, VPN password is <span style="color: #007800;">${pass}</span>&quot;</span></pre></td></tr></table></div>

<p>After the installation is complete, the script will display a randomly generated username and password. You can easily change this by editing the file /etc/ppp/chap-secrets and restarting PPTD:</p>

<div class="wp_codebox"><table><tr id="p7330"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p73code30"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>pptpd restart</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.kazila.com/blog/2012/03/11/quickly-install-pptd-vpn-on-your-xen-vps-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the default SSH port on your VPS &#8211; CentOS 5</title>
		<link>http://www.kazila.com/blog/2011/04/15/changing-the-ssh-port-on-your-vps-centos-5/</link>
		<comments>http://www.kazila.com/blog/2011/04/15/changing-the-ssh-port-on-your-vps-centos-5/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 21:13:08 +0000</pubDate>
		<dc:creator>nate</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.kazila.com/blog/?p=40</guid>
		<description><![CDATA[This is not in anyway a game changer when it comes to security buy by simply changing your SSH port you can cut down on over 95% of automated brute force attempts. By default SSH utilizes the port 22; here&#8217;s how to change it to something else on CentOS: Login into SSH and edit the [...]]]></description>
			<content:encoded><![CDATA[<p>This is not in anyway a game changer when it comes to security buy by simply changing your SSH port you can cut down on over 95% of automated brute force attempts. By default SSH utilizes the port 22; here&#8217;s how to change it to something else on CentOS:</p>
<p>Login into SSH and edit the sshd_config file which is located in /etc/ssh/.</p>

<div class="wp_codebox"><table><tr id="p4035"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p40code35"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssh<span style="color: #000000; font-weight: bold;">/</span>sshd_config</pre></td></tr></table></div>

<p>Scroll down until you see the following line:</p>

<div class="wp_codebox"><table><tr id="p4036"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p40code36"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#Port 22</span></pre></td></tr></table></div>

<p>Delete the # symbol and change the 22 to a different port to your liking. It should look like this:</p>

<div class="wp_codebox"><table><tr id="p4037"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p40code37"><pre class="bash" style="font-family:monospace;">Port <span style="color: #000000;">5757</span></pre></td></tr></table></div>

<p>Save the file (CTRL-X), Y, and then enter. Finally, you just need to restart SSH</p>

<div class="wp_codebox"><table><tr id="p4038"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p40code38"><pre class="bash" style="font-family:monospace;">service sshd reload</pre></td></tr></table></div>

<p>Afterwards, it&#8217;s important to make sure you open up a new window and attempt to login to your virtual machine using the new port. If you messed things up, you can always login to SolusVM and update your configuration via console. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.kazila.com/blog/2011/04/15/changing-the-ssh-port-on-your-vps-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test the Disk I/O on your VPS</title>
		<link>http://www.kazila.com/blog/2011/04/13/test-the-disk-io-on-your-vps/</link>
		<comments>http://www.kazila.com/blog/2011/04/13/test-the-disk-io-on-your-vps/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 06:24:53 +0000</pubDate>
		<dc:creator>nate</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.kazila.com/blog/?p=23</guid>
		<description><![CDATA[There are a few commands that allow you to test the disk I/O speeds on your virtual machine. Please note that scores do vary and are not a completely accurate assessment of disk I/O. 1 dd if=/dev/zero of=/tmp/test bs=64k count=16k conv=fdatasync Example output: 1 2 3 4 5 &#91;root@server~&#93;# dd if=/dev/zero of=/tmp/test bs=64k count=16k conv=fdatasync [...]]]></description>
			<content:encoded><![CDATA[<p>There are a few commands that allow you to test the disk I/O speeds on your virtual machine. Please note that scores do vary and are not a completely accurate assessment of disk I/O.</p>

<div class="wp_codebox"><table><tr id="p2344"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p23code44"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #007800;">bs</span>=64k <span style="color: #007800;">count</span>=16k <span style="color: #007800;">conv</span>=fdatasync</pre></td></tr></table></div>

<p>Example output:</p>

<div class="wp_codebox"><table><tr id="p2345"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p23code45"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>server~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># dd if=/dev/zero of=/tmp/test bs=64k count=16k conv=fdatasync</span>
<span style="color: #000000;">16384</span>+<span style="color: #000000;">0</span> records <span style="color: #000000; font-weight: bold;">in</span>
<span style="color: #000000;">16384</span>+<span style="color: #000000;">0</span> records out
<span style="color: #000000;">1073741824</span> bytes <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1.1</span> GB<span style="color: #7a0874; font-weight: bold;">&#41;</span> copied, <span style="color: #000000;">4.89845</span> seconds, <span style="color: #000000;">219</span> MB<span style="color: #000000; font-weight: bold;">/</span>s
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>server~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#</span></pre></td></tr></table></div>

<p>Or you can try hdparm &#8211; if it&#8217;s not installed, you will need to install it via yum:</p>

<div class="wp_codebox"><table><tr id="p2346"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p23code46"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> hdparm</pre></td></tr></table></div>


<div class="wp_codebox"><table><tr id="p2347"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p23code47"><pre class="bash" style="font-family:monospace;">hdparm <span style="color: #660033;">-t</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1</pre></td></tr></table></div>

<p>Example output:</p>

<div class="wp_codebox"><table><tr id="p2348"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p23code48"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>server~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># hdparm -t /dev/sda1</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1: Timing buffered disk reads:  <span style="color: #000000;">1158</span> MB <span style="color: #000000; font-weight: bold;">in</span>  <span style="color: #000000;">3.01</span> seconds = <span style="color: #000000;">385.34</span> MB<span style="color: #000000; font-weight: bold;">/</span>sec
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>server~<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#</span></pre></td></tr></table></div>

<p>There is an ongoing <a href="http://www.webhostingtalk.com/showthread.php?t=1003345">thread posted on WebHostingTalk </a>which will allow you to compare your score. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.kazila.com/blog/2011/04/13/test-the-disk-io-on-your-vps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 5.5 + LAMP + Webmin Installation Tutorial</title>
		<link>http://www.kazila.com/blog/2011/04/10/centos-5-5-lamp-webmin-installation-tutorial/</link>
		<comments>http://www.kazila.com/blog/2011/04/10/centos-5-5-lamp-webmin-installation-tutorial/#comments</comments>
		<pubDate>Sun, 10 Apr 2011 20:35:33 +0000</pubDate>
		<dc:creator>nate</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.kazila.com/blog/?p=5</guid>
		<description><![CDATA[The goal here is to setup Apache, MySQL and PHP which is commonly referred to as a &#8220;LAMP&#8221; server. Everyone&#8217;s requirements are different but this will give you an easy way to get started. You will need a functional server with a fresh, clean installation of CentOS 5.5 to begin. Installing Apache You will want [...]]]></description>
			<content:encoded><![CDATA[<p>The goal here is to setup Apache, MySQL and PHP which is commonly referred to as a &#8220;LAMP&#8221; server. Everyone&#8217;s requirements are different but this will give you an easy way to get started. You will need a functional server with a fresh, clean installation of CentOS 5.5 to begin.</p>
<p><strong>Installing Apache</strong></p>
<p>You will want to utilize the yum repository for easy installation:</p>

<div class="wp_codebox"><table><tr id="p567"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p5code67"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> httpd httpd-devel</pre></td></tr></table></div>

<p>Wait for the installation to complete then start up Apache:</p>

<div class="wp_codebox"><table><tr id="p568"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p5code68"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>httpd start</pre></td></tr></table></div>

<p>The location of the Apache configuration file should be located here: /etc/httpd/conf/httpd.conf<br />
If not you can run the following command and SSH which should output the location:</p>

<div class="wp_codebox"><table><tr id="p569"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p5code69"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">whereis</span> httpd.conf</pre></td></tr></table></div>

<p>Be sure to add the Apache daemon into start-up so it runs automatically after a reboot:</p>

<div class="wp_codebox"><table><tr id="p570"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p5code70"><pre class="bash" style="font-family:monospace;">chkconfig httpd on</pre></td></tr></table></div>

<p><strong>Installing MySQL (latest version)</strong></p>
<p>Utilize the yum repository again for quick and easy installation:</p>

<div class="wp_codebox"><table><tr id="p571"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p5code71"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> mysql mysql-server mysql-devel</pre></td></tr></table></div>

<p>Then run the MySQL daemon:</p>

<div class="wp_codebox"><table><tr id="p572"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p5code72"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysqld start</pre></td></tr></table></div>

<p>Add the MySQL daemon into start-up so it runs automatically after a reboot:</p>

<div class="wp_codebox"><table><tr id="p573"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p5code73"><pre class="bash" style="font-family:monospace;">chkconfig mysqld on</pre></td></tr></table></div>

<p>If you want to make sure MySQL is running, run the following command:</p>

<div class="wp_codebox"><table><tr id="p574"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p5code74"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ps</span> aux <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> mysql</pre></td></tr></table></div>

<p>This step is of unnecessary but it&#8217;s just in case you run into any issues.</p>
<p>For security purposes, you will want to change the MySQL root password through the MySQL console:</p>

<div class="wp_codebox"><table><tr id="p575"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p5code75"><pre class="bash" style="font-family:monospace;">mysql</pre></td></tr></table></div>

<p>The console should open, then run the following:</p>

<div class="wp_codebox"><table><tr id="p576"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p5code76"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&amp;</span>gt; USE mysql;
mysql<span style="color: #000000; font-weight: bold;">&amp;</span>gt; UPDATE user SET <span style="color: #007800;">Password</span>=PASSWORD<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'&lt;em&gt;password&lt;/em&gt;'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> WHERE <span style="color: #007800;">user</span>=<span style="color: #ff0000;">'root'</span>;
mysql<span style="color: #000000; font-weight: bold;">&amp;</span>gt; FLUSH PRIVILEGES;</pre></td></tr></table></div>

<p>Note: be sure to change the (&#8216;password&#8217;) to your liking.</p>
<p>To login into MySQL as root run:</p>

<div class="wp_codebox"><table><tr id="p577"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p5code77"><pre class="bash" style="font-family:monospace;">mysql <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span></pre></td></tr></table></div>

<p>Once you are logged in you can create a database. I am going to use &#8220;blog&#8221; as the database name and add the user &#8220;john&#8221; with full privileges:</p>

<div class="wp_codebox"><table><tr id="p578"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p5code78"><pre class="bash" style="font-family:monospace;">mysql <span style="color: #000000; font-weight: bold;">&amp;</span>gt; create database blog
mysql <span style="color: #000000; font-weight: bold;">&amp;</span>gt; GRANT ALL PRIVILEGES ON blog.<span style="color: #000000; font-weight: bold;">*</span> TO <span style="color: #ff0000;">'guest'</span><span style="color: #000000; font-weight: bold;">@</span><span style="color: #ff0000;">'localhost'</span> IDENTIFIED BY <span style="color: #ff0000;">'john'</span> WITH GRANT OPTION;
mysql<span style="color: #000000; font-weight: bold;">&amp;</span>gt; USE mysql;
mysql<span style="color: #000000; font-weight: bold;">&amp;</span>gt; UPDATE user SET <span style="color: #007800;">Password</span>=PASSWORD<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'password'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> WHERE <span style="color: #007800;">user</span>=<span style="color: #ff0000;">'john'</span>;</pre></td></tr></table></div>

<p>And that&#8217;s it for MySQL!</p>
<p><strong>Installing PHP</strong></p>
<p>Install PHP through yum with some required modules. These can be changed to meet your requirements but should be sufficient for most setups:</p>

<div class="wp_codebox"><table><tr id="p579"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p5code79"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml</pre></td></tr></table></div>

<p>By restarting Apache, PHP should fire up:</p>

<div class="wp_codebox"><table><tr id="p580"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p5code80"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>httpd restart</pre></td></tr></table></div>

<p>Your &#8220;public_html&#8221; folder or &#8220;www&#8221; folder is located in the /var/www/html/ directory. To test and see if PHP is working, you will want to create a PHP file with the following code:</p>

<div class="wp_codebox"><table><tr id="p581"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p5code81"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>?php phpinfo<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>; ?<span style="color: #000000; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

<p>I normally call this file, phpinfo.php. You can then access the file through your IP address (eg. http://IPADDRESS/phpinfo.php)</p>
<p>You will want to install phpMyAdmin for easier MySQL DB management. To install simply run:</p>

<div class="wp_codebox"><table><tr id="p582"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p5code82"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> phpmyadmin</pre></td></tr></table></div>

<p>Then access phpMyAdmin through the following URL: http://ip-address/phpmyadmin</p>
<p><strong>Installing Webmin (Latest Version) </strong></p>
<p>First download the RPM:</p>

<div class="wp_codebox"><table><tr id="p583"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p5code83"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>prdownloads.sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>webadmin<span style="color: #000000; font-weight: bold;">/</span>webmin-<span style="color: #000000;">1.580</span>-<span style="color: #000000;">1</span>.noarch.rpm</pre></td></tr></table></div>

<p>Then run the following command:</p>

<div class="wp_codebox"><table><tr id="p584"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p5code84"><pre class="bash" style="font-family:monospace;">rpm <span style="color: #660033;">-U</span> webmin-<span style="color: #000000;">1.580</span>-<span style="color: #000000;">1</span>.noarch.rpm</pre></td></tr></table></div>

<p>(latest RPM can be found here: http://www.webmin.com/rpm.html)</p>
<p>The rest of the install will be done automatically to the directory /usr/libexec/webmin, the administration username set to root and the password to your current root password. You should now be able to login to Webmin at the URL http://localhost:10000/. Or if accessing it remotely, replace localhost with your system&#8217;s IP address.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kazila.com/blog/2011/04/10/centos-5-5-lamp-webmin-installation-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

