August 14 2009
Categorized Under: Articles, PHP, Servers
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…
July 6 2009
Categorized Under: Mail Server, Servers
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…
July 6 2009
Categorized Under: Apache WebServer, Servers
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…
June 29 2009
Categorized Under: Apache WebServer, Servers