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:
LoadModule php7_module /usr/lib/apache2/modules/libphp7.4.so
Using Apache with PHP 8.0 on Ubuntu:
LoadModule php_module /usr/lib/apache2/modules/libphp8.0.so
Leave a Comment
Cancel reply