Support / KnowledgeBase

 
Search the KnowledgeBase Search

(dv) Session Save Path Errors and the Vhost.conf

  • Applies to: All (dv)

  • Difficulty: Easy

  • Time needed: 5 minutes

  • Tools needed: root, ssh, vi knowledge

 

NOTE:

Things you will need:

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/mt-example.com/conf using the following command:

 vi /var/www/vhosts/mt-example.com/conf/vhost.conf
and 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 


Restart Apache to load the new changes: 

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
 


User Comments

No visitor comments posted. Post a comment

Fields marked with an asterisk(*) are required. Comment on this article

Fill out the form below if you would like to comment on this article.
 
 
 

(code is not case-sensitive)
 
Submit
 
 

Continue