LAMP

Items related to Linux (and FreeBSD), Apache, MySql and PHP/Perl/Python.

Webmin glitch with apache

I just spent some time finding a bit of a glitch with WebMin and the Apache module. By default the PHP configuration portion of the httpd.conf file is configured to add index.php to the list of directory indices. If you try to override this setting in Webmin it never takes. You can add index.htm all day long but it simply won't add. A quick work around is to add index.htm to the various DirectoryIndex entries for the versions of PHP.

Selecting the most recent entry for a person in MySQL

Here's a snippet of code to get the most recent entry for a person from a list of records with dates. I use this in a situation where I have a list of GPAs for students. The list of GPAs is updated each day for a couple of weeks. The challenge is that some students graduate and are dropped from the list each day so I need to pick the most recent record for each person in the database.

SELECT name, gpa, standing, run_date
FROM `ranking` AS a
WHERE ( standing = '123' OR standing = '122' ) AND a.run_date = (
SELECT MAX( run_date )
FROM `ranking` AS b
WHERE b.name = a.name )
ORDER BY standing, gpa DESC

The Myths of Open Source

CIO magazine has a great article debunking many myths about open source. The article debunks several myths including:

  • MYTH 1 - THE ATTRACTION IS THE PRICE TAG
  • MYTH 2 - THE SAVINGS AREN'T REAL
  • MYTH 3 - THERE'S NO SUPPORT
  • MYTH 4 - IT'S A LEGAL MINEFIELD
  • MYTH 5 - OPEN SOURCE ISN'T FOR MISSION-CRITICAL APPLICATIONS
  • MYTH 6 - OPEN SOURCE ISN'T READY FOR THE DESKTOP

There are many great examples of how open source is working for companies of all sizes.

Subscribe to LAMP