Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
session.save_path in custom php.ini
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- session.save_path in custom php.ini
session.save_path in custom php.ini
22-03-2010 11:08 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
If you picked up a copy of the php.ini file posted <a href="http://community.plus.net/forum/index.php/topic,83568.msg696223.html#msg696223">here</a> before today (22/03/10), the session.save_path will need to be changed either to a custom sessions folder of your own or to /tmp or it is likely to cause problems.
Sorry, I should have thought of that earlier.
To find the absolute path to your file space needed for a custom save path, you can place a phpinfo() file
next to you php.ini file, set permissions to 0700 and call it in a browser, then look against "Loaded Configuration File".
Sorry if that caused problems for anyone!
Gabe
Edit: more informative subject line added
Sorry, I should have thought of that earlier.

To find the absolute path to your file space needed for a custom save path, you can place a phpinfo() file
<?php
phpinfo();
?>
next to you php.ini file, set permissions to 0700 and call it in a browser, then look against "Loaded Configuration File".
Sorry if that caused problems for anyone!
Gabe
Edit: more informative subject line added
Message 1 of 8
(2,486 Views)
7 REPLIES 7
Re: php.ini problem: apologies
24-03-2010 2:36 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
i am sorry, but i have no idea how to fix this problem. Can you please provide a step by step guide?? Many thanks!!
Message 2 of 8
(553 Views)
Re: php.ini problem: apologies
24-03-2010 3:14 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Open the php.ini file in a text editor, scroll down to session.save_path and if it doesn't already say session.save_path = /tmp, change it to session.save_path = /tmp
If you had a problem with sessions dropping, that should fix it.
If you want to use your own custom sessions folder, you can create one in your filespace and use the absolute path to that filespace instead of /tmp. You can find the absolute path either as mentioned above or using a bash script with the pwd command.
Gabe
If you had a problem with sessions dropping, that should fix it.
If you want to use your own custom sessions folder, you can create one in your filespace and use the absolute path to that filespace instead of /tmp. You can find the absolute path either as mentioned above or using a bash script with the pwd command.
Gabe
Message 3 of 8
(553 Views)
Re: php.ini problem: apologies
24-03-2010 3:19 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
thanks for your reply, but i am using the PlusNet CCGI platform. Am i allowed to do this?

Message 4 of 8
(553 Views)
Re: php.ini problem: apologies
24-03-2010 3:37 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: whsupermarket i am using the PlusNet CCGI platform. Am i allowed to do this?
It's a custom php.ini to be placed in your own filespace. Yes you are allowed to do this. You only need to do this if you have/want to override any of the values in the global php.ini.
Gabe
Message 5 of 8
(554 Views)
Re: php.ini problem: apologies
24-03-2010 3:58 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi Gabe,
With php.ini pointing to /tmp as the sessoion_save path I get this error from one of my apps:
ERROR 2: session_start() [function.session-start]: open(/tmp/sess_86aad15e1b2a1d921b116618f44606c5, O_RDWR) failed: File too large (27)
The session files are only 200 or so bytes so how can they be too big
If I configure my php.ini to save sessions to within my filespace everything works. I'm happy to do this but worried that my filestore allocation will be compromised if they build up too much.
Stuart
With php.ini pointing to /tmp as the sessoion_save path I get this error from one of my apps:
ERROR 2: session_start() [function.session-start]: open(/tmp/sess_86aad15e1b2a1d921b116618f44606c5, O_RDWR) failed: File too large (27)
The session files are only 200 or so bytes so how can they be too big

If I configure my php.ini to save sessions to within my filespace everything works. I'm happy to do this but worried that my filestore allocation will be compromised if they build up too much.
Stuart
Message 6 of 8
(554 Views)
Re: php.ini problem: apologies
24-03-2010 4:23 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: stuartp With php.ini pointing to /tmp as the sessoion_save path I get this error from one of my apps
I think there maybe a bit of /tmp snafu at the moment.

I hope that if Plusnet can revert to /var/lib/php5 for sessions they will.
Gabe
Message 7 of 8
(554 Views)
Re: php.ini problem: apologies
24-03-2010 7:31 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote I think there maybe a bit of /tmp snafu at the moment. Sad
I hope that if Plusnet can revert to /var/lib/php5 for sessions they will.
Oh well, at least its not something I've broken

Stuart
Message 8 of 8
(554 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- session.save_path in custom php.ini