Saturday, May 24, 2008

Install WordPress MU On IIS With Url Rewrite

I have successfully installed WordPress MU on my Windows Server 2003 running IIS 6. To be honest, I know that WPMU is not full compatible with IIS right out of the box. It relies heavily on apaches mod_rewrite, which IIS isn't capable of. The only IIS fix for permalinks I've seen have either been via a special filter named ISAPI_Rewrite.

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS server. It is compatible with Apache mod_rewrite making it possible to move configurations from Apache to IIS and vice versa just by copying .htaccess files. I have tested with Wordpress 2.x or Wordpress MU 1.3.x, it's work. This is also works in IIS Mod-Rewrite Pro, but IIS Mod-Rewrite Pro have no free version.

To enable Clean Permalinks on Wordpress MU on IIS, follow these steps:

  • Install PHP and MySQL following the vendor's instructions.

  • Install ISAPI_Rewrite.

  • Install Wordpress according to the vendor's instructions.

  • Open with a text editor the file wp-settings.php, located in Wordpress root directory. Add the code line



$_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_ORIGINAL_URL'];

  • Log on to Wordpress as administrator, go to admin panel, open the "Permalinks" settings page, and set the permalink structure of your choice. Apply your changes.

  • Wordpress is supposed to automatically create a file with name ".htaccess" in its root directory. Open with a text editor the file .htaccess, copy it and paste into httpd.conf in ISAPI_Rewrite directory.


Now we have a WordPress MU with clean permalinks on Windows Server 2003 running IIS 6.

Friday, May 23, 2008

Free Online Translation Tools

Google Translate - Google's free online language translation service instantly translate text and web pages. This translator supports: English, Arabic, Bulgarian, Chinese (Simplified), Chinese (Traditional), Croatian, Czech, Danish, Dutch, Finnish, French, German, Greek, Hindi, Italian, Korean, Japanese, Norwegian, Polish, Romanian, Russian, Spanish, Swedish, Portuguese.

Windows Live Translator - Microsoft Windows Live Translator is a free online language translation service for text and web pages. This translator supports more than 25 translation languages.

Babelfish - Yahoo Babel Fish provides free online text and web page language translation tools. You can use this site to translate words, phrases, or entire web sites into 19 pairs of languages, including to and from English, Chinese, French, German, Italian, Japanese, Korean, Portuguese, and Spanish.

Systran - Systran is a leader in providing language translation software products and solutions for the desktop, enterprise and Internet. With Systran products or solutions you can instantly translate and understand foreign language content into 52 language pairs.

Monday, April 28, 2008

Disable Directory Listings in WordPress

By default when accessing any directory which does not contain an index file, a directory listing will be shown displaying a list of the files in that folder. Web servers can be configured to automatically display the listings of the contents of a web site's file directory if no index file (i.e. index.html or index.php) is present. This can expose files and information to visitors.

Simply adding a blank/ 0 byte text file named "index.html" will prevent this directory list from being displayed, however another way to disable directory listing is by adding the following line to the .htaccess file in your public_html folder of your web hosting account :

Options -Indexes

That’s it, with this line in place, folders which do not contain index files will no longer show the default directory list.

Saturday, April 26, 2008

Top Ten Best Wordpress Plugins

WordPress is a simple to use blogging tool. The beauty of WordPress is that it can become so much more with the simple installation of plugins. With a few clicks, WordPress can become a full fledged Content Management System (CMS). Here is a rundown on the top 10 best plugins every blogger should have installed.

Here is a great list that I whipped together of some of the most useful and most popular Wordpress plugins which every blogger should have installed. Enjoy the list.

Akismet - Simply the best Spam protection you can get for handling comments on your blog. Akismet checks your comments against the Akismet web service to see if they are spam or not, also checks the trackbacks for spam.

WP Super Cache - An extremely efficient WordPress page caching system to make your site much faster and responsive. It works by caching Worpress pages and storing them in a static file for serving future requests.

WP-PostViews - Enables you to display how many times a post/page had been viewed. It will not count registered member views, but that can be changed easily.

WP-PageNavi - A WordPress Plugin that adds more advanced page navigation to WordPress. It does this by adding page number links to your different pages. Using this plugin your readers will be able to jump from the first to the last page and other pages of your blog very easily.

Simple Tags - A plugin does everything related with tagging. With this plugin you can generates a list of related posts based on the text of blog entry. The tags can be used to search your blog and are picked up by blog search engines like Technorati and can bring in new users.

All in One SEO Pack - Automatic Search Engine Optimization (SEO) out of the box for your wordpress blog, everything you need to get your site optimized for search engines.

Google XML Sitemaps - Simple tool for auto generating sitemaps every time you make an update to your site. This plugin is the best tool to tell Google how it should crawl your blog and where to find everything you want found.

Wordpress Thread Comment - This Plugin is an enhancement for Wordpress's comment function. It enables users to reply on a exist comment, and the discussion will be displayed threaded or nested.

FeedBurner Feedsmith - Forwards all feed traffic to Feedburner while creating a randomized feed for Feedburner to pull from.

Wordpress Database Backup - Automated or on-demand backup solution for your wordpress database. Don't leave home without it!

Wednesday, April 23, 2008

DreamHost CPU Minute Restrictions

DreamHost is a popular web host among bloggers. With accounts beginning at only $7.95 a month, featuring generous disk space and bandwidth. But DreamHost's CPU minute restriction limits their otherwise generous bandwidth/storage allowance.

DreamHost measure server resource consumption in CPU minutes. This number indicates how much time a processor spends working for host user. All DreamHost shared hosting customers should use less than 60 cpu minutes per day for all their users on their account.

How to find the my CPU minutes per day, DreamHost tell us the way.

First, you'll need to verify that you have CPU Reporting enabled for your user. This can be done from the 'Users'->'Manage Users' section of the web panel by clicking 'edit' for the user.

You should be able to access your reports within a day after being enabled by FTP'ing or SSH'ing to your account and switching to the logs/resources/ directory. In there, you'll find files named .sa.analyzed.0, .sa.analyzed.1, .sa.analyzed.2. Your username will replace . These files are generated by a script that looks at how many minutes your scripts use, then rotates them every day. So the latest file from yesterday will be the .0 file, and the day before will be .1 and so on.

You can also view and download these stats files through the stats url of any of your domains (E.G. http://yourdomain.com/stats/resources )

You'll only really need to pay attention to the first column, the second column, and the total at the bottom. In the first column is the process name, or the file name. The second is the total CPU seconds per day it's using, and then the total CPU seconds after the dashed line. In this example, the top process is "view" with 6245.03 CPU seconds per day (or 104.08 CPU minutes per day if you divide by 60). The total for this particular day is 6767.95 CPU seconds per day, or 112.79 CPU minutes per day.

Monday, April 14, 2008

WordPress 2.5 Widescreen Version

I have discussed in an article under WordPress 2.5 in widescreen display abnormal. Almost all of the interface of WordPress 2.5 are directed at the design of the 1024 × 768. When I use my 1440 × 900 widescreen monitor will show only the left side of the body. I've finally managed to get my 1440×900 widescreen monitor working with the WordPress 2.5.

Open file wordpress\wp-admin\css\global.css, in line 159, replace:

max-width: 980px;

to:

max-width: 1400px;

In line 166, replace:

max-width: 950px;

to:

max-width: 1400px;

That's it. Before the modification, we can see that the interface of WordPress 2.5 in 1440 × 900 like this:

WordPress 2.5 Widescreen Version

After the modification, we can see that the interface of WordPress 2.5 in 1440 × 900 like that. It's so cool, isn't it.

WordPress 2.5 Widescreen Version

If you are using the 1440 × 900 display resolution, you can changes the code and make a better look in WordPress 2.5 Widescreen Version.

Saturday, March 29, 2008

Wordpress 2.5 Released

WordPress 2.5 has been released and includes a huge number of changes over the WordPress 2.3 series. Rather than list the changes in detail which would probably take me some days to write out I offer the following statistics and information about the WordPress 2.5 release:

  • In development for 185 days (6 months 3 days to be precise).

  • Changes to 364 files with 54008 insertions, and 29136 deletions for more detail you can view the diffstat output.

  • Patches committed from over 110 different contributors.

  • Over 1300 individual changes made for more detail you can view a complete changelog.


As usual you can download wordpress at their site, http://wordpress.org/download/. Btw, check out their new interface. They also changed how the wordpress.org site works.