Plesk & Symfony Framework
I came accross a project where i had to install Symfony Framework on a Plesk server.
The Symfony had been transfered to the server using ftp, i need to create a vhost.conf file to notifity the plesk serevr where the document root is.
First create a file on your local computer vhost.conf in file type the following
DocumentRoot "/path/to/your/web"
DirectoyIndex index.php
ServerName www.example.com
<Directory "/pathto/your.site/web">
AllowOveride All
Allow from All
</Directory>Alias /sf "/path/to/your/site/lib/vendor/symfony/data/web/sf"
<Directory "/path/to/your/site/lib/vendor/symfony/data/web/sf">
AllowOveride All
Allow from All
</Directory>
Once you have uploaded the file move it to the /conf folder and run the following command in command line (putty)
#/user/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.com
*this command will configure plesk only for only single domain*
or
#/user/local/psa/admin/sbin/websrvmng -a
*this command will configure plesk only for only single domain*
this will then insert a line at the bottom of the httpd.include file
Include /srv/www/vhosts/domain.com/conf/vhost.conf
April 24th, 2010 - 16:06
Thanks for sharing this.