Session_save_path is writeable

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Session_save_path is writeable

Post by webguru »

I am trying to upgrade a clean install of 1.12.1 which was from the Installatron on the Omnus server that my client is on. It was installed with content and nothing has been altered.

Immediately, I tried to install 2.1.2 from ftp'ing the files to the server and I get this error on page 3:

Session_save_path is writeable
The session save path directory is not writeable


After talking with the hosting company and doing extensive reading to figure out how to fix it, I'm at a bit of a dead-end, although I feel a lot more educated on the matter.

I read in the DOCS about Checking if session.save_path is writable and adding this line to the php.ini:
session.save_path = <install dir>/tmp/cache

This might be the answer, but I can't find a php.ini file anywhere.

So my questions are:

1. Am I supposed to create one and enter that line?
2. If so, what is the install directory and how do I code it exactly?
3. Where do I put the php.ini file?

I realize this forum likes questions asked in a certain manner and I hope I'm being clear in the question and what I've done to research it.

Below is my phpinfo page that shows what I think you need:
1. Configuration File (php.ini) Path: /etc/php70
2. Loaded Configuration File: /webroot/u/m/umcwv001/websiteaddress.org/.config/php.ini
3. session.save_handler: files
4. open_basedir: no value

In reply to #1 above, there is no php.ini file in the page.
In reply to #2 above, the .config is a hidden file and I do not have access to it according to the hosting company.

Thank you for any assistance and lastly, here is the System Information:

Cms Version: 1.12.1

Installed Modules:

CMSMailer: 5.2.2
CMSPrinting: 1.0.5
FileManager: 1.4.5
MenuManager: 1.8.7
MicroTiny: 1.2.9
ModuleManager: 1.5.8
News: 2.15.2
Search: 1.7.13
ThemeManager: 1.1.8


Config Information:

php_memory_limit:
process_whole_template:
max_upload_size: 32000000
url_rewriting: none
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true


Php Information:

phpversion: 7.0.3
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 180
output_buffering: On
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 32M
upload_max_filesize: 32M
session_save_path: /clfs/sessions (0755)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)


Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.43
Server Db Grants: Could not find a suitable "GRANT ALL" permission. This may mean you could have problems installing or removing modules. Or even adding and deleting items, including pages
Server Time Diff: No filesystem time difference found
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Re: Session_save_path is writeable

Post by webguru »

Can anyone help me? Any thoughts?

Omnis.com is my clients hosting company and they are no help at all. I can't install it fresh, manually, nor do an upgrade to the Installatron version.

Appreciate any assistance.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Session_save_path is writeable

Post by Jeff »

According to the system info you pasted.
session_save_path: /clfs/sessions (0755)
If PHP is ran as the owner of that dir than you are fine. If not tell your hosted they need to fix the php setting so the PHP user can write to it.
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Re: Session_save_path is writeable

Post by webguru »

Thanks, Jeff...

Unfortunately, the techs at Omnis.com are telling me the path IS writable and have confirmed it.

I have used this upgrade to 2.1.2 on other hosting companies without issue. The option of moving off this hosting company is not my choice.

The tech at Omnis said he tried installing it on one of his servers at omnis and got the same error, but that he has other CMS programs installed without issue.

I just tried even installing 2.1.1 with the same error.

Is there something I can add to the htaccess file or some other way of getting around it?

Thanks for your response.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Session_save_path is writeable

Post by Jeff »

Are you installing using the phar file? If yes try the expanded zip.

If that doesn't work try installing the site on another server and moving it to the hosting provider.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Session_save_path is writeable

Post by velden »

What happens when you create a .php file with contents below and open that in browser?

Code: Select all

<?php

   $path = ini_get('session.save_path');
   echo $path.'<br/>';
   var_dump(is_writable($path));
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Re: Session_save_path is writeable

Post by webguru »

Jeff,
I am installing from the expanded file, but I will give yours an attempt.

Velden,
I get this:
2;/clfs/sessions
bool(false)

What does it mean?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Session_save_path is writeable

Post by velden »

Please try this code:

Code: Select all

<?php

   $path =  _get_session_save_path();
   echo $path.'<br/>';
   var_dump(is_writable($path));


   function _get_session_save_path()
    {
        $path = ini_get('session.save_path');
        if( ($pos = strpos($path,';')) !== FALSE) $path = substr($path,$pos+1);

        if( $path ) return $path;
    }
It's about the same test as the installer seems to do.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Session_save_path is writeable

Post by Jeff »

See if this variation changes anything. (I added a '/' to the end of the path)

Code: Select all

<?php

   $path =  _get_session_save_path();
   echo $path.'<br/>';
   var_dump(is_writable($path.'/'));


   function _get_session_save_path()
    {
        $path = ini_get('session.save_path');
        if( ($pos = strpos($path,';')) !== FALSE) $path = substr($path,$pos+1);

        if( $path ) return $path;
    }
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Re: Session_save_path is writeable

Post by webguru »

In regards to the last one, I get the following:

/clfs/sessions
bool(false)
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Session_save_path is writeable

Post by Jeff »

Show that to the hosting company and see if they can explain it.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Session_save_path is writeable

Post by velden »

Please test my code first too.
Not sure if that should differ but it's closer to what the installer does.

Code: Select all

<?php

   $path =  _get_session_save_path();
   echo $path.'<br/>';
   var_dump(is_writable($path));


   function _get_session_save_path()
    {
        $path = ini_get('session.save_path');
        if( ($pos = strpos($path,';')) !== FALSE) $path = substr($path,$pos+1);

        if( $path ) return $path;
    }
If that fails too ('bool(false)') ask your provider like Jeff suggests.
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Re: Session_save_path is writeable

Post by webguru »

Both tests show the same results:
/clfs/sessions
bool(false)

Thank you both, but I don't understand what this tells me, or them for that matter. Can you elaborate?

Thanks
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Session_save_path is writeable

Post by velden »

Unfortunately, the techs at Omnis.com are telling me the path IS writable and have confirmed it.
That code shows the session.save_path is NOT writable. At least not by your php scripts.
So, show the script to the techs and ask if they can explain the results.
webguru
Forum Members
Forum Members
Posts: 97
Joined: Thu May 08, 2014 6:18 pm

Re: Session_save_path is writeable

Post by webguru »

Ah....

Much appreciation to you both!

I will let you know what they say.
Post Reply

Return to “CMSMS Core”