apache + php-fpm + FastCGI

Hello!

I am trying to install apache + php-fpm + fastCGI on opensuse 15.2

I follow this

So after finished, it shows me:


mai 31 13:40:12 localhost systemd[1]: Starting The Apache Webserver...
mai 31 13:40:12 localhost start_apache2[2270]: httpd-event: Syntax error in -C/-c directive: Syntax error on line 25 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache>
mai 31 13:40:12 localhost systemd[1]: **apache2.service: Main process exited, code=exited, status=1/FAILURE**
mai 31 13:40:12 localhost systemd[1]: **Failed to start The Apache Webserver.**
mai 31 13:40:12 localhost systemd[1]: **apache2.service: Unit entered failed state.**
mai 31 13:40:12 localhost systemd[1]: **apache2.service: Failed with result 'exit-code'.**

I am trying let the system right to configure Nextcloud 21.0 with Postgresql

Sombedy knows how to fix this?

Thanks

Do you solve this one?

httpd-event: Syntax error in -C/-c directive: Syntax error on line 25 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache>

So…This is my question!
I read some blogs still do not found something that can fix this!

Maybe let’s start systematically.

  1. /etc/apache2/sysconfig.d/loadmodules.conf says in it’s first line:
# File generated from /etc/sysconfig/apache2, do not edit. Edit the sysconfig file instead.
  1. What is in your line 25 in that file? I my file it says this:
LoadModule php7_module /usr/lib64/apache2/mod_php7.so

Yours should be different, as you have removed mod_php7.

  1. As you have tried to install php-fpm it is likely related to the php / php-fpm module.
    So, maybe you have got some issue with this part of the tutorial?

Create php7-fpm configuration: 

 sudo cp /etc/php7/fpm/php-fpm.conf.default  /etc/php7/fpm/php-fpm.conf
sudo cp /etc/php7/fpm/php-fpm.d/www.conf.default /etc/php7/fpm/php-fpm.d/www.conf

Edit: When I once installed php7 I had to manually add it to /etc/sysconfig/apache2 to the end of the line beginning with

APACHE_MODULES="...

IMHO, that may need to be replaced, doesn’t it?

Hello

Right, I need to study how to change.

well…

Thank you

What kind of issue?

Sorry, I’m not a specialist. I’m just trying to help you trace the problem as I seem to remember a similar kind of error message.

Here in line 25:

     **LoadModule** proxy_fcgi_module /usr/lib64/apache2-event/mod_proxy_fcgi.so  

I assume that

sudo a2enmod proxy_fcgi

has added that line.

If I get that right, php7 shall be replaced by php7-fpm. I’d first check if there is any other php-related line in your config file. If not, is it possible that php7-fpm needs to added / enabled as well as fcgi? Is it possibly required for fcgi?

Yes, we need desable apache2-mod_php7

as:


**#** a2dismod php7
"php7" not present

How to add or enable php7-fpm?

Thanks

Well, for me that was EGroupware on an older install before they moved to docker.

How to add or enable php7-fpm?

That’s where I am really lost. I did do all the tinkering manually following other tutorials. In my naivety following yours I’d say it should be done with

sudo a2enmod

same like the proxy_fcgi. But I don’t know what the exact module name is as I don’t have php-fpm and if it is really that easy…
Maybe there somebody else around with more knowlede in this field?