The Blog

Symfony 2 and Plesk 10 on CenOS 5 Posted on

Here it goes:

In order to change default document root for a domain hosted in a plesk control panel we need to create vhost.conf file in the directory in which http.include for the domain resides. Directly changing the document root entry in httpd.include causes the modification to be overwritten with default entry since plesk overwrites entries in configuration files with database entries
Entries to be put in the vhost.conf follows

DocumentRoot /var/www/vhosts/domain.com/httpdocs/Symfony/web
<Directory /var/www/vhosts/domain.com/httpdocs/Symfony/web>
AllowOverride all
Order allow,deny
Allow from all
</Directory>

Run the websrvmng just to make sure that plesk will make use of vhost.conf for document root instead of httpd.include

websrvmng -u --vhost=domain.com

Next install SQLite3

$ yum install php53-pdo

This might not be neded soon, with Symfony 2.1

Add date.timezone = America/Chicago to etc/php.ini

This entry was posted in PHP, PLESK. Bookmark the permalink.

Please Post Your Comments & Reviews

Your email address will not be published. Required fields are marked *



CAPTCHA
Change the CAPTCHA codeSpeak the CAPTCHA code