How to configure Symfony to run under Plesk, due to the Alias & doc_root issues with open_basedir.
Configure subdomain & document root via Plesk
ie.: dev.domain.com = dev/symfony/web
Create vhost.conf under
/var/www/vhosts/domain.com/subdomains/dev/conf
Edit vhost.conf:
FOR SYMFONY 1.4
FOR SYMFONY 1.4
DocumentRoot /var/www/vhosts/domain.com/dev/symfony/webAlias /sf /var/www/vhosts/domain.com/dev/symfony/lib/vendor/symfony/data/web/sf<Directory /var/www/vhosts/domain.com/dev/symfony/web>
php_admin_value open_basedir none
AllowOverride All
</Directory><Directory /var/www/vhosts/domain.com/dev/symfony/web>
AllowOverride All
Allow from All
</Directory>
php_admin_value open_basedir none
AllowOverride All
</Directory><Directory /var/www/vhosts/domain.com/dev/symfony/web>
AllowOverride All
Allow from All
</Directory>
FOR SYMFONY 2
DocumentRoot /var/www/vhosts/domain.com/dev/Symfony/web
<Directory /var/www/vhosts/domain.com/dev/Symfony/web>
php_admin_value open_basedir none
AllowOverride All
</Directory>
<Directory /var/www/vhosts/domain.com/dev/Symfony/web>
AllowOverride All
Allow from All
</Directory>
Run command
# /usr/local/psa/admin/bin/httpdmng –reconfigure-all
# /etc/init.d/httpd restart