Archive for Wednesday, 2nd September 2009

| 02/09/2009, 13:28 Running a Symfony application from a directory

Step 1 - Install Symfony into your PHP library path:

# cd /usr/share/php
# wget http://www.symfony-project.org/get/symfony-stable.tgz
# gunzip symfony-stable.tgz ; tar -xvf symfony-stable.tar
# ln -s symfony-X/lib symfony
# mkdir data
# ln -s ../symfony-X/data data/symfony
# rm syfony-stable.tar

Step 2 - Within your Symfony app, edit the main 'settings.yml' file, create a symlink to 'sf' and ensure the cache directory is writable:

$ cd /var/www/localhost/htdocs/sf_app
$ echo "all:" >> config/settings.yml
$ echo " .settings" >> config/settings.yml
$ echo " relative_url_root: /sf_app/web" >> config/settings.yml
$ ln -s /usr/share/php/data/symfony/web/sf .
$ chmod -R 777 cache

And you're done.

| 02/09/2009, 19:23 Welcome

 

Welcome to my new personal website and blog.  I'm afraid I've decided that it's going to be (almost) purely technical around here from now on. I'm going to talk about what I do in terms of code and machines and hopefully get the chance to share some of things I've figured out.

Read More...