Failure to set up php-fpm

Failure to set up php-fpm

by Dave Weninger -
Number of replies: 20

We are changing our Moodle from worker mpm to use event mpm and php-fpm. It seems that it is successfully running in event mode. However, it failed to run php-fpm.

httpd -V  shows that it was changed to event mpm successfully.

"Server version: Apache/2.4.29 (Unix)
Server built:   Dec 13 2021 15:39:43
Server's Module Magic Number: 20120211:68
Server loaded:  APR 1.7.0, APR-UTIL 1.6.1
Compiled using: APR 1.4.8, APR-UTIL 1.5.2
Architecture:   64-bit
Server MPM:     event"

However, when I install php-fpm and configure it. The moodle webpage displays the below error message:

"Error: database driver problem detected
The site administrator should verify server configuration
PHP has not been properly configured with the MySQLi extension for it to communicate with MySQL. Please check your php.ini file or recompile PHP."

[root@moodleXXX etc]# systemctl status php-fpm
● php-fpm.service - The PHP FastCGI Process Manager
   Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled)
   Active: active (running) since Thu 2021-12-16 00:45:26 ; 14s ago
 Main PID: 2943 (php-fpm)
   Status: "Processes active: 0, idle: 5, Requests: 1, slow: 0, Traffic: 0.1req/sec"
   CGroup: /system.slice/php-fpm.service
           ├─2943 php-fpm: master process (/etc/php-fpm.conf)
           ├─2944 php-fpm: pool www
           ├─2945 php-fpm: pool www
           ├─2946 php-fpm: pool www
           ├─2947 php-fpm: pool www
           └─2948 php-fpm: pool www
Dec 16 00:45:26 moodleXXX systemd[1]: Starting The PHP FastCGI Process Manager...
Dec 16 00:45:26 moodleXXX php-fpm[2943]: Failed loading /usr/lib64/php/modules/opcache.so:  /usr/lib64/php/modules/opcache.so: undefined symbol: sapi_globals_id
Dec 16 00:45:26 moodleXXX php-fpm[2943]: [16-Dec-2021 00:45:26] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php-zts/modules/msgpa...
Dec 16 00:45:26 moodleXXX php-fpm[2943]: [16-Dec-2021 00:45:26] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php-zts/modules/igbin...
Dec 16 00:45:26 moodleXXX php-fpm[2943]: [16-Dec-2021 00:45:26] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php-zts/modules/memca...
Dec 16 00:45:26 moodleXXX php-fpm[2943]: [16-Dec-2021 00:45:26] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php-zts/modules/xsl.s...
Dec 16 00:45:26 moodleXXX php-fpm[2943]: [16-Dec-2021 00:45:26] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/ph...bug-zts-201
Dec 16 00:45:26 moodleXXX systemd[1]: Started The PHP FastCGI Process Manager.

I tried many times but still cannot make php-fpm works properly. It is strange that a number of *.so files such as opcache.so cannot be loaded. 
There are a lot of online information about php-fpm settings with much variation, I really don't which one I should refer to. Could anyone suggest a reliable source for reference? Thank you very much.
Average of ratings: -
In reply to Dave Weninger

Re: Failure to set up php-fpm

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
It means what it says... your (new) PHP build is missing the mysqli extension. How you fix that depends where you got PHP.
Average of ratings: Useful (1)
In reply to Howard Miller

Re: Failure to set up php-fpm

by Dave Weninger -
I tried to compile php source code with --enable-fpm. However, it did not work. I finally chose to yum install php-fpm

