No php7_module installed by pacman

On a fresh install of Manjaro, I used
pacman -S php php-apache
to install everybody’s favorite mediocre programming language. My working copy of apache2 died at once. Looking at the error messages, I found “unable to load php_7module” which my install instructions told me to add to httpd.conf. I checked the modules directory and it wasn’t there. I reran the pacman command and again there was no error message, but the module still failed to appear. What do I do next? I’m using the directions in “Install LAMP on Manjaro” from linux and ubuntu dot com.

Please check the version of the installed php packages. The normal php package is now at Version 8.
You need to adapt your config files.

The article is showing date last edited 4 August 2021 but the author has overlooked 2 comments from February advising that Manjaro is using php8

Instead of following codes:

LoadModule php7_module modules/
AddHandler php7-script php
Include conf/extra/php7_module.conf

Use following codes for php8:

LoadModule php_module modules/
AddHandler php-script php
Include conf/extra/php_module.conf
1 Like