Archive for September, 2007

Getting symfony running on 1&1 shared hosting

September 30th, 2007

This is mainly for my own record. I’ve been playing with the Symfony PHP framework to see if it’s suitable for a new project I’m working on, but had a little bit of trouble getting it working on my 1&1 shared server.

The first problem was fairly easy to fix – the default version of PHP on the server is 4, but symfony needs 5.0+. A quick entry into the .htaccess file for the site fixes this. Add “AddType x-mapp-php5 .php ” and all is well. It’s a pain to have to remember to type “php5 symfony”to get things working, but no big stress.

The next issue is to get the images to show up in the test index.php page. I installed symfony using the PEAR packages, so the symfony_data/web/sf directory wasn’t visible as it was way outside the web root for the domain. A simple link fixed that. First, I needed to get the directory for my php/symfony data directory using the pear5 comand
> pear5 config-show
Configuration (channel pear.php.net):
=====================================

<snip>
PEAR executables directory bin_dir /kunden/homepages/18/d96003440/htdocs/local/bin
PEAR documentation directory doc_dir /kunden/homepages/18/d96003440/htdocs/local/lib/php/docs
PHP extension directory ext_dir /kunden/homepages/18/d96003440/htdocs/pear/ext
PEAR directory php_dir /kunden/homepages/18/d96003440/htdocs/local/lib/php
PEAR Installer cache directory cache_dir /kunden/homepages/18/d96003440/htdocs/pear/cache
PEAR data directory data_dir /kunden/homepages/18/d96003440/htdocs/local/lib/php/data
<snip>

Next I created a link in the web directory for my new application to the symfony web/sf/ directory in my applications web directory (the bolded one above):

cd web

ln -s /kunden/homepages/18/d96003440/htdocs/local/lib/php/data/symfony/web/sf/

Hit the URL http://www.servername/app/web/app_dev.php and all was well. Now to crack on with some development.

Gerbera Petals

September 23rd, 2007

petals, originally uploaded by Pete Connolly.

Another flower picture, I know – this is boring. I bought a bunch of flowers yesterday, mainly for Jude to brighten up the house, but it also gives me some practice of taking macro pictures. It took about 50 shots on a Sunday morning to get one that I really liked. There’s a very fine line at F6.3

Opensuse interview with Seth Arnold

September 21st, 2007

The opensuse.org news portal has a good interview with Seth Arnold, one of the main AppArmor developers. I’ve done a fair bit with AppArmor in the past when I worked for Novell, and for the times I got into trouble Seth was available on IRC. A good guy to ask questions – he always tries to help and be informative and normally succeeds.

Worth a read.

take me to your leader

September 16th, 2007

take me to your leader, originally uploaded by Pete Connolly.

This is probably the best hand held picture I’ve taken so far. I used the Tamron 90mm macro lens with a very wide aperture, so the depth of field was tiny. I’m surprised I managed to get it without shaking the shot, but this was attempt no. 20 or so and it worked out nicely.  The previous ones were all over the place.

It’s a rhododendron flower, for the curious.

The Green green leaves of home.

September 5th, 2007

leaves, originally uploaded by Pete Connolly.

I took this picture yesterday and was happy with it.

 Today I heard that my elder son, Luke, was getting bullied in school. It seems the fact that he is food phobic is a cause for laughter amongst some of his class mates. He is 5 years old, and yes he is a bit different WRT his eating, but I didn’t think he’d get abuse at this age – it seems a tad young.

Lets hope that things improve. I’ve read the inspiring stories to him, “faster, faster little red train” and the associated series. Doesn’t seem to work, Luke is a deep thinker. I hope he talks to me before this gets to be a problem.

I live in hope.

Bad Behavior has blocked 442 access attempts in the last 7 days.

peteconnolly.co.uk is Digg proof thanks to caching by WP Super Cache