<?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>pungit.com &#187; Tips &amp; Tricks</title>
	<atom:link href="http://www.pungit.com/category/tips-n-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pungit.com</link>
	<description>Computer Tips, Tricks, Howtos, PSP, Anime, Linux</description>
	<lastBuildDate>Mon, 27 Jul 2009 14:54:35 +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>5 Things to do After Installing WordPress</title>
		<link>http://www.pungit.com/tips-n-tricks/after-installing-wordpress/</link>
		<comments>http://www.pungit.com/tips-n-tricks/after-installing-wordpress/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 01:20:38 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.pungit.com/?p=321</guid>
		<description><![CDATA[WordPress is a popular open source publishing platform. It is the choice of most blogger. Not only because it easy to use but the installation process also take less than ten minutes. But after installation there are other things to be done to make it more secure and get the most from your blog/website. Below [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wordpress.org">WordPress</a> is a popular open source publishing platform. It is the choice of most blogger. Not only because it easy to use but the installation process also take less than ten minutes. But after installation there are other things to be done to make it more secure and get the most from your blog/website.</p>
<p>Below is the 5 things usually I do when I install a fresh WordPress platform.</p>
<p><span id="more-321"></span></p>
<p><strong>1. Change the Default Password</strong></p>
<p>When you WordPress installation precess completed, it will generate a random password and give it to you as a default password. Go to <em>http://myblog.com/wp-login.php</em> and use the username and password to log in into your admin panel for the first time. To change this password you can go to <strong>Users</strong> &gt; <strong>Your Profile</strong> and scroll down until you see the password textbox. Enter your new password and input it again in the text below before you hit the <strong>Update Profile </strong>button.</p>
<p style="text-align: center;"><a href="http://www.pungit.com/wp-content/uploads/2009/07/change-password-wordpress.png" target="_blank"><img class="aligncenter size-full wp-image-323" title="change-password-wordpress" src="http://www.pungit.com/wp-content/uploads/2009/07/change-password-wordpress.png" alt="change-password-wordpress" width="589" height="310" /></a></p>
<p><strong>2. Change the Default Username</strong></p>
<p>The default username for a fresh installed WordPress is <em>admin</em>. During installation process WordPress never ask you for your desire username. For security reason you should change the default username. My previous post on <a href="http://www.pungit.com/tips-n-tricks/how-to-change-your-default-wordpress-username/" target="_blank">How to Change Your Default WordPress Username</a> will guide you to change the username to something that unique.</p>
<p><strong>3. Edit Permalinks</strong></p>
<p>A URL like <em>http://myblog.com/?p=12</em> is poor for Search Engine Optimization (SEO). But the default WordPress articles URL is something like that. So apply a better SEO for your blog by changing the permalinks so it display something like<em> http://myblog.com/my-first-post/</em></p>
<p>To change it, go to <strong>Setting</strong> &gt; <strong>Permalinks</strong>. Under Common settings click the radio button infront of <strong>Custom Structure</strong>. Then enter <em>%postname%/</em> in the textbox. Hit the <strong>Save Changes</strong> button to apply the change. If your <em>.htaccess</em> is not writable, you have to edit the file manually and copy and paste the text inside the textbox below the <strong>Save Changes</strong> button. If you are using <a href="http://nginx.net" target="_blank">Nginx</a> web server follow the instruction on my previous post <a href="http://www.pungit.com/tips-n-tricks/wordpress-permalinks-on-nginx/" target="_blank">WordPress Permalinks on Nginx</a>. It will guide you to configure Nginx, so that you can use SEO friendly URL on WordPress.</p>
<p style="text-align: center;"><a href="http://www.pungit.com/wp-content/uploads/2009/07/wordpress-permalinks.png" target="_blank"><img class="aligncenter size-full wp-image-324" title="wordpress-permalinks" src="http://www.pungit.com/wp-content/uploads/2009/07/wordpress-permalinks.png" alt="wordpress-permalinks" width="575" height="248" /></a></p>
<p><strong>4. Change Theme</strong></p>
<p>You can find free theme at <a href="http://wordpress.org/extend/themes/" target="_blank">Free Theme WordPress</a> or you search using <a href="http://www.google.com" target="_blank">Google</a> or <a href="http://www.yahoo.com" target="_blank">Yahoo</a> to find your favorite theme. But if you have a knowledge of HTML, CSS, PHP and any image and graphic manipulation software you can designed your own theme. Upload it to <strong>wp-content</strong> &gt; <strong>themes</strong>. If you do not know where is <strong>wp-content</strong>, you can find it on the root of your WordPress installation folder. Now, activate it via <strong>Appearance</strong> &gt; <strong>Themes</strong>.</p>
<p><strong>5. Create Your First Post</strong></p>
<p>Now you have your blog up and running. Its time to create your first post. Go to <strong>Post</strong> &gt; <strong>Add New</strong>. For your first post you can introduce yourself to you reader and tell them a little bit about yourself and what you are going the share in your blog. First post is really important because its give the reader the first impression about yourself. Once you completed writing read your post, read it one more time to check if any spelling or grammar error. When you satisfied you can publish it by pressing the <strong>Publish</strong> button. But don&#8217;t forget to add category and tags for the post.</p>
<p>The next things to do is tell your friends, family and the world about your blog. Keep posting, enjoy your blog and watch your blog grow.</p>
<p><strong>Recommended Reading</strong></p>
<p><a href="http://www.amazon.com/gp/product/0470402962?ie=UTF8&amp;tag=pungitdotcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0470402962">WordPress For Dummies</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=pungitdotcom-20&amp;l=as2&amp;o=1&amp;a=0470402962" border="0" alt="" width="1" height="1" /></p>
<p><a href="http://www.amazon.com/gp/product/1440410224?ie=UTF8&amp;tag=pungitdotcom-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=1440410224">WordPress Entrepreneur: How To Setup, Customize &amp; Use A WordPress Website</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=pungitdotcom-20&amp;l=as2&amp;o=1&amp;a=1440410224" border="0" alt="" width="1" height="1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pungit.com/tips-n-tricks/after-installing-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Nginx: Redirect www to non-www</title>
		<link>http://www.pungit.com/tips-n-tricks/nginx-redirect-www-to-non-www/</link>
		<comments>http://www.pungit.com/tips-n-tricks/nginx-redirect-www-to-non-www/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 07:58:49 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[nginx www to non-www]]></category>

		<guid isPermaLink="false">http://www.pungit.com/?p=288</guid>
		<description><![CDATA[Method 1 Open your nginx.conf and add the following configuration inside your server {} configuration. if ($host = 'www.domain.com') { rewrite ^/(.*)$ http://domain.com/$1 permanent; } Make sure you change domain.com with your own domain name and save the configuration file before you restart nginx. Method 2 As usual, open nginx.conf and add the following configuration [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Method 1</strong><br />
Open your nginx.conf and add the following configuration inside your <em>server {}</em> configuration. </p>
<pre>
if ($host = 'www.domain.com') {
    rewrite ^/(.*)$ http://domain.com/$1 permanent;
	}
</pre>
<p><span id="more-288"></span><br />
Make sure you change <em>domain.com</em> with your own domain name and save the configuration file before you restart nginx. </p>
<p><strong>Method 2</strong><br />
As usual, open nginx.conf and add the following configuration to the file. Don&#8217;t forget to change <em>domain.com</em> with your own domain. </p>
<pre>
server {
    server_name  www.domain.com;
    rewrite ^(.*) http://domain.com$1 permanent;
}

server {
    server_name  domain.com;
    Put all other web server configuration here
}
</pre>
<p>To make the change take effect you have to save the configuration file and restart nginx. Now when visitor type <em>www.domain.com</em> on their browser address bar it will redirect to <em>domain.com</em>. </p>
<p>Both method are simple and easy. Adding only a few lines and wah la, the jobs is done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pungit.com/tips-n-tricks/nginx-redirect-www-to-non-www/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display Server Uptime Using PHP Script</title>
		<link>http://www.pungit.com/tips-n-tricks/display-server-uptime-using-php-script/</link>
		<comments>http://www.pungit.com/tips-n-tricks/display-server-uptime-using-php-script/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 14:44:03 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[server uptime php script]]></category>

		<guid isPermaLink="false">http://www.pungit.com/?p=282</guid>
		<description><![CDATA[Start you favorite text editor and type the following text. &#60;?php system("uptime"); ?&#62; Now save the file as uptime.php and then upload the file to your server root directory. Once uploaded, open your internet browser and point it to the uptime.php by typing http://yourdomain.com/uptime.php. Change yourdomain.com with your own domain name. This script call the [...]]]></description>
			<content:encoded><![CDATA[<p>Start you favorite text editor and type the following text.</p>
<pre>
&lt;?php system("uptime"); ?&gt;
</pre>
<p>Now save the file as uptime.php and then upload the file to your server root directory. Once uploaded, open your internet browser and point it to the uptime.php by typing <em>http://yourdomain.com/uptime.php</em>. Change <em>yourdomain.com</em> with your own domain name. This script call the unix system command &#8216;uptime&#8217; and display the result in html format so that it can be display on your internet browser. Below is the example result display by the script.</p>
<p><span id="more-282"></span></p>
<pre>
22:30:25 up 3 days, 17:02,  1 user,  load average: 0.00, 0.00, 0.00
</pre>
<p>The first column is the current time of the server (22:23:25), the server uptime is display on the second column (3 days 17 hours and 2 second) and currently the server has 1 user online, whereas the last column display the current load of the server.</p>
<p>Please note that this script is only work on unix compatible operating system only. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.pungit.com/tips-n-tricks/display-server-uptime-using-php-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Protect Your WordPress &#8216;wp-admin&#8217; on Lighttpd</title>
		<link>http://www.pungit.com/tips-n-tricks/protect-your-wordpress-wp-admin-on-lighttpd/</link>
		<comments>http://www.pungit.com/tips-n-tricks/protect-your-wordpress-wp-admin-on-lighttpd/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 10:38:26 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[lighttpd]]></category>

		<guid isPermaLink="false">http://www.pungit.com/?p=269</guid>
		<description><![CDATA[Besides Apache, Lighttpd also has the ability to limit access to your website by client IP address. Today I will share how to protect your WordPress &#8216;wp-admin&#8217; on Lighttpd by only allow your IP address to gain access to the directory. I assume that you already have a WordPress blog running on Lighttpd because I [...]]]></description>
			<content:encoded><![CDATA[<p>Besides Apache, Lighttpd also has the ability to limit access to your website by client IP address. Today I will share how to protect your WordPress &#8216;wp-admin&#8217; on Lighttpd by only allow your IP address to gain access to the directory. I assume that you already have a WordPress blog running on Lighttpd because I will not cover that on this mini How to.</p>
<p><span id="more-269"></span></p>
<p>First open  your lighttpd.conf using your favorite text editor. Normally I use nano and the following command will open my lighttpd.conf.</p>
<pre>nano /etc/lighttpd/lighttpd.conf </pre>
<p>Now add the following configuration to your lighttpd.conf, but remember to change <em>192.168.1.2</em> with your IP address.</p>
<pre>
$HTTP["remoteip"] !~ "192.168.1.2" {
	$HTTP["url"] =~ "^/wp-admin/" {
	url.access-deny =("")
	}
	}
</pre>
<p>Save your lighttpd.conf and exit the text editor. The change will not take effect until your reboot lighttpd.</p>
<pre>/etc/init.d/lighttpd restart</pre>
<p>Once Lighttpd completely restart, you are the only person can access the &#8216;wp-admin&#8217; area. If other person with different ip address try to access it Lighttpd will return 403 error. This will help to reduce the risk of your WordPress blog from brute force attack run by some script kiddies.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pungit.com/tips-n-tricks/protect-your-wordpress-wp-admin-on-lighttpd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Change Your Default WordPress Username</title>
		<link>http://www.pungit.com/tips-n-tricks/how-to-change-your-default-wordpress-username/</link>
		<comments>http://www.pungit.com/tips-n-tricks/how-to-change-your-default-wordpress-username/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 14:56:55 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[change wordpress admin user]]></category>
		<category><![CDATA[change wordpress default login]]></category>

		<guid isPermaLink="false">http://www.pungit.com/?p=239</guid>
		<description><![CDATA[Every fresh WordPress installation has a default username admin. There is no option to change this username during installation. Because the admin is a well known username, you might get the risk of being brute force attack and could be a disastrous for your Website or blog. To avoid this risk you should change the [...]]]></description>
			<content:encoded><![CDATA[<p>Every fresh WordPress installation has a default username admin. There is no option to change this username during installation. Because the admin is a well known username, you might get the risk of being brute force attack and could be a disastrous for your Website or blog. To avoid this risk you should change the default username to something unique.</p>
<p>If you have a root access to your webhosting account. Initiate a SSH session. Then connect to your MySQL server by using the following command:</p>
<pre>mysql -u username -p</pre>
<p><span id="more-239"></span><br />
Change <em>username</em> with your MySQL username. It will prompt for your password. Once connected you need to connect to your database. The following command will does the jobs.</p>
<pre>use database;</pre>
<p>Change <em>database</em> with your WordPress database name. Finally you can change the default username with the MySQL query below.</p>
<pre>update `database`.`wp_users` set `user_login` = 'newusername' where `wp_users`.`ID` = 1 limit 1;</pre>
<p>You should change <em>database</em> with your WordPress database name and <em>newusername</em> with you desire new username for your WordPress blog.</p>
<p>Type quit to disconnect from your MySQL server.</p>
<p>But if you do not have a root access to your account you can still change the username by using phpMyAdmin. Normally share hosting account do not have a root access. But the database is accessible by using phpMyAdmin. You can access it from your cPanel.</p>
<p>First select your WordPress database its located in the left side.</p>
<p style="text-align: center;"><a href="http://www.pungit.com/wp-content/uploads/2009/06/phpMyAdmin_select_db.png" target="_blank"><img class="aligncenter size-full wp-image-240" title="phpMyAdmin_select_db" src="http://www.pungit.com/wp-content/uploads/2009/06/phpMyAdmin_select_db.png" alt="phpMyAdmin_select_db" width="566" height="404" /></a></p>
<p>Then select the table name <strong>wp_users</strong>.</p>
<p style="text-align: center;"><a href="http://www.pungit.com/wp-content/uploads/2009/06/phpMyAdmin_select_table.png" target="_blank"><img class="aligncenter size-full wp-image-250" title="phpMyAdmin_select_table" src="http://www.pungit.com/wp-content/uploads/2009/06/phpMyAdmin_select_table.png" alt="phpMyAdmin_select_table" width="542" height="309" /></a></p>
<p>Now edit the table by clicking the icon that looks like pencil. You will see a screen something like below.</p>
<p style="text-align: center;"><a href="http://www.pungit.com/wp-content/uploads/2009/06/phpMyAdmin_edit_table.png" target="_blank"><img class="aligncenter size-full wp-image-242" title="phpMyAdmin_edit_table" src="http://www.pungit.com/wp-content/uploads/2009/06/phpMyAdmin_edit_table.png" alt="phpMyAdmin_edit_table" width="584" height="296" /></a></p>
<p style="text-align: center;"><a href="http://www.pungit.com/wp-content/uploads/2009/06/phpMyAdmin_change_admin.png" target="_blank"><img class="aligncenter size-full wp-image-243" title="phpMyAdmin_change_admin" src="http://www.pungit.com/wp-content/uploads/2009/06/phpMyAdmin_change_admin.png" alt="phpMyAdmin_change_admin" width="564" height="302" /></a></p>
<p>To change the username find a field name <strong>user_login</strong>. You can find it below the <strong>ID </strong>field or the second field from the top. The default value is admin. So change it to any name that is unique and you can remember very well. But do not forget to click the button Go to save the change. Congratulation, you just change the default WordPress username. And you can login using your new username.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pungit.com/tips-n-tricks/how-to-change-your-default-wordpress-username/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
