php service (php71) is running.
Are you sure about the location for moodle.conf?
I get:
[root@ns7 /]# cat /etc/httpd/moodle.conf
cat: /etc/httpd/moodle.conf: No such file or directory
Or is this the source of the problem?
/edit: Found the location. It is /etc/httpd/conf.d/moodle.conf
and the port was set to 9000 instead of 9001 for php71 (how come this suddenly changed? update of php modules?)
I did the moodle howto/package in between of Nextcloud 12 to 13 upgrade where php changed from 5.6 to 7.1. It seems also the port changed from 9000 to 9001 to be able to have php56 and php71 in parallel. I’ll correct that asap.
Maybe we could use a db prop for the port or let moodle search for php…
Just had an update on my server again and the port for php71 was again at 9000. Manually set it to 9001 again and restarted httpd service. Now Moodle is available again.
Can you guide me to create a more permanent solution to this? I guess a custom template is needed, but I still have no clue how to do this…
Another way would be to edit /etc/e-smith/templates/etc/httpd/conf.d/moodle.conf/10base or create a custom template out of it but I’d recommend the package.
I opted for your last solution: changed the template that already exists.
Very easy:
SSH into the server
if you ssh as root edit the file with your favorite text editor (mine is nano)
nano /etc/e-smith/templates/etc/httpd/conf.d/moodle.conf/10base
Alias /moodle /usr/share/moodle
<Directory /usr/share/moodle>
Require all granted
<FilesMatch .php$>
SetHandler “proxy:fcgi://127.0.0.1:9000”
< /FilesMatch>
< /Directory>
Change the port from 9000 to 9001: SetHandler “proxy:fcgi://127.0.0.1:9000” becomes SetHandler “proxy:fcgi://127.0.0.1:9001”
Save your changes by pressing ctrl - o
exit nano by pressing ctrl - x
A month ago or so, Moodle 3.5 has been released. It shouldn’t be a reason to hurry and update, but this new version has some extra features that seem rather important, especially in Europe: focus is on extra GDPR compliance. See the new features and release notes for more info.
Can we do a combined effort to update the nethserver-moodle package to support moodle 3.5?
I though, let’s give it a go to install Moodle on a fresh NS75 server.
So I updated the server to latest patchlevel.
Installed mrmarkuz repository
and did a yum install nethserver-moodle
All seems to get installed properly but I am (again) hitting a php version problem.
php71 packages are installed during moodle install, but when I check the php version on the serve rI receive back:
Moodle button shows in applications section of NS web interface, but when I start moodle by pressing the button, I get a “server not found” error.
Checking if php-fpm is running:
[root@ns75 ~]# ps aux | grep php-fpm
root 4475 0.0 1.7 507888 33168 ? Ss 19:35 0:00 php-fpm: master process (/etc/opt/rh/rh-php71/php-fpm.conf)
apache 4476 0.0 1.3 512752 25792 ? S 19:35 0:00 php-fpm: pool www
apache 4477 0.0 0.7 510536 14776 ? S 19:35 0:00 php-fpm: pool www
apache 4478 0.0 0.9 510520 17672 ? S 19:35 0:00 php-fpm: pool www
apache 4479 0.0 0.4 509972 8124 ? S 19:35 0:00 php-fpm: pool www
apache 4480 0.0 0.4 509972 8128 ? S 19:35 0:00 php-fpm: pool www
root 8933 0.0 0.0 112704 972 pts/0 S+ 20:46 0:00 grep --color=auto php-fpm
Moodle uses a wwwroot config param in /usr/share/moodle/config.php and if no “host” is set, the template defaults to SYSTEMNAME.DOMAINNAME. It’s easier for me to get as one may use more IPs but only one Systemname.