session not working in php

On a new server, PHP session was not working. This server have a cpanel installed before, i have uninstalled it, there is no proper way of uninstalling cpanel, so i just removed all related cron jobs and cpanel folders.

To fix the PHP session problem i checked session.save_path which was set to /tmp, on checking i found it is read only.

It may be due to securetmp service of cpanel disabled during uninstallation. I set path to

session.save_path = “/var/tmp”

in php.ini and restarted apache, session started working.

Related posts:

  1. FreeBSD Cpanel Server – Pear not working
  2. Exim not working
  3. imapd not working
  4. Exim Stoped working on FreeBSD 5.4
  5. Cpanel Show Current Disk Usage not working
This entry was posted in PHP and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>