<?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"
	>

<channel>
	<title>Linux Administration</title>
	<atom:link href="http://blog.ilmuit.com/azhar/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ilmuit.com/azhar</link>
	<description>Linux, Apache, MySQL, PHP, cPanel, WHM, VPS</description>
	<pubDate>Fri, 04 Jan 2013 11:52:06 +0000</pubDate>
	
	<language>en</language>
			<item>
		<title>How do I use wget for URLs with ampersands?</title>
		<link>http://blog.ilmuit.com/azhar/2013/01/04/how-do-i-use-wget-for-urls-with-ampersands/</link>
		<comments>http://blog.ilmuit.com/azhar/2013/01/04/how-do-i-use-wget-for-urls-with-ampersands/#comments</comments>
		<pubDate>Fri, 04 Jan 2013 11:52:06 +0000</pubDate>
		<dc:creator>azhar</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[cron]]></category>

		<category><![CDATA[cronjob]]></category>

		<category><![CDATA[crontab]]></category>

		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://blog.ilmuit.com/azhar/?p=61</guid>
		<description><![CDATA[I just spent two hours trying to figure this out: Why wget was not retrieving URL with variable correctly. I have a php script that need to be run with crontab through the control panel. Those requires variables on the url. Example of cron.php:
http://www.mydomain.com/cron.php?cron=do&#38;day=15
This cron works fine from the browser. However, when I use this [...]]]></description>
			<content:encoded><![CDATA[<p>I just spent two hours trying to figure this out: Why wget was not retrieving URL with variable correctly. I have a php script that need to be run with crontab through the control panel. Those requires variables on the url. Example of cron.php:</p>
<p>http://www.mydomain.com/cron.php?cron=do&amp;day=15</p>
<p>This cron works fine from the browser. However, when I use this command through wget:</p>
<p>/usr/bin/wget &#8211;delete-after http://www.mydomain.com/cron.php?cron=do&amp;day=1</p>
<p>it end up with cron.php?cron=do</p>
<p>http://www.mydomain.com/cron.php?cron=do</p>
<p>After doing a research, I found the solution. I need to escape the ? and the &amp; and it works like a charm.</p>
<p>/usr/bin/wget &#8211;delete-after http://www.mydomain.com/cron.php\?cron=do\&amp;day=1</p>
<p>Or enclose the URL in single quotes like this:</p>
<p>/usr/bin/wget &#8211;delete-after &#8216;http://www.mydomain.com/cron.php?cron=do&amp;day=1&#8242;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ilmuit.com/azhar/2013/01/04/how-do-i-use-wget-for-urls-with-ampersands/feed/</wfw:commentRss>
		</item>
		<item>
		<title>locate can not open /var/lib/mlocate/mlocate.db&#8217; no such file or directory</title>
		<link>http://blog.ilmuit.com/azhar/2012/12/17/locate-can-not-open-varlibmlocatemlocatedb-no-such-file-or-directory/</link>
		<comments>http://blog.ilmuit.com/azhar/2012/12/17/locate-can-not-open-varlibmlocatemlocatedb-no-such-file-or-directory/#comments</comments>
		<pubDate>Mon, 17 Dec 2012 13:40:54 +0000</pubDate>
		<dc:creator>azhar</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[error]]></category>

		<category><![CDATA[locate]]></category>

		<category><![CDATA[mlocate]]></category>

		<category><![CDATA[updatedb]]></category>

		<guid isPermaLink="false">http://blog.ilmuit.com/azhar/?p=56</guid>
		<description><![CDATA[If you are using &#8216;locate&#8217; command in Linux and get an error message: locate: can not open /var/lib/mlocate/mlocate.db&#8217; no such file or directory, don&#8217;t worry because this normally happen when you run &#8216;locate&#8217; for the first time.
To fix this, you need to create or update mlocate database, a database used by locate. Simply execute updatedb [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using &#8216;locate&#8217; command in Linux and get an error message: <strong>locate: can not open /var/lib/mlocate/mlocate.db&#8217; no such file or directory</strong>, don&#8217;t worry because this normally happen when you run &#8216;locate&#8217; for the first time.</p>
<p>To fix this, you need to create or update mlocate database, a database used by locate. Simply execute <em>updatedb</em> command:</p>
<p><code>$ updatedb</code></p>
<p>Now you can continue with locate commands as normal.</p>
<p>updatedb command will creates or updates a database at &#8216;/var/lib/mlocate/mlocate.db&#8217; which locate uses <span style="font-family: Verdana,Arial,Helvetica,sans-serif">to find a files</span>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ilmuit.com/azhar/2012/12/17/locate-can-not-open-varlibmlocatemlocatedb-no-such-file-or-directory/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Installing Webmin on CentOS</title>
		<link>http://blog.ilmuit.com/azhar/2012/09/11/installing-webmin-on-centos/</link>
		<comments>http://blog.ilmuit.com/azhar/2012/09/11/installing-webmin-on-centos/#comments</comments>
		<pubDate>Tue, 11 Sep 2012 10:05:00 +0000</pubDate>
		<dc:creator>azhar</dc:creator>
		
		<category><![CDATA[Control Panel]]></category>

		<category><![CDATA[webmin]]></category>

		<guid isPermaLink="false">http://blog.ilmuit.com/azhar/?p=50</guid>
		<description><![CDATA[Webmin is a web-based interface for system administration for Unix/Linux. By using any modern web browser, you can setup user accounts, Apache, DNS, emails and so on without needed to manually edit Unix configuration files like /etc/passwd.
Below are instructions on how to install webmin control panels on your VPS or Dedicated Server:
1) Connect SSH to [...]]]></description>
			<content:encoded><![CDATA[<p>Webmin is a web-based interface for system administration for Unix/Linux. By using any modern web browser, you can setup user accounts, Apache, DNS, emails and so on without needed to manually edit Unix configuration files like /etc/passwd.</p>
<p>Below are instructions on how to install webmin control panels on your VPS or Dedicated Server:</p>
<p>1) <span class="mediumtext"><span class="mediumtext">Connect SSH to your server and type the following command:</span></span></p>
<p>Create new temporarily folder:<br />
<code># mkdir tmp</code></p>
<p>Change to temporarily folder:<br />
<code># cd tmp</code></p>
<p>Download webmin:<br />
<code># wget http://sourceforge.net/projects/webadmin/files/webmin/1.xxx/webmin-1.xxx-1.noarch.rpm</code></p>
<p>(Replace xxx with the corresponding Webmin version)</p>
<p>Once the file has been downloaded, enter this command, this will install Webmin and all its dependencies:</p>
<p><code># rpm -ivh webmin-1.xxx-1.noarch.rpm</code></p>
<p>Now you can login to your newly install webmin control panel at server IP address at port 10000. So if your server IP address is 123.123.123.123 then your webmin address is:</p>
<p>https://123.123.123.123:10000</p>
<p>Login to Webmin as root using your password.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ilmuit.com/azhar/2012/09/11/installing-webmin-on-centos/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to Create Nameserver with Kloxo</title>
		<link>http://blog.ilmuit.com/azhar/2012/09/11/how-to-create-nameserver-with-kloxo/</link>
		<comments>http://blog.ilmuit.com/azhar/2012/09/11/how-to-create-nameserver-with-kloxo/#comments</comments>
		<pubDate>Tue, 11 Sep 2012 10:00:10 +0000</pubDate>
		<dc:creator>azhar</dc:creator>
		
		<category><![CDATA[Control Panel]]></category>

		<category><![CDATA[dns]]></category>

		<category><![CDATA[kloxo]]></category>

		<category><![CDATA[Nameserver]]></category>

		<guid isPermaLink="false">http://blog.ilmuit.com/azhar/?p=48</guid>
		<description><![CDATA[In kloxo it&#8217;s very easy to setup DNS. Before you create your own nameserver, first you will have to decide what nameservers you want to set on your VPS or dedicated server. This guide will show you how to register a new nameservers on a VPS or dedicated server using the Kloxo control panel.
1) Login [...]]]></description>
			<content:encoded><![CDATA[<p>In kloxo it&#8217;s very easy to setup DNS. Before you create your own nameserver, first you will have to decide what nameservers you want to set on your VPS or dedicated server. This guide will show you how to register a new nameservers on a VPS or dedicated server using the Kloxo control panel.</p>
<p>1) Login to your Kloxo panel securely using SSL</p>
<p>2) Click on the &#8220;DNS Templates&#8221; icon from the home screen.</p>
<p><img src="http://blog.ilmuit.com/azhar/files/2012/01/resources-dns-templates.gif" alt="" width="535" height="214" /></p>
<p>3) You will be presented with the following screen, click on <strong>Add DNS Template</strong></p>
<p><img src="http://blog.ilmuit.com/azhar/files/2012/01/add-dns-template.gif" alt="" width="609" height="314" /></p>
<p>4) Add settings in your DNS template box. Enter your Primary and Secondary DNS with ns1.yourdomain.com and ns2.yourdomain.com (see below).</p>
<p><img src="http://blog.ilmuit.com/azhar/files/2012/01/add-ip-dns-template.gif" alt="" width="508" height="316" /></p>
<p>5) Click <strong>Add</strong> button</p>
<p>Finally, you now need to create / register the name servers at your domain registrar. Log in to your domain registrar and edit the assigned nameservers so that it now points at your new nameserver names (ns1.yourdomain.com, ns2.yourdomain.com). Please contact your registrar to assist you.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ilmuit.com/azhar/2012/09/11/how-to-create-nameserver-with-kloxo/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Yum Error: Cannot find a valid baseurl for repo</title>
		<link>http://blog.ilmuit.com/azhar/2012/09/11/yum-error-cannot-find-a-valid-baseurl-for-repo/</link>
		<comments>http://blog.ilmuit.com/azhar/2012/09/11/yum-error-cannot-find-a-valid-baseurl-for-repo/#comments</comments>
		<pubDate>Tue, 11 Sep 2012 09:56:34 +0000</pubDate>
		<dc:creator>azhar</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[centos]]></category>

		<category><![CDATA[dns]]></category>

		<category><![CDATA[Nameserver]]></category>

		<category><![CDATA[ping]]></category>

		<category><![CDATA[repo]]></category>

		<category><![CDATA[resolv]]></category>

		<category><![CDATA[resolv.conf]]></category>

		<guid isPermaLink="false">http://blog.ilmuit.com/azhar/?p=46</guid>
		<description><![CDATA[I Just installed CentOS and tried to run the yum tool to install MySQL Server:
# yum install mysql-server
But I keep getting the same error, here is the result:
# yum install mysql-server
Setting up Install Process
Setting up repositories
Cannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update
I figured out that my [...]]]></description>
			<content:encoded><![CDATA[<p>I Just installed CentOS and tried to run the yum tool to install MySQL Server:</p>
<p><code># yum install mysql-server</code></p>
<p>But I keep getting the same error, here is the result:</p>
<p><code># yum install mysql-server<br />
Setting up Install Process<br />
Setting up repositories<br />
Cannot find a valid baseurl for repo: update<br />
Error: Cannot find a valid baseurl for repo: update</code></p>
<p>I figured out that my DNS is not working. There is no response to www.centos.org.</p>
<p><code># ping www.centos.org<br />
ping: unknown host www.centos.org</code></p>
<p>Not only Centos website, it also can&#8217;t recognize any domain name. As a solution, I&#8217;ve to set up new domain name server (DNS) in my machine by add the following line to /etc/resolv.conf:</p>
<p><code>nameserver 8.8.8.8<br />
nameserver 8.8.4.4</code></p>
<p>Save and close the file. Done! Now I just added primary and secondary dns server in my machine. To check if the machine work <a rel="nofollow" href="http://www.techiecorner.com/123/how-to-add-primary-and-secondary-dns-server-etcresolveconf-linux/#" target="_blank"></a>fine, I type <strong>ping www.centos.org</strong>. It has a reply, means it work well. So, I tried yum command again and all is working.</p>
<p>Hopefully this will help someone else.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ilmuit.com/azhar/2012/09/11/yum-error-cannot-find-a-valid-baseurl-for-repo/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to install MySQL on CentOS</title>
		<link>http://blog.ilmuit.com/azhar/2012/09/10/how-to-install-mysql-on-centos/</link>
		<comments>http://blog.ilmuit.com/azhar/2012/09/10/how-to-install-mysql-on-centos/#comments</comments>
		<pubDate>Mon, 10 Sep 2012 21:26:29 +0000</pubDate>
		<dc:creator>azhar</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[centos]]></category>

		<category><![CDATA[mysqld]]></category>

		<guid isPermaLink="false">http://blog.ilmuit.com/azhar/?p=44</guid>
		<description><![CDATA[Before installing MySQL Server, you need to determine if MySQL has been installed on your Linux server. Use the following command:
# rpm -qa &#124; grep mysql
Check the output list:
mysqlclient10-3.23.58-4.RHEL4.1
libdbi-dbd-mysql-0.6.5-10.RHEL4.1
mysql-4.1.20-1.RHEL4.1
mysql-devel-4.1.20-1.RHEL4.1
If mysql-server* package is not on the list, means you haven’t installed the mysql-server package.
To start install MySQL Server, do the following command (Yum must be installed):
# [...]]]></description>
			<content:encoded><![CDATA[<p>Before installing MySQL Server, you need to determine if MySQL has been installed on your Linux server. Use the following command:</p>
<p><code># rpm -qa | grep mysql</code></p>
<p>Check the output list:</p>
<p><code>mysqlclient10-3.23.58-4.RHEL4.1<br />
libdbi-dbd-mysql-0.6.5-10.RHEL4.1<br />
mysql-4.1.20-1.RHEL4.1<br />
mysql-devel-4.1.20-1.RHEL4.1</code></p>
<p>If <strong>mysql-server*</strong> package is not on the list, means you haven’t installed the mysql-server package.</p>
<p>To start install MySQL Server, do the following command (Yum must be installed):</p>
<p><code># yum install mysql-server</code></p>
<p>Once the installation is complete, recheck the package again:</p>
<p><code># rpm -qa | grep mysql</code></p>
<p><code>mysqlclient10-3.23.58-4.RHEL4.1<br />
libdbi-dbd-mysql-0.6.5-10.RHEL4.1<br />
mysql-4.1.20-3.RHEL4.1.el4_6.1<br />
mysql-devel-4.1.20-3.RHEL4.1.el4_6.1<br />
<strong>mysql-server-4.1.20-3.RHEL4.1.el4_6.1 </strong></code></p>
<p>Now start MySQL server daemon:</p>
<p><code># service mysqld start</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ilmuit.com/azhar/2012/09/10/how-to-install-mysql-on-centos/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Aktifkan IP Forwarding dalam Linux</title>
		<link>http://blog.ilmuit.com/azhar/2012/09/10/aktifkan-ip-forwarding-dalam-linux/</link>
		<comments>http://blog.ilmuit.com/azhar/2012/09/10/aktifkan-ip-forwarding-dalam-linux/#comments</comments>
		<pubDate>Mon, 10 Sep 2012 21:08:44 +0000</pubDate>
		<dc:creator>azhar</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[IP Forwarding]]></category>

		<category><![CDATA[sysctl]]></category>

		<category><![CDATA[sysctl.conf]]></category>

		<guid isPermaLink="false">http://blog.ilmuit.com/azhar/?p=25</guid>
		<description><![CDATA[Kebiasaannya, dalam mana-mana distribusi Linux, IP Forwarding akan dinyahaktif secara default. IP Forwarding sangat berguna dalam persekitaran router/gateway atau untuk menjadikan Linux box sebagai pelayan VPN.
Untuk memeriksa IP Forwading, gunakan arahan:
# sysctl net.ipv4.ip_forward net.ipv4.ip_forward = 0
Atau:
# echo 1 &#62; /proc/sys/net/ipv4/ip_forward
Untuk mengaktif IP forwarding, sunting /etc/sysctl.conf dan tambah:
net.ipv4.ip_forward = 1
]]></description>
			<content:encoded><![CDATA[<p>Kebiasaannya, dalam mana-mana distribusi Linux, <strong>IP Forwarding</strong> akan dinyahaktif secara <em>default</em>. IP Forwarding sangat berguna dalam persekitaran router/gateway atau untuk menjadikan Linux box sebagai pelayan VPN.</p>
<p>Untuk memeriksa IP Forwading, gunakan arahan:</p>
<p><code># sysctl net.ipv4.ip_forward net.ipv4.ip_forward = 0</code></p>
<p>Atau:</p>
<p><code># echo 1 &gt; /proc/sys/net/ipv4/ip_forward</code></p>
<p>Untuk mengaktif IP forwarding, sunting <strong>/etc/sysctl.conf</strong> dan tambah:</p>
<p><code>net.ipv4.ip_forward = 1</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ilmuit.com/azhar/2012/09/10/aktifkan-ip-forwarding-dalam-linux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tukar hostname dalam Linux</title>
		<link>http://blog.ilmuit.com/azhar/2012/09/10/tukar-hostname-dalam-linux/</link>
		<comments>http://blog.ilmuit.com/azhar/2012/09/10/tukar-hostname-dalam-linux/#comments</comments>
		<pubDate>Mon, 10 Sep 2012 21:02:26 +0000</pubDate>
		<dc:creator>azhar</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[fqdn]]></category>

		<category><![CDATA[hostname]]></category>

		<guid isPermaLink="false">http://blog.ilmuit.com/azhar/?p=23</guid>
		<description><![CDATA[Untuk tukar hostname dalam Linux, boleh gunakan arahan hostname
Untuk mengetahui hostname semasa taipkan arahan:
# hostname
Untuk mengetahui FQDN dalam sistem, gunakan arahan:
# hostname --fqd
Untuk menukar hostname, guna arahan:
# hostname NAMA_BARU
]]></description>
			<content:encoded><![CDATA[<p>Untuk tukar hostname dalam Linux, boleh gunakan arahan <code>hostname</code></p>
<p>Untuk mengetahui hostname semasa taipkan arahan:</p>
<p><code># hostname</code></p>
<p>Untuk mengetahui FQDN dalam sistem, gunakan arahan:</p>
<p><code># hostname --fqd</code></p>
<p>Untuk menukar hostname, guna arahan:</p>
<p><code># hostname NAMA_BARU</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ilmuit.com/azhar/2012/09/10/tukar-hostname-dalam-linux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Install sudo dalam Debian</title>
		<link>http://blog.ilmuit.com/azhar/2012/09/09/install-sudo-dalam-debian/</link>
		<comments>http://blog.ilmuit.com/azhar/2012/09/09/install-sudo-dalam-debian/#comments</comments>
		<pubDate>Sun, 09 Sep 2012 21:59:45 +0000</pubDate>
		<dc:creator>azhar</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[aptitude]]></category>

		<category><![CDATA[debian]]></category>

		<category><![CDATA[sudo]]></category>

		<guid isPermaLink="false">http://blog.ilmuit.com/azhar/?p=19</guid>
		<description><![CDATA[Untuk install sudo dalam Debian:
# aptitude install sudo
Fail configuration terletak di /etc/sudoers
]]></description>
			<content:encoded><![CDATA[<p>Untuk install sudo dalam Debian:</p>
<p><code># aptitude install sudo</code></p>
<p>Fail configuration terletak di <strong>/etc/sudoers</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ilmuit.com/azhar/2012/09/09/install-sudo-dalam-debian/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Install Fantastico dalam CPanel/WHM</title>
		<link>http://blog.ilmuit.com/azhar/2012/09/09/install-fantastico-dalam-cpanelwhm/</link>
		<comments>http://blog.ilmuit.com/azhar/2012/09/09/install-fantastico-dalam-cpanelwhm/#comments</comments>
		<pubDate>Sun, 09 Sep 2012 21:57:48 +0000</pubDate>
		<dc:creator>azhar</dc:creator>
		
		<category><![CDATA[Control Panel]]></category>

		<category><![CDATA[cPanel]]></category>

		<category><![CDATA[Fantastico]]></category>

		<category><![CDATA[WHM]]></category>

		<guid isPermaLink="false">http://blog.ilmuit.com/azhar/?p=17</guid>
		<description><![CDATA[SSH ke server, dan lepaskan arahan berikut:
# cd /usr/local/cpanel/whostmgr/docroot/cgi
# wget http://www.netenberg.com/files/free/fantastico_whm_admin.tgz
# tar -xzpf fantastico_whm_admin.tgz
# rm -rf fantastico_whm_admin.tgz
Log masuk ke panel WHM sebagai root dan klik Add-Ons -&#62; Fantastico De Luxe WHM Admin
]]></description>
			<content:encoded><![CDATA[<p>SSH ke <em>server</em>, dan lepaskan arahan berikut:</p>
<p><code># cd /usr/local/cpanel/whostmgr/docroot/cgi<br />
# wget http://www.netenberg.com/files/free/fantastico_whm_admin.tgz<br />
# tar -xzpf fantastico_whm_admin.tgz<br />
# rm -rf fantastico_whm_admin.tgz</code></p>
<p>Log masuk ke panel WHM sebagai root dan klik Add-Ons -&gt; Fantastico De Luxe WHM Admin</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ilmuit.com/azhar/2012/09/09/install-fantastico-dalam-cpanelwhm/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
