Category: "PHP"

Find the PHP session files that are older than 24 minutes

Shell sudo find /var/lib/php/session -mmin +24 -type f -exec ls -l {} \; Yes, that's the whole post more »

Apache 2.4 virtual host specific PHP-FPM error logs

If you are using PHP-FPM with Apache and you would like to separate the error logging by user, directory or virtual host, you can use the ProxyFCGISetEnvIf directive In a server level Apache .conf file Code <Directory /home/user/public_html>… more »

AMI - upgrade PHP from 7.1 to 7.3

Don't do this on a production system I ran this on an Amazon Linux AMI - it's probably fine on CentOS, etc. Get all the PHP 7.1 packages and make a file called php. You might have to change the .x86_64 to .i386/.i686 Code sudo yum list installed php71*… more »

Upgrade PHP 5.5 to PHP 7.1 on CentOS 6.9 - Recklessly

I wasn't planning to upgrade PHP today, but in order to use Symfony 4.0, I had to. First, I wanted to get all the PHP RPMs Shell… more »

Web application session timeout code

Session timeout warning for a web application with a variety of page layouts and frequent use of multiple tabs. Nutshell explanation - ping the server, if you get a 403, show a huge red bar across the top of whatever page pinged. Result: It is immed… more »