(dv) Session Save Path Errors and the Vhost.conf
NOTE:
Things you will need:
- Root access and SSH access to your (dv)
- A basic understanding of the Vim editor
The '/var/lib/php/session/' directory should be writable by default. On occasion, certain software will refuse to see this path as writable. In that instance what you will need to do is create a special file called vhost.conf that will tell that domain to use another location you specify:
Create the new directory to house your sessions inside of your domain directory:
mkdir /var/www/vhosts/mt-example.com/tmp Apply the appropriate permissions and file ownership:
chown username:psaserv /var/www/vhosts/mt-example.com/tmp && chmod 777 /var/www/vhosts/mt-example.com/tmp
NOTE:
Text in this color is used as an example. Please be sure to replace this text with the proper information for your site or server.
Create the vhost.conf file in the following directory /var/www/vhosts/
vi /var/www/vhosts/mt-example.com/conf/vhost.confand include the following line:
php_value session.save_path /var/www/vhosts/mt-example.com/tmp
Save the file and run this command to force Plesk to see the changes:
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=mt-example.com
service httpd graceful
Your software should now use the new path for sessions data and your CMS installation should proceed.
Revisions:
07-20-2009: Minor Fixes
Fields marked with an asterisk(*) are required. Comment on this article