PHP Session not configured correctly on the server
Posted: Thu Jul 16, 2009 9:33 am
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?
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?