apache + php-fpm = apache syntax error

Hello!
How are you?

I did install apache + php-fpm. After install these pakages when I reload apache, it shows me an error:

Apache version


Server version: Apache/2.4.43 (Linux/SUSE)
Server built:   2021-06-11 15:29:06.000000000 +0000

PHP version


PHP 7.4.6 (cli) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

Error:


Syntax error on line 25 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2-prefork/mod_proxy_fcgi.so into server: /usr/lib64/apache2-prefork/mod_proxy_fcgi.so: undefined symbol: proxy_module

Php modules


php -m
[PHP Modules]
bcmath
bz2
Core
ctype
curl
date
dom
exif
fileinfo
filter
gd
gettext
gmp
hash
iconv
imagick
intl
json
ldap
libsmbclient
libxml
mbstring
mysqlnd
openssl
pcre
PDO
pdo_pgsql
pdo_sqlite
pgsql
posix
redis
Reflection
session
SimpleXML
smbclient
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]

I did install these packages on ubuntu server 20.04 LTS and does not show this syntax error.

So, I need help to fix this, please!

Somebody knows how to fix?

Thanks

Douglas

Didn’t you install the LAMP Pattern? I can imagine that installing the Pattern will install something you are missing now.

Ohhh, you are right!
I will try this point and comeback for any result

Thank you!

Douglas

No way

I install:
patterns-server-lamp_server

The same error

I followphp-fpm opensuse wiki

not works

The guide is wrong and you need proxy module loaded before fcgi, so;

sudo a2enmod -d proxy_fcgi

then

sudo a2enmod proxy proxy_fcgi

And it should be fixed.

Hello!

Owww, nice!
This solved the problem until now

The next step adjust apache file.conf inside /etc/apache2/vhost.d.

Thanks