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.
Interesting stuff Pete – is this for a work project, or something outside the bounds of work? Feels good to have made the move here – definitely the correct one. (Male Pattern Baldness will have to wait for me by the way, the Ervine gene pool seems to be blessed with hair… unfortunately it does seem to include greyness
)
I’m sure you’re being kept up to date with the latest from UKB, so I won’t bore you with it. Don’t forget though that openSUSE 10.3 was released yesterday. If you haven’t tried it already I recommend giving it a look.
Jonny
PS Havn’t had to compromise too much on my flat over here. By the way, some good pics on your blog. Something I should do really… What do you shoot with?
Hi Jon – this is just me trying to get myself up to speed. I’ve got a few ideas for things to do, mainly web based, but to get started I need to modernise. I’m still writing PHP stuff like scripts, very late 90s, so symfony and object oriented code is the way to go.
openSUSE 10.3 is 35% downloaded here, so I’ll be getting that installed – some very good reviews already, as well as the usual Novell bashing from open source zealots.
I went to Aaron J’s leaving curry last week, so had a chance to catch up with the guys. Morale is pretty low there, and the way they’re doing things is pretty dreadful – the worst way possible, IMHO.
As for pictures, I bought a Nikon D80 and a Tamron 90mm macro lens. Should only set you back about a grand or so. Having said that, it’s probably cheaper where you are. It’s a good hobby, keeps me busy and away from the computer.
Another Nikon man… I’ve got a Canon 400D which I got when I first came out here. Need to take a few more pictures with it though. I’ll be buying some newer lenses whilst I’m out here too. The Nikon is a nice piece of kit. Dan H has one, and had me bring back a 18-200mm lens for him.
Morale does seem low – better off away from it all I reckon. openSUSE 10.3 has been good for me, and is the best of the 10.x series by a long way. Although some of the others weren’t up to much.
I think this wednesday is the big day, people will be finding out who’s staying and who’s going. “Everybody who still has a job take one step forward. Not so fast you lot” – not funny.
Is the 80-200mm lens cheapish over there? It’s about a grand here who is a wee bit much for me to pay at the moment. (You know where I’m going with this, don’t you?)!
Hadn’t heard that Wednesday could be the ‘big day’. Never much fun.
You need to update your pricings on an 18-200mm Nikon lens:
http://www.amazon.co.uk/Nikon-Zoom-Nikkor-Zoom-3-5-5-6-ED-IF/dp/B000BY52NU/ref=sr_1_5/203-2087823-0950329?ie=UTF8&s=electronics&qid=1191813764&sr=1-5
£490ish from Amazon. I seem to remember I picked Dan’s up for about £400 here, although prices are always changing, normally downwards after a while
I can see where you’re going with this. Probably best to see how things are a bit closer to Christmas which is when I plan to be back next.
hi pete i like what you have done on here but i cloud do with talking to you abit about it i need a bit of help with my pear dir getting it to work on 1and1 maybe u can give me sum insight perhap post on here or gimme an email
cheers mate