PHP Module for Apache Has Been Renamed in PHP 8.0

PHP Module for Apache Has Been Renamed in PHP 8.0

Apache HTTP Server is an open-source web server that delivers web content to clients who request it. There are various methods how Apache can handle PHP scripts. Apache allows using PHP as a built-in module referred as mod_php. This module allows Apache to directly interpret PHP code without using an external PHP process that interprets code.

Since PHP 8.0, the PHP module for Apache has been renamed. Module identifier has been changed from php7_module to php_module.

Using Apache with PHP 7.4 on Ubuntu:

/etc/apache2/mods-enabled/php7.4.load

LoadModule php7_module /usr/lib/apache2/modules/libphp7.4.so

Using Apache with PHP 8.0 on Ubuntu:

/etc/apache2/mods-enabled/php8.0.load

LoadModule php_module /usr/lib/apache2/modules/libphp8.0.so

Leave a Comment

Cancel reply

Your email address will not be published.