In apache error_log, I found the below error message:
Sat Dec 18 19:40:53 2021] [error] [client moodleXXX.YYY.edu AH00957: FCGI: attempt to connect to 192.168.12.99:9000 (*) failed
[Sat Dec 18 19:40:53 2021] [error] [client 192.168.12.231:65425] moodleXXX.YYY.edu AH01079: failed to make connection to backend: 192.168.12.99

Now the Moodle web shows the below message:
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later
In reply to Dave Weninger

Re: Failure to set up php-fpm

by Ken Task -
Picture of Particularly helpful Moodlers

Please run then share back info from:

uname -an
yum repolist

And to see what repo PHP was installed from:

yum list installed| grep php

MySQL support specifically:

yum list installed| grep php-mysql*

'SoS', Ken

Average of ratings: Useful (1)
In reply to Ken Task

Re: Failure to set up php-fpm

by Dave Weninger -
uname -an
Linux moodleXXX 3.10.0-693.17.1.el7.x86_64 #1 SMP Thu Jan 25 20:13:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.hostlink.com.hk
* epel: mirrors.nipa.cloud
* extras: mirror.hostlink.com.hk
* remi-php72: ftp.riken.jp
* remi-safe: ftp.riken.jp
* updates: mirror.hostlink.com.hk
repo id repo name status
base/7/x86_64 CentOS-7 - Base 10,072
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 3,694
extras/7/x86_64 CentOS-7 - Extras 500
nodesource/x86_64 Node.js Packages for Enterprise Linux 7 - x86_64 119
remi-php72 Remi's PHP 7.2 RPM repository for Enterprise Linux 7 - x86_64 458
remi-safe Safe Remi's RPM repository for Enterprise Linux 7 - x86_64 4,665
updates/7/x86_64 CentOS-7 - Updates 3,190
repolist: 32,698

php is compiled from source code of php-7.2.16.tgz (with parameters: --with-mysqli --with-mysql-sock=/tmp/mysql.sock --with-pdo-mysql=mysqlnd --enable-opcache)

yum list installed| grep php
oniguruma5php.x86_64 6.9.7.1-1.el7.remi @remi-safe
php-common.x86_64 7.2.34-10.el7.remi @remi-php72
php-fpm.x86_64 7.2.34-10.el7.remi @remi-php72
php-gd.x86_64 7.2.34-10.el7.remi @remi-php72
php-intl.x86_64 7.2.34-10.el7.remi @remi-php72
php-json.x86_64 7.2.34-10.el7.remi @remi-php72
php-mbstring.x86_64 7.2.34-10.el7.remi @remi-php72
php-pecl-igbinary.x86_64 3.0.1-1.el7.remi.7.2 @remi-php72
php-pecl-memcached.x86_64 3.1.3-1.el7.remi.7.2 @remi-php72
php-pecl-msgpack.x86_64 2.0.3-1.el7.remi.7.2 @remi-php72
php-pecl-zip.x86_64 1.15.4-1.el7.remi.7.2 @remi-php72
php-soap.x86_64 7.2.34-10.el7.remi @remi-php72
php-xml.x86_64 7.2.34-10.el7.remi @remi-php72
php-xmlrpc.x86_64 7.2.34-10.el7.remi @remi-php72
php72-php-common.x86_64 7.2.16-1.el7.remi @remi-safe
php72-php-json.x86_64 7.2.16-1.el7.remi @remi-safe
php72-php-mbstring.x86_64 7.2.16-1.el7.remi @remi-safe
php72-php-xml.x86_64 7.2.16-1.el7.remi @remi-safe
php72-runtime.x86_64 2.0-1.el7.remi @remi-safe

yum list installed| grep php-mysql*
nothing is shown

mysqld -V
mysqld Ver 5.7.21 for linux-glibc2.12 on x86_64 (MySQL Community Server (GPL))


The full path of the php-fpm error is listed as follow:
● php-fpm.service - The PHP FastCGI Process Manager
   Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled)
   Active: active (running) since Tue 2021-12-21 09:14:27 HKT; 20s ago
 Main PID: 14783 (php-fpm)
   Status: "Processes active: 0, idle: 5, Requests: 0, slow: 0, Traffic: 0req/sec"
   CGroup: /system.slice/php-fpm.service
           ├─14783 php-fpm: master process (/etc/php-fpm.conf
           ├─14784 php-fpm: pool www
           ├─14785 php-fpm: pool www
           ├─14786 php-fpm: pool www
           ├─14787 php-fpm: pool www
           └─14788 php-fpm: pool www

Dec 21 09:14:27 moodleXXX systemd[1]: Starting The PHP FastCGI Process Manager...
Dec 21 09:14:27 moodleXXX php-fpm[14783]: Failed loading /usr/lib64/php/modules/opcache.so:  /usr/lib64/php/modules/opcache.so: cannot open shared object file: No such file or directory
Dec 21 09:14:27 moodleXXX php-fpm[14783]: [21-Dec-2021 09:14:27] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php-zts/modules/msgpack.so' (tried: /usr/lib64/php-zts/modu$
Dec 21 09:14:27 moodleXXX php-fpm[14783]: [21-Dec-2021 09:14:27] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php-zts/modules/igbinary.so' (tried: /usr/lib64/php-zts/mod$
Dec 21 09:14:27 moodleXXX php-fpm[14783]: [21-Dec-2021 09:14:27] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php-zts/modules/memcached.so' (tried: /usr/lib64/php-zts/mo$
Dec 21 09:14:27 moodleXXX php-fpm[14783]: [21-Dec-2021 09:14:27] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php-zts/modules/xsl.so' (tried: /usr/lib64/php-zts/modules/$
Dec 21 09:14:27 moodleXXX php-fpm[14783]: [21-Dec-2021 09:14:27] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-zts-20170718/redis.so' (tri$
Dec 21 09:14:27 moodleXXX systemd[1]: Started The PHP FastCGI Process Manager.

Inside php.ini , I enabled the opcache, xsl, memcached and Redis by including the below lines. I worked well for mod_php but become problematic after running php-fpm.

zend_extension=/usr/lib64/php/modules/opcache.so

extension=/usr/lib64/php-zts/modules/msgpack.so
extension=/usr/lib64/php-zts/modules/igbinary.so
extension=/usr/lib64/php-zts/modules/memcached.so
extension=/usr/lib64/php-zts/modules/xsl.so

extension=/usr/local/php/lib/php/extensions/no-debug-zts-20170718/redis.so



In reply to Dave Weninger

Re: Failure to set up php-fpm

by Ken Task -
Picture of Particularly helpful Moodlers

I see CentOS 7 using remi-repo for php.

yum list installed| grep php
php-fpm.x86_64 7.2.34-10.el7.remi @remi-php72

shows php installed from remi-php72 repo

therefore, one shouldn't be complying from source.

yum repolist |grep remi
 * remi-php73: repo1.dal.innoscale.net
 * remi-safe: repo1.dal.innoscale.net
remi-php73                        Remi's PHP 7.3 RPM repository for Enter    440
remi-safe                         Safe Remi's RPM repository for Enterpri  4,665

If you are running 72 yours would show 72 above

In /etc/yum.repos.d there should be several .repo files for remi ... but only the version of php desire should be enabled.   Again, am using 73 ... you should see 72

[root@server yum.repos.d]# fgrep 'enabled=1' remi*.repo
remi-php73.repo:enabled=1
remi-safe.repo:enabled=1

Oops .... my bad ... bo-bo ...
yum list installed| grep php-mysql*
nothing is shown


... try:

yum list installed |grep php*-mysql*

Instead.

yum list installed |grep php*-mysql*
php-mysqlnd.x86_64                    7.3.33-1.el7.remi              @remi-php73

I don't see php supports for mysql anything in your system.

I run CentOS 7 using Remi for PHP 7.3 and no longer compile anything but antivirus.

[root@server ~]# php -m |grep mysql
mysqli
mysqlnd
pdo_mysql

'SoS', Ken

Average of ratings: Useful (1)
In reply to Ken Task

Re: Failure to set up php-fpm

by Dave Weninger -
yum list installed |grep php*-mysql*
nothing is shown

Previously, we installed the mysql by compiling the below source code instead of using yum install.
mysql-5.7.21-linux-glibc2.12-x86_64.tar.gz

[root@moodleXXX yum.repos.d]# yum repolist |grep remi
 * remi-php72: ftp.riken.jp
 * remi-safe: ftp.riken.jp
remi-php72        Remi's PHP 7.2 RPM repository for Enterprise Linux 7 -     458
remi-safe         Safe Remi's RPM repository for Enterprise Linux 7 - x86  4,665


[root@moodleXXX yum.repos.d]# fgrep 'enabled=1'  remi*.repo

remi-php72.repo:enabled=1
remi-safe.repo:enabled=1

[root@moodleXXX ~]# php -m |grep mysql
mysqli
mysqlnd
pdo_mysql

So, I install php72-php-mysqlnd.x86_64 according to your advice.
[root@moodleXXX ~]# yum install php72-php-mysqlnd.x86_64

[root@moodleXXX]# yum list installed |grep php*-mysql*
php72-php-mysqlnd.x86_64 7.2.34-10.el7.remi @remi-safe

However, it still does not work. The error message still persists.
In reply to Dave Weninger

Re: Failure to set up php-fpm

by Ken Task -
Picture of Particularly helpful Moodlers

So you also compiled MySQL from source?!!!

Wow! I haven't compiled AMP stack in years and years!
There are switches (options to compiling for libraries and supports) with
AMP.  Missing one switch/option ... just one ... and you'll be digging yourself out of a deep rabbit hole for a long time ... uhhhh ... maybe never. sad

For example:
cd /usr/local/src/apache_

make clean

./configure \
--prefix=/usr/local/apache \
--enable-shared=max \
--enable-module=rewrite \
--enable-module=so

make && make install

Source: http://lamphowto.com/
Author says:
"Please note - these directions were originally written in 2002, and are not really relevant anymore."

The author's page, BTW,  I used as a template for my own page (which I can no longer find) in building LAMP.

No offense, but this discussion has gone way beyond the intended purpose of these forums (Moodle) and is all about how to install LAMP stack (CentOS 7) by compiling.

Strongly suggest starting over ... with entire server ... attempting to mix compiled and package manager installed software has 'gremlins'.  I speak of that from many years of experience where I first learned what not to do ... then learned what to do. smile

Now how one does that, depends upon how one is hosted.

When beginning again, suggest using Google and finding a decent page on how to install LAMP stack on CentOS 7 ... using yum.

I would recommend continuing to use Remi for PHP but would add using MySQL's own repos as well.

See: https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/

'In the spirit of sharing' (SoS), Ken

In reply to Ken Task

Re: Failure to set up php-fpm

by Dave Weninger -
I run the below command and found the situation is greatly improved. It seems that I installed the wrong version of php-fpm previously.
yum install php72-php-mysqlnd.x86_64
yum install php72-php-fpm.x86_64

Now, it seems that the PHP FastCGI Process Manager is working well.

[root@moodleXXX php-7.2.16]# systemctl stop php72-php-fpm
[root@moodleXXX php-7.2.16]# systemctl start php72-php-fpm
[root@moodleXXX php-7.2.16]# systemctl status php72-php-fpm
● php72-php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php72-php-fpm.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2021-12-22 17:35:12 HKT; 4s ago
Main PID: 7477 (php-fpm)
Status: "Ready to handle connections"
CGroup: /system.slice/php72-php-fpm.service
├─7477 php-fpm: master process (/etc/opt/remi/php72/php-fpm.conf)
├─7478 php-fpm: pool www
├─7479 php-fpm: pool www
├─7480 php-fpm: pool www
├─7481 php-fpm: pool www
└─7482 php-fpm: pool www

Dec 22 17:35:12 moodleXXX systemd[1]: Starting The PHP FastCGI Process Manager...
Dec 22 17:35:12 moodleXXX systemd[1]: Started The PHP FastCGI Process Manager.

However, the web display of Moodle still shows the below error message:
Error: Database connection failed
It is possible that the database is overloaded or otherwise not running properly.
The site administrator should also check that the database details have been correctly specified in config.php

Debug info: Permission denied
Error code: dbconnectionfailed
Stack trace:
line 564 of /lib/dml/mysqli_native_moodle_database.php: dml_connection_exception thrown
line 340 of /lib/dmllib.php: call to mysqli_native_moodle_database->connect()
line 619 of /lib/setup.php: call to setup_DB()
line 936 of /config.php: call to require_once()
line 30 of /index.php: call to require_once()

Please kindly advise. Thanks a lot!
In reply to Dave Weninger

Re: Failure to set up php-fpm

by Ken Task -
Picture of Particularly helpful Moodlers

Oh, well ... time will tell of the wisdom of mixing compile and package manager. CentOS 7 just release an update to Log4j this week.  Did you get it yet?

So how did you install MySQL?  version?  Is it running?

Did you run mysql_secure_installation

Running localhost only?

Can you connect to DB server via command line:

mysql -u [yoursuperuser] -p'[yoursuperuserpassword]'

Once @ mysql> prompt do you have a empty moodle database? with character set utf8mb4 and collation of utf8mb4_unicode_ci?

'SoS', Ken

In reply to Ken Task

Re: Failure to set up php-fpm

by Dave Weninger -
MySQL is installed by compiling source code. The version is 5.7.21 for linux-glibc2.12 on x86_64 (MySQL Community Server)

Yes, it is running.

No, we did not run mysql_secure_installation

It is running localhost only

Yes, we can connect to DB server via command line:
mysql -u [yoursuperuser] -p'[yoursuperuserpassword]'

It is a UAT exported VM from production site. It included MySQL DB. The moodle still worked normally before installation of php-fpm.
When I enter the below command:
mysql>show databases;
It shows database name - "moodle"
The DB size is only 107MB

In config.php, I can't find
character set utf8mb4

In config.php, I can find
'dbcollation' => 'utf8mb4_unicode_ci'
In reply to Dave Weninger

Re: Failure to set up php-fpm

by Ken Task -
Picture of Particularly helpful Moodlers

No, we did not run mysql_secure_installation.

Read up on why you should!!!!!

If you used superuser creds to connect to DB server via client, show databases should also show other DB's: mysql, information_schema, performance_schema, and sys.  Are those DB's there?

In your last yum install I see you installed the MySQL driver.
Did you restart apache?

Create a php info page and drop it in document root of Apache.
https://www.inmotionhosting.com/support/website/how-to-create-a-phpinfo-page/
Then access with browser.

Look for settings related to apache - should see your php-fpm
as well as mysql.   We do not need to see it all if you share back here.

config.php file in DB array will only have collation ... not character set.

DB for the moodle can be checked by running the cli scripts in moodlecode/admin/cli/ ... run each below with no options to get info on options to commands.

mysql_collation.php  mysql_compressed_rows.php  mysql_engine.php

Run this one first:

php mysql_compressed_rows.php -i

That info you can share back ... 

No offense, but am curious ...  sure would like to know what you've read about what you are trying to do - it's almost like you jumped in with both feet without a plan?

'SoS', Ken


Average of ratings: Useful (1)
In reply to Ken Task

Re: Failure to set up php-fpm

by Ken Task -
Picture of Particularly helpful Moodlers

Follow up ...

"It is a UAT exported VM from production site. It included MySQL DB. The moodle still worked normally before installation of php-fpm."

Wait a minute ... if the server you are working on was a clone of a VM which included apache/php/mysql, and the only goal was to get apache to run under php-fpm, why did you have a need to compile anything?

I must not understand what UAT exported VM means.  User Acceptance Test?

'SoS', Ken

In reply to Ken Task

Re: Failure to set up php-fpm

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
In reply to Visvanath Ratnaweera

Re: Failure to set up php-fpm

by Ken Task -
Picture of Particularly helpful Moodlers

Hmmm ... history does repeat! :|


In reply to Ken Task

Re: Failure to set up php-fpm

by Dave Weninger -
I need to recompile the source code of httpd because I need to change the MPM from worker to event. The version of apr and apr-util are too old and needed to be upgraded; otherwise the platform did not support event MPM. As apr and apr-util are dependencies of the httpd source code, I therefore need to recompile it.

Originally, the PHP 7.2.16 was installed by compiling source code with the included option --with-mysqli. --with-pdo-mysql=mysqlnd. Therefore, I tried to install php-fpm by adding extra option --with-fpm. However, the result was bad. Finally, I yum install the php72-php-fpm.

Our mysql was also installed by compiling source code. We change nothing for the php-fpm install.

UAT means User Acceptance Test, simply means testing site. After php-fpm works properly, I will perform the steps on production site.

VM means a VMware virtual machine
In reply to Ken Task

Re: Failure to set up php-fpm

by Dave Weninger -
Yes, show databases also show other DB: mysql, information_schema, performance_schema, and sys.

Actually, I am not sure which one is the MySQL driver.
After yum install php72-php-mysqlnd.x86_64, I restarted the apache

Putting php info page, the web normally shows the php information: PHP Version 7.2.34 (seems upgraded from the compiled source code PHP 7.2.16), Server API: FPM/FastCGI,

The block of cgi-fcgi
php-fpm is active

The blocks of mysqli, mysqlnd, pdo_mysql and pdo_sqlite exist.
#php mysql_compressed_rows.php -i
Database version: 5.7.21
Database name: moodle
Database engine: InnoDB
innodb_file_per_table: ON
innodb_file_form at: Barracuda

#php mysql_collation.php -l
tables show up e.g. mdl_xxx utf8mb4_unicode_ci

#php mysql_engine.php
it shows e.g. InnoDB mdl_analytics_indicator_calc

I refer to the below online info.
https://www.programmerall.com/article/782589767/
but I omitted the line "pid=/usr/local/php/var/run/php-fpm.pid" in the file www.conf 

netstat -plunt
tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      14147/php-fpm: mast


In reply to Dave Weninger

Re: Failure to set up php-fpm

by Ken Task -
Picture of Particularly helpful Moodlers

"technical sharing website that all programmers love"

Uhhhh ... if one 'loves' to have to re-compile the whole friggin' stack!  Not I ... no longer do I like having to 'work to work'. ;)

VM Ware ... hmmm ... that was listed among applications being vulnerable to the Log4j attack.  And if the moodle uses Apache Solr for search as well.

Sure hope you do a yum check-update to see if your servers are in need of updates.

So is your issue fixed?

'SoS', Ken

In reply to Dave Weninger

Re: Failure to set up php-fpm

by Ken Task -
Picture of Particularly helpful Moodlers

Another follow up ... assuming you've resolved php-fpm issue and Apache is running ... DB server also working ...

How much total memory has been allocated to the sandbox VMWare CentOS 7 instance?

How much memory has been allocated to MySQL?  (If I remember right, a 107M Moodle DB [which is really small])

What does the top of top look like?   Using any SWAP space?

In relation to above, how much total memory is Apache with PHP-FPM using?

How much free memory is available for the server running other necessary processes ... like Moodle's cron job/adhoc_task.   Running automatic course backups?

Strongly suggest installing MySQLTuner ... a perl script ... and run it with superuser creds.   You might see some tweaks are needed for the compiled MySQL DB server.

BTW, what you tweak after running MySQLTuner on the clone of production may *not* be desired on production machine.

'SoS', Ken

In reply to Ken Task

Re: Failure to set up php-fpm

by Dave Weninger -
I eventually managed to change mod_php to PHP-FPM by compiling the source code. The trick is to include the option --enable-mysqlnd.
Average of ratings: Useful (1)
In reply to Dave Weninger

Re: Failure to set up php-fpm

by Alain Raap -
Picture of Particularly helpful Moodlers
Have you created the database user and granted privileges for this user in MySQL? Also you have to configure this user in your Moodle config.php file ($CFG->dbtype, $CFG->dblibrary, $CFG->dbhost , $CFG->dbname, $CFG->dbuser, $CFG->dbpass, $CFG->prefix).