I'm trying to get my Zend Framework application up and running on my VPS. I'm receiving this error:
Error
Warning: realpath() [function.realpath]: open_basedir restriction in effect.
Apparently this is quite common with Plesk's default restrictions so I'm sure some of you have faced the same problem.
What I've tried
In /var/www/vhosts/DOMAIN/conf/ I have created the file vhost.conf using the Virtuozzo Power Panel. Below is the code that I placed in vhost.conf:
Attempt 1
<Directory /var/www/vhosts/DOMAIN/public>
<IfModule sapi_apache2.c>
php_admin_value open_basedir none
</IfModule>
<IfModule mod_php5.c>
php_admin_value open_basedir none
</IfModule>
</Directory>
Attempt 2
<Directory /var/www/vhosts/DOMAIN/public>
php_admin_value open_basedir none
</Directory>
I've also restarted the httpd service.
Folder structure
My folder structure is as follows:
/var/www/vhosts/DOMAIN/application
/var/www/vhosts/DOMAIN/library
/var/www/vhosts/DOMAIN/public
Any help would be much appreciated.