Solved

Problem with sessions on vps server

Posted on 2011-02-25
3
568 Views
Last Modified: 2012-05-11
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
Comment
Question by:Zado
  • 2
3 Comments
 
LVL 34

Expert Comment

by:Beverley Portlock
ID: 34980878
Check the ownership and permissions on /var/lib/php and /var/lib/php/session

0
 
LVL 8

Accepted Solution

by:
Zado earned 0 total points
ID: 34981125
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
 
LVL 8

Author Closing Comment

by:Zado
ID: 35015456
I found a proper solution that works.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Link SQL table to Webpage 9 38
a free alternative to cpanel? 1 37
linux ssh 4 29
LINUX CENTOS + APACHE 9 32
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now