The latest version of php that is currently available in AIX Toolbox is 7.4.33. Version 7.4.x is no longer supported by the community and we will be uploading PHP 8.1.12 in AIX toolbox by this week.
PHP 8.x comes with several new features and some incompatibilities with PHP 7.x. Please refer to https://www.php.net/manual/en/migration80.php for further details. Due to these incompatibilities, if one has php scripts that make use of any feature that is modified or deprecated in PHP8, it may not work.
To alert users that this is a major php version change, PHP rpms are now named php8, instead of just php. Hence, to install php8, one has to run dnf install php8.
We have also added Conflicts: php<8 in php8 spec file so that if one has php 7.x rpms already installed on their system, then installation of php8 would fail with package conflict error as shown below.
package php8-8.1.12-1.ppc conflicts with php < 8 provided by php-7.4.33-1.ppc
In order to avoid this, make sure to uninstall php 7.x rpms before installing php8.
Note:
Since PHP 8.0, the PHP module for Apache has been renamed. The Apache module identifier is renamed to php_module. In PHP 7.x, it was named php7_module. So, we have modified httpd-php.conf file as follows.
LoadModule php_module /opt/freeware/lib/httpd/modules/libphp.so
Users won't be impacted by this, it's just for information.
------------------------------
RESHMA KUMAR
------------------------------
#AIXOpenSource