Typo + Apache + Lighttpd @ TextDrive
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:
- Typo: unpack, configure
database.yml
and make sure to log-in to the database you’ve configured and execute theschema.mysql.sql
script. - 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. - 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"
. - Apache: Set-up the Apache alias/redirect. However, for the local URL, specify
/blog
. For the remote URL, specifyhttp://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.
- @cubanlinks on Twitter