Drupal Clean URL with Lighttpd

Friday, April 11th, 2008

I found few url-rewrite based solution for enabling CleanURL in Drupal + Lighttpd but none of them worked flawlessly. Guys, all we need here is something similar to following Apache rewrite code (without any side effect, like 404 header etc).

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

(more…)

Gmail IMAP with SquirrelMail

Tuesday, February 26th, 2008

Gmail IMAP lets you download messages from Gmail’s servers onto your computer so you can access your mail with a program like Microsoft Outlook Express or Apple Mail, even when you aren’t connected to the Internet.

This article will provide instructions for setting-up Gmail with SquirrelMail.

There may be some scenarios when we do not want to use the regular Gmail interface. If your domains is configured to use “Google Apps” for email service then you can easily setup SquirrelMail for seamless integration with you portal. It can also be used if regular Gmail (http://mail.google.com) is blocked by your firewall administrator :-)
(more…)

Lighttpd modules compared - mod_magnet and mod_rewrite

Friday, October 17th, 2008

Stress tool: http://openwebload.sourceforge.net/
Server: PIII 900MHz, 512MB, CentOS 5.2, lighttpd/1.4.19, PHP 5.2.6
Desktop: Athlon XP 2600+, 2GB, WinXP

[index.php]

Php says 2 + 2 = <?php echo (2 + 2); ?>

Since PHP code is a very simple one, response time (or cpu usage) should have better representation of magnet/rewrite over-head.

Statistics without any technique

C:\>openload.exe http://example.com/index.php 4

MaTps 237.86, Tps 237.86, Resp Time  0.016, Err   0%, Count   240
MaTps 237.77, Tps 237.00, Resp Time  0.017, Err   0%, Count   477
MaTps 238.06, Tps 240.59, Resp Time  0.017, Err   0%, Count   720
MaTps 238.55, Tps 243.03, Resp Time  0.016, Err   0%, Count   964
MaTps 238.58, Tps 238.85, Resp Time  0.017, Err   0%, Count  1205
MaTps 238.28, Tps 235.59, Resp Time  0.017, Err   0%, Count  1442
MaTps 238.12, Tps 236.61, Resp Time  0.017, Err   0%, Count  1685
MaTps 238.20, Tps 239.00, Resp Time  0.017, Err   0%, Count  1924
MaTps 238.51, Tps 241.28, Resp Time  0.017, Err   0%, Count  2166
MaTps 238.29, Tps 236.29, Resp Time  0.017, Err   0%, Count  2403
MaTps 239.21, Tps 247.52, Resp Time  0.016, Err   0%, Count  2653
MaTps 239.37, Tps 240.80, Resp Time  0.017, Err   0%, Count  2895
MaTps 238.50, Tps 230.69, Resp Time  0.017, Err   0%, Count  3128
MaTps 239.05, Tps 244.00, Resp Time  0.016, Err   0%, Count  3372
MaTps 239.52, Tps 243.76, Resp Time  0.016, Err   0%, Count  3616
MaTps 238.90, Tps 233.30, Resp Time  0.017, Err   0%, Count  3850
MaTps 240.06, Tps 250.50, Resp Time  0.016, Err   0%, Count  4103
MaTps 240.23, Tps 241.79, Resp Time  0.017, Err   0%, Count  4346
MaTps 240.49, Tps 242.81, Resp Time  0.016, Err   0%, Count  4591
MaTps 239.78, Tps 233.37, Resp Time  0.017, Err   0%, Count  4826
MaTps 240.11, Tps 243.06, Resp Time  0.016, Err   0%, Count  5071
MaTps 240.20, Tps 241.07, Resp Time  0.017, Err   0%, Count  5314
MaTps 240.23, Tps 240.52, Resp Time  0.017, Err   0%, Count  5555
MaTps 240.57, Tps 243.54, Resp Time  0.016, Err   0%, Count  5800
MaTps 240.79, Tps 242.81, Resp Time  0.016, Err   0%, Count  6045
MaTps 240.82, Tps 241.07, Resp Time  0.017, Err   0%, Count  6288
MaTps 240.32, Tps 235.82, Resp Time  0.017, Err   0%, Count  6525
MaTps 241.19, Tps 249.00, Resp Time  0.016, Err   0%, Count  6774
MaTps 241.20, Tps 241.28, Resp Time  0.016, Err   0%, Count  7016

CPU usage by lighttpd process was swinging between 20% & 22%

(more…)

Switch Email Hosting To Google Apps

Tuesday, September 23rd, 2008

Here are few reasons for switching your email service (for your small business/personal domains) to Google apps.

1. Google is very reputed and trusted company
- check their company profile
2. Email component in Google Apps platform is Gmail
- the best available in the market, Web 2.0 platform
- IMAP and Pop3 access are free
- mobile version is also included
3. Google apps is built using massive distributed infrastructure
- great reliability
- huge mailbox, never have to delete any email
4. Better SPAM handling
- best spam flagging (lesser false spam)
- better delivery chances for legitimate email sender
5. Standard edition is free, enterprise is cheap
- free is great for non-profit, small business and webmasters
- enterprise edition is cheaper than owning your own infrastructure

Wordpress Permalinks with Lighttpd

Friday, April 11th, 2008

I found few url-rewrite based solution for enabling Permalinks in Wordpress+Lighttpd but none of them worked flawlessly. Guys, all we need here is something similar to following Apache rewrite code (without any side effect, like 404 header etc).

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

(more…)