IPG Client Info

Version Date Notes By
0.2 2024-02-01 Added PHP Update guide Bruno Borges
0.1 2023-09-21 Initial commit Bruno Borges

Updating PHP - CentOS 8

To update PHP in CentOS 8, you need to use the yum to install the required packages:

sudo yum install php82-php php82-php-bcmath php82-php-cli php82-php-common php82-php-fpm php82-php-gd php82-php-intl php82-php-ldap php82-php-mbstring php82-php-mysqlnd php82-php-pdo php82-php-pecl-igbinary php82-php-pecl-msgpack php82-php-pecl-mysql php82-php-pecl-redis5 php82-php-pecl-zip php82-php-soap php82-php-sodium php82-php-xml php82-runtime

Edit the usual values in the php.ini file:

sudo vi /etc/opt/remi/php82/php.ini

Edit the necessary values in php-fpm configuration file (check previous version):

sudo vi /etc/opt/remi/php82/php-fpm.d/www.conf

Restart the PHP and HTTPD (Apache) services:

sudo systemctl enable php82-php-fpm
sudo systemctl start php82-php-fpm
sudo systemctl restart httpd.service

Updating certificates - CentOS 8

The client will send us the new certificate (may come 2 files, but use the one name 'urano.ipg.pt.pem'). A new key shouldn't be necessary, the one that is already in place in the server will typically work fine.

Connect to the client's server, upload the certificate to a new folder in /home/wemake/certificates/yyyymmdd/urano_ipg_pt_cert.pem where yyyymmdd is the current date (e.g. 20230921).

Then via Putty, copy that new certificate to the following directory using sudo: etc/pki/tls/certs

Then set the appropriate SELinux Context:

  • sudo chcon -t httpd_sys_content_t /etc/pki/tls/certs/urano_ipg_pt_cert.pem
  • sudo restorecon -Rv /etc/pki/tls/certs/urano_ipg_pt_cert.pem

Finally, restart Apache: sudo systemctl restart httpd

If everything is OK, apache should restart without errors.