PHP Session not configured correctly on the server

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
Rocko123
Forum Newbie
Posts: 3
Joined: Thu Jul 16, 2009 9:01 am

PHP Session not configured correctly on the server

Post by Rocko123 »

Guys,
I am new to Apatchi, Linux and PHP. I have a dedicated server with Centos. I installed PHP 5.2x and mysql 5.x. I have plesk control panel on there as well. When I try to run my php application on it, it does not seem to retain the session. this application run on shared hosting environment like a charm. I am sure its session problem becuase in the error message I can see that its not retaining some values in my URL. I checked the php.ini file and I looked at the session settings. Here is what I did,

changed the session.save_path = "N;/path" to /tmp and granted tmp full permissions 777 on the root. That did'nt work.

in plesk panel ther in the "web hosting settings" i enabled php support I picked the module option, CGI and Fast CGI did not work. ( I am not sure if this has anythign to do with it)

more info

- The code files are in the httpdocs folder the chmod 777 on that folder as well.

- Plesk panel version is 9.2

- old old version of php I think 2.x was intalled on the server when I got it.

- Hosting company has no clue whats going on, its dedicated server, my own, i can do whatever i want to it. I have full access to and they only provide it with the basics.

Can anyone help me or give me hints on what could be the problem with the session? and/or whats the proper way to configure the php session on my server?
User avatar
kaisellgren
DevNet Resident
Posts: 1675
Joined: Sat Jan 07, 2006 5:52 am
Location: Lahti, Finland.

Re: PHP Session not configured correctly on the server

Post by kaisellgren »

What error message? Have you tried using the default php.ini that comes with PHP? That should be fine.
Post Reply