Issue
How to make the transition to Tuxcare PHP ELS versions of PHP?
Installing the relevant alt-php package just drops the files in /opt/alt/phpXX but there doesn't appear to be any documentation on how to make apache use this.
Environment
- ALT-PHP
Solution
Declare the correct module that needs to be loaded on the httpd configs. Either in /etc/httpd/conf.modules.d/20-php.conf, or in a separate configuration file under /etc/httpd/conf.d/
If there's already a version specified on the config, it should be changed to the desired one under the path /opt/alt/php[version]/
If there's none declared, it should be loaded using the LoadModule directive
For example:
LoadModule php7_module /opt/alt/php73/usr/lib64/httpd/modules/libphp7.so
AddHandler application/x-httpd-php .php
DirectoryIndex index.php index.html
Cause
PHP-ELS gets installed but it's not automatically loaded into httpd configs, so it needs to be declared.
Useful links
TuxCare docs - How to use PHP-ELS
Comments
0 comments
Please sign in to leave a comment.