Typo + Apache + Lighttpd @ TextDrive

Tags: Uncategorized

For all my homies who have had trouble getting Apache, Lighttpd and Typo (on a shared host no less!) deployed in a subdirectory off the document root, here’s what I had to do:

  1. Typo: unpack, configure database.yml and make sure to log-in to the database you’ve configured and execute the schema.mysql.sql script.
  2. Locate your document root (/home/{username}/web/public/) and create a symbolic link to your typo installation’s public directory (ln -s /home/{username}/typo/public /home{username}/web/public/blog). You don’t have to name the symbolic link “blog”, you can give it any name you like.
  3. Lighttpd: Follow these instructions . Now, change the server.error-handler-404 so that instead of pointing to "/dispatch.fcgi" it points to "/blog/dispatch.fcgi".
  4. Apache: Set-up the Apache alias/redirect. However, for the local URL, specify /blog. For the remote URL, specify http://yourdomain.name:PORT#/blog/.

Once you bounce Apache (by saving your changes) and start-up Lighttpd, you should be good to go. Here are some more steps you can take to finalize your set-up. Let me know if I’m missing anything.

About Me

Hey there. My name is Carter Rabasa and I am a husband and father of two beautiful daughters Catherine and Emily. I live in Seattle, WA.