I am running a CentOS 7 server with nginx. I have installed both php 7.2 and 5.6 and working fine.
With php 7.2, I have installed Moodle 3.xx and it works fine.
With php 5.6, I have setup more than 5 Moodle 2.7 websites as 'https://lms.xxxx.xxxx.xxx/website-name'. The problem is the moodle websites does not show properly. All the images are missing and everything shows in plain text.
Error log shows:
2019/06/17 16:45:11 [error] 7742#7742: *400 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined variable: data in /path/to/moodle/installation/cache/stores/file/lib.php on line 370" while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: xxx.xxx.xxx.xxx, request: "GET /xxx/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "xxx.xxx.xxx.xxx", referrer: "https://xxx.xxx.xxx.xxx/"
php 5.6 runs of port 9001.
location ~* \.php$ {
fastcgi_pass 127.0.0.1:9001;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
In '/opt/remi/php56/root/etc/php-fpm.d/www.conf'
; Note: This value is mandatory.
listen = 127.0.0.1:9001
What could be the culprit?