Forum

Thread tagged as: Problem, Installation, Runway

Fastshosts Compatibility Test

Hi,

I am running the Runway compatibility test for a new client on their Fasthosts server, and am getting the "PHP Sessions are not functioning as expected." message. Is there a way to find out any more detail about what is causing this? Their support have asked for more information about the error.

I have asked where I can configure PHP Sessions, and their reply was:

There is no 'section' do carry that out, this would be done in your PHP scripting itself.

Thanks for your help, not had any issue with server requirements before!

Mike Harrison

Mike Harrison 37 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Usually it's the session.save_path php.ini directive:

https://php.net/manual/en/function.session-save-path.php

Hi Drew,

Their support is not being that helpful - they say sessions are on, which judging by phpinfo is true. This is the rest of that section:

Session Support                   enabled
Registered save handlers          files user redis
Registered serializer handlers    php_serialize php php_binary

Directive                         Local Value                   Master Value
session.auto_start                Off                           Off
session.cache_expire              180                           180
session.cache_limiter             nocache                       nocache
session.cookie_domain             no value                      no value
session.cookie_httponly           Off                           Off
session.cookie_lifetime           0                             0
session.cookie_path               /                             /
session.cookie_secure             Off                           Off
session.entropy_file              /dev/urandom                  /dev/urandom
session.entropy_length            32                            32
session.gc_divisor                1000                          1000
session.gc_maxlifetime            1440                          1440
session.gc_probability            0                             0
session.hash_bits_per_character   5                             5
session.hash_function             0                             0
session.name                      PHPSESSID                     PHPSESSID
session.referer_check             no value                      no value
session.save_handler              files                         files
session.save_path                 /var/lib/php/session          /var/lib/php/session
session.serialize_handler           php                           php
session.upload_progress.cleanup   On                            On
session.upload_progress.enabled   On                            On
session.upload_progress.freq      1%                            1%
session.upload_progress.min_freq  1                             1
session.upload_progress.name      PHP_SESSION_UPLOAD_PROGRESS   PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix    upload_progress_              upload_progress_
session.use_cookies               On                            On
session.use_only_cookies          On                            On
session.use_strict_mode           Off                           Off
session.use_trans_sid             0                             0

session.save_path is their default. Other sites I have worked on show it as /tmp, but switching it to this has no effect. Is there anything else there that might be causing Runway headaches? There are some disparities between this and other sites but I wouldn't know what effect these would have.

If there is nothing obvious I will go back to them again.

Thanks!

Rachel Andrew

Rachel Andrew 394 points
Perch Support

This is a hosting issue so there really isn't a lot we can do, something about sessions isn't working. It could be the permissions are wrong on the folder, there might not be disk space, but you are going ot need to work it out with support as painful as that might be :(

No worries thanks for taking a look - I will get back to them

I had a similar issue with Fasthosts before (and they were really unhelpful!) where some PHP that worked on other hosts was fishing to execute.

It turned out then, it was because the account had been set up on a Windows Server - which had strange configuration settings. They moved me to a Linux server and everything was fine.

Hi,

Thanks for the info Haydn, unfortunately it is a Linux server so that isn't the answer.

Had a look and there are some options for how to run PHP - as a CGI Application, FastCGI Application or an Apache Module. Could this be making a difference? It is set to FastCGI.

Annoyingly the Apache Module option means I only have 5.3.3 available, which is too low for Runway.

Drew McLellan

Drew McLellan 2638 points
Perch Support

That shouldn't be an issue. Is it just the test that is failing? I guess it's not beyond possibility that the actual product might work where the test is failing.

I have only run the test - will try the full site and see what happens