Install failed if PHP session.save_path set

Permalink 1 0 Browser Info Environment
On Debian system witch PHP FPM with pool defined for each virtualhost with:

php_value[session.save_path] = /srv/www/$pool/tmp

Concrete5 installation failed with error:

SessionHandler::read(): open(/srv/www/c5test.rhx.it/tmp/sess_a3kl9c4i9okoig19o7hng9hlun, O_RDWR) failed: Permission denied (13).

this is not a real "Permission denied", sess_a3kl9c4i9okoig19o7hng9hlun file exists in default path

-rw------- 1 c5test.rhx.it www-data 1784 ago 14 16:03 /var/lib/php/sessions/sess_a3kl9c4i9okoig19o7hng9hlun

Seem concrete5 creates session file in standard session.save_path (ignoring php_value directive) and then try to read it in custom path

If value deactivated

;php_value[session.save_path] = /srv/www/$pool/tmp

installation completed successfully

HTH
Alessandro - Lota


Status: New
lota

concrete5 Environment Information

# concrete5 Version
Core Version - 8.4.2
Version Installed - 8.4.2
Database Version - 20180716000000

# concrete5 Packages
None

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
fpm-fcgi

# PHP Version
7.2.7-1+0~20180622080852.23+jessie~1.gbpfd8e2e

# PHP Extensions
apcu, calendar, cgi-fcgi, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, geoip, gettext, hash, iconv, json, ldap, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, Phar, posix, readline, Reflection, session, shmop, SimpleXML, sockets, sodium, SPL, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
upload_max_filesize - 2M
ldap.max_links - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
opcache.max_accelerated_files - 10000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0