Installing symfony on a server running plesk

March 26th, 2010 § 1 Comment

Plesk can be handy if you want to get a simple hosting situation up and running but is an absolute nightmare if you want to get into any nitty gritty on the server that might require some custom configuration. So how do you go about installing Symfony on a server running Plesk? As it is one of the common frameworks that we frequently need to be installing, I thought it worthwhile publishing my notes on the steps we need to take:

# change to your directory - under plesk, you will need to switch to root first
> su -
> cd /var/www/vhosts/domain-name.co.uk

# create a directory for symfony
> mkdir /var/www/vhosts/domain-name.co.uk/symfony

# remove old httpdocs
> rm /var/www/vhosts/domain-name.co.uk/httpdocs

# create symbolic link so that requests to httpdocs are routed to symfony/web
> ln -s /var/www/vhosts/domain-name.co.uk/symfony/web /var/www/vhosts/domain-name.co.uk/httpdocs

To allow deployment via rsync from Symfony – in Plesk, enable user to access via SSH by checking: “Shell access to server with FTP user’s credentials (/bin/sh)”

Where Am I?

You are currently viewing the archives for March, 2010 at Mark Rochefort.