jlm-blog
~jlm

24-Aug-2005

suphp and WordPress

Filed under: linux, web — jlm @ 13:14

Okay, so I now have WordPress working with suphp, which allows for the use of Unix user accounts in php scripts. Steps:

  • I made a dedicated jlmphp account, so php won’t have access to my main account.
  • The hosting server (ofb.net) runs Debian, so I installed suphp with
    apt-get install libapache-mod-suphp
  • In the Apache config, I put the lines:

    LoadModule suphp_module /usr/lib/apache/1.3/mod_suphp.so
    suPHP_Engine on

    and

    <VirtualHost *>
    ServerName php.mandelson.org
    DocumentRoot /home/jlmphp/www/data/
    </VirtualHost>

    The first set turns suphp on, the second set makes a virtual host “php.mandelson.org” with its own www directiory in jlmphp’s homedir.

  • Made a CNAME aliasing php.mandelson.org to mandelson.org, so that when you look up php.mandelson.org you get this server.
  • Changed the blog address to be http://php.mandelson.org/wordpress/
  • In the .htaccess file for jlmphp, put

    AddHandler x-httpd-php .php

    (which tells Apache to use suphp for .php files in this directory), and put in redirects from the old blog address to the new.

  • Made wp-config.php user-readable-only and change the passwords. (Which is the whole point!)

15-Aug-2005

CalDAV

Filed under: programming, web — jlm @ 17:00

One of the sessions I attended at OSCon was about the upcoming CalDAV standard. As calendaring is a weak spot in the Linux/Free Software application space, advances here are particularly welcome.

There was a panel of implementers there, representing:

  • Novell / Hula
  • Mozilla Foundation / Sunbird and Lightning
  • RPI / UW Calendar server
  • OSAF / Cosmo and Scoobie and Chandler

(organization) / (programs)

A lot of the session talked about features of their various products, but I’ll ignore those in favor of looking at the protocol.
CalDAV in a nutshell is WebDAV holding iCalendar files and extended to handle calendar-type queries (“when is Joe Blow free?”). The idea is the basic common protocol one: An open spec will let all these products interoperate, so you can use the calendar app which is your favorite without having to bother with which calendar system is at the other end. (Do you know what software your email server is running?)

The IETF tried to standardize calendaring before, with its CAP (“Calendar Access Protocol”), but no one implemented it. Starting from WebDAV means implementers have less work to do, and hey!, it’s working.

Stuff like room / multiparty scheduling is not addressed, they’re leaving that for a later protocol. “Clearly more research is needed.” Conflicting schedule changes are detected using ETags; resolution is unspecified and left to the clients to decide.

If you’re doing any calendaring, you absolutely want to take a look at it. You’re already supporting iCalendar (right?), and there are WebDAV implementations out there you can use (though alas not particularly cleanly), and from there to CalDAV isn’t a big step for an implementer but is a giant leap for interoperability.

23-Jul-2005

My first comment spam

Filed under: web — jlm @ 08:55

[link redacted] – This is the best site that you will ever find with all the best online Forex news, the lates quotes, and the highest currencies

I feel so special. It’s a real grown up blog now. Not.

13-Jul-2005

Obligatory online quiz post

Filed under: web — jlm @ 11:43

Which Aliens Colonial Marine are you?

I’m “Pvt. Vasquez”. [Vasquez]

> Spunky token ethnic type.

Ummm…

> Kicked alien butt and didn’t take any crop off of no one.

Yeah!

> Dies in the end.

Well, don’t we all?

29-Jun-2005

In the beginning…

Filed under: web — jlm @ 05:52

So, how did this come about? Well, a Google recruiter found my online resume, thought “hey interesting”, then while checking on me found out that I’d already been working here for a year and a half. Thus I figured it was time to update my web page again. And hey, why not try this blogging thing?

So, after some minor trials and tribulations, I have WordPress set up. Some notes:

  • PHP and MySQL don’t get along well. Some key info is at http://dev.mysql.com/doc/mysql/en/old-client.html
  • PHP abandons the concept of “users” with different privileges, so there’s no security between one part of “the PHP system” and another part. I don’t like this when one of those parts has a MySQL password in it. So I’m going to work on wrapping this PHP in a CGI.
  • I’m going to have to make my own theme, or else this blog will be quickly abandoned on aesthetic grounds.

Hello world!

Filed under: web — Administrator @ 05:17

Welcome to Word​press. This is your first post. Edit or delete it, then start blogging!

Powered by WordPress