After upgrade from PHP 7.3 to PHP 8.1 Apache not displaying pages anymore

Hello friends, its been a while since i needed help,
i have hit the wall and have no idea how to fix this issue.
i tried changing php versions in virtualmin and nothing.
i have 4 versions installed
7.3
7.4
8.0
8.1
if i point to index.php file it downloads it, if i go to directory browser gives 403 error.
any help would be greatly appreciated

this is error log from var/log/apache2
[Sun Apr 03 00:00:07.716538 2022] [mpm_prefork:notice] [pid 1002] AH00163: Apache/2.4.38 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured – resuming normal operations
[Sun Apr 03 00:00:07.716568 2022] [core:notice] [pid 1002] AH00094: Command line: ‘/usr/sbin/apache2’

SYSTEM INFORMATION
OS type and version Debian 11
Webmin version 1.990
Virtualmin version 6.17-3
Related packages SUGGESTED

You installed mod_php. You should not have installed mod_php, and you should uninstall it.

Thanks for the reply, i dont wanna make it worse, how do i uninstall mod_php for all versions?
i removed it with command ```
apt-get remove libapache2-mod-php8.1
doesnt work

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.