Thread Closed 
PHP session problem
07-11-2012, 09:53 AM
Post: #1
PHP session problem
Hi there, I'm trying to install a PHP script on my VPS and it won't let me continue with the installation unless PHP session support is enabled, I've looked in my php.ini file and enabled things that need to be enabled. Does anyone one how to properly turn this on?

[Image: CYKuu.png]
Address: cwilkinson1998.com - Server down atm. Expect big changes soon! Wink
My new YouTube Gaming Channel - http://www.youtube.com/user/thewaypointchris
User Tools


07-11-2012, 12:46 PM (This post was last modified: 07-11-2012 12:47 PM by guind.)
Post: #2
RE: PHP session problem
if you want to run php script in your vps. first you musy install php
then if the session problem.

you must start with
PHP Code:
<?php
session_start
(); //start with this

$_SESSION['FREEVPS'] = 'FreeVPS.us';

echo 
$_SESSION['FREEVPS']; //print FreeVPS.us
?>
User Tools
07-11-2012, 12:53 PM
Post: #3
RE: PHP session problem
What error does it say?
You should use something like this:
PHP Code:
<?php
session_start
();
$_SESSION['name'] = "Chris";
echo 
$_SESSION['name'];
//destroy the session with session_destroy();
?>

[Image: freevps-userbar.php?name=Matthew425&amp;bg=2]
User Tools
07-12-2012, 02:03 AM
Post: #4
RE: PHP session problem
It is a script, pre-made. When I type in the address of the installer into my web browser it shows that php session support must be enabled.

[Image: CYKuu.png]
Address: cwilkinson1998.com - Server down atm. Expect big changes soon! Wink
My new YouTube Gaming Channel - http://www.youtube.com/user/thewaypointchris
User Tools
07-12-2012, 02:18 AM
Post: #5
RE: PHP session problem
(07-12-2012 02:03 AM)cwilkinson1998 Wrote:  It is a script, pre-made. When I type in the address of the installer into my web browser it shows that php session support must be enabled.

Please PM me and I'm gonna help you Smile

Best,

Zeboo/Greg

Thanks for VPS 25 - FreeVPS.US

By the way while I had my VPS 17 - MitiHost - I had no problems with it, I highly recommend MitiHost.
User Tools
07-12-2012, 03:51 AM
Post: #6
RE: PHP session problem
Have you resolved it?

It may just need a simple folder creation such as:

Code:
mkdir /var/lib/php/session
chmod 777 /var/lib/php/session

Of course, you'll have to check your php.ini for where the session folder is defined and where it's defined to.

"I like to put random quotes, to make myself look clever."
- WiseMannnn
User Tools
07-12-2012, 06:29 AM
Post: #7
RE: PHP session problem
See http://www.afterlogic.com/forum/forum_po...2895&PN=21

It may be safe to ignore, but try their test script linked to on that page.
User Tools
07-12-2012, 09:47 AM (This post was last modified: 07-12-2012 09:50 AM by cwilkinson1998.)
Post: #8
RE: PHP session problem
(07-12-2012 02:18 AM)Zeboo Wrote:  Please PM me and I'm gonna help you Smile

Best,

Zeboo/Greg
Thank you very much for your offer but I got the issue sorted out. Thanks again,really! Smile

(07-12-2012 03:51 AM)Infinity Wrote:  Have you resolved it?

Of course, you'll have to check your php.ini for where the session folder is defined and where it's defined to.

Thanks infinity! That's all it took, in the php.ini file it had something about it being in /path. So I previously had chmodded the /path folder, but it turned out it was a comment in the end explaining how the session path worked. I tried the path you suggested and it worked!

Thanks to everyone who gave suggestions, I appreciate it!

[Image: CYKuu.png]
Address: cwilkinson1998.com - Server down atm. Expect big changes soon! Wink
My new YouTube Gaming Channel - http://www.youtube.com/user/thewaypointchris
User Tools
07-13-2012, 04:19 AM (This post was last modified: 07-13-2012 04:20 AM by DeathProxy.)
Post: #9
RE: PHP session problem
Closed because the problem has been solved. If anyone needs this thread back open, just PM me.
User Tools
Thread Closed 


Forum Jump:



User(s) browsing this thread:
1 Guest(s)