Change session path in PHP-FPM

If you use Linux default sessions in php are stored at /var/lib/php/sessions/ and you want change this settings, create in your server folder sessions like this /var/www/sessions/ Set permissions chown -R www-data:www-data /var/www/sessions chmod 777 /var/www/sessions Note: www-data it`s your nginx user, you can check it in file /etc/php5/fpm/pool.d/www.conf Now edit php.ini and set path to your new sessions folder session.save_path...

read more

Upgrade php5 to php7.1 on Debian

To install php7.1 you don't need to delete php5. PHP 7.1 will be installed in a separate folder /etc/php/7.1/ First add Dotdeb PPA and import the GPG key of Dotdeb repository apt-get install apt-transport-https lsb-release ca-certificates wget -O /etc/apt/trusted.gpg.d/php.gpg Then add PPA in your server and update echo 'deb jessie main' > /etc/apt/sources.list.d/php.list apt-get...

read more