Evan Genest's Learning Log

These are notes to myself. If you discover them and find them useful I would love to hear from you. Most of these are related to travel I did, books I read, or tech notes for Matomo and the LAMP stack.


Browse my topics here

PHP Settings

linux

Updating my hosted server

sudo a2enmod proxy_fcgi setenvif
sudo a2enconf php8.0-fpm
sudo systemctl reload apache2

See which versions of PHP are installed.
$ ls /usr/bin/php*

$ sudo update-alternatives --set php /usr/bin/php8.1 
update-alternatives: using /usr/bin/php8.1 to provide /usr/bin/php (php) in manual mode
evan@nodejs-nyc:~$ php -v
PHP 8.1.14 (cli) (built: Jan  6 2023 15:22:36) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.14, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.14, Copyright (c), by Zend Technologies