[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 589
  • Last Modified:

Problem with sessions on vps server

Hi,


I have serious problem I've been trying to fix for last 3 days, I changed vps hosting provider (from 1and1.co.uk to daily.co.uk) and since then I can't login to my website, I discovered that there's some problems with sessions, that's what I got in error_log file (last entries):

[Fri Feb 25 10:39:52 2011] [client 92.27.74.248] PHP Warning: Unknown: open(/var/lib/php/session/sess_mo6uujpmltr0140p26bkoa7a66, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://vvps-751225.dailyvps.co.uk/page1.php

[Fri Feb 25 10:39:52 2011] [client 92.27.74.248] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0, referer: http://vvps-751225.dailyvps.co.uk/page1.php

And here you can get all the information (about sessions too if you scroll down):
http://vvps-751225.dailyvps.co.uk/page1.php


Please help.
0
Zado
Asked:
Zado
  • 2
1 Solution
 
Beverley PortlockCommented:
Check the ownership and permissions on /var/lib/php and /var/lib/php/session

0
 
ZadoAuthor Commented:
Thanks for that. I fixed the problem and that's what I've done:
1. I displayed all php info:
<?php phpinfo(); ?>

Open in new window

2. I found in this info path to php.ini on my server
3. Downloaded php.ini and edited, I changed the following lines (I give proper configuration below, after change):
register_globals = on
session.save_path = "/tmp"

Open in new window

0
 
ZadoAuthor Commented:
I found a proper solution that works.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now