I'm running plesk 9.0.1 and I configured my app on a subdomain, I did these steps to configure the app:
1) remove all default directories of domain
rm -rf /var/www/vhosts/example.com.br/subdomains/myapp/*
2) I put my files on document_root, like this
/var/www/vhosts/example.com.br/subdomains/myapp/conf,
/var/www/vhosts/example.com.br/subdomains/myapp/symfony
/var/www/vhosts/example.com.br/subdomains/myapp/web
....
3) rename the web dir to httpdocs
mv /var/www/vhosts/example.com.br/subdomains/myapp/web /var/www/vhosts/example.com.br/subdomains/myapp/httpdocs
4) Configure Symfony to know where's the web dir
vi /var/www/vhosts/example.com.br/subdomains/myapp/config/ProjectConfiguration.class.php
..............
public function setup()
{
// for compatibility / remove and enable only the plugins you want
$this->enableAllPluginsExcept(array('sfPropelPlugin', 'sfCompat10Plugin'));
# add these lines
$sf_root_dir = sfConfig::get('sf_root_dir');
sfConfig::add(array(
'sf_web_dir_name' => $sf_web_dir_name = 'httpdocs',
'sf_web_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_web_dir_name,
'sf_upload_dir' => $sf_root_dir.DIRECTORY_SEPARATOR.$sf_web_dir_name.DIRECTORY_SEPARATOR.sfConfig::get('sf_upload_dir_name'),
));
...........
5) In this moment you'll see some errors about base dir restriction, I changed the apache config
vi /var/www/vhosts/example.com.br/conf/httpd.include
add this line
Alias /sf /usr/share/pear/data/symfony/web/sf
comment this line to disable the open base dir restriction
# php_admin_value open_basedir "/var/www/vhosts/example.com.br/subdomains/myapp/httpdocs:/tmp"
and reload the apache configurations
/etc/init.d/httpd reload
that's it!
Nei