Optimalisasi Source Code PHP

August 14 2009 Categorized Under: Articles, PHP, Servers 3 Commented

Kita sering menggunakan looping dalam aplikasi buatan kita seperti menggunakan for, while, foreach, dan sebagainya. Tahukah anda bahwa pemilihan penggunaan metode looping akan mempengaruhi kecepatan eksekusi aplikasi anda. Anda mungkin tidak pernah memikirkan pentingnya optimalisasi kode program karena belum merasakan perbedaan berarti antara kode yang teroptimasi dan tidak. Namun bila anda telah merilis aplikasi anda dan digunakan oleh sangat banyak pengguna maka optimasi aplikasi pasti akan sangat diperlukan.

Resource server akan sangat terbebani oleh aplikasi yang kodenya Read more…

How to make Postfix and SpamAssassin play nicely when using SPF

July 6 2009 Categorized Under: Mail Server, Servers No Commented

I happened to be looking at the raw headers of an email today and noticed something weird. The message had been sent to me from a local user on my server, so it had never actually left the server; however, SpamAssassin had given the message a couple of spam points because it said the SPF verification had failed. I double-checked the relevant SPF records and there was nothing wrong there, so I began to suspect there might be a bug in SpamAssassin’s SPF verification routine.

I tried sending an email from my server to a Gmail address (this is a good way to test SPF records, since Gmail adds headers to messages indicating whether the SPF verification succeeded). Sure enough, Gmail’s SPF verification succeeded Read more…

How To Set Up Apache2 With mod_fcgid And PHP5 On Ubuntu 8.10

July 6 2009 Categorized Under: Apache WebServer, Servers No Commented

This tutorial describes how you can install Apache2 with mod_fcgid and PHP5 on Ubuntu 8.10. mod_fcgid is a compatible alternative to the older mod_fastcgi.

It lets you execute PHP scripts with the permissions of their owners instead of the Apache user.

I do not issue any guarantee that this will work for you!

1 Preliminary Note

I’m using an Ubuntu 8.10 server in this tutorial with the hostname server1.example.com and the IP address 192.168.0.100.

I will create two Apache vhosts in this tutorial, www.example1.com and www.example2.com, to demonstrate the usage of mod_fcgid.

Make sure you’re logged in as root:

sudo su

Read more…

Apache .htaccess

June 29 2009 Categorized Under: Apache WebServer, Servers No Commented

« Advanced .htaccess Tricks for Securing SitesPassword Protection Plugin Status »

.htaccess tutorial and htaccess sampleThis is not an introduction to .htaccess… This is the evolution of .htaccess… The best of the best .htaccess info I can find.

Originally known as the Ultimate .htaccess Guide, its changed over the years with more and better .htaccess tricks using real .htaccess example code. I add my favorite htaccess-related links and sites, results from my best .htaccess experiments, and frequently update this article Read more…

.:: site Metters ::.