Posts made by Visvanath Ratnaweera

Picture of Particularly helpful Moodlers Picture of Translators
You seem to know the workings of the web server, the Apache MPM prefork, very well. And only you know the load patterns of your Moodle. So I assume, there is nothing to see in this corner. Otherwise, that is the place to start.

Still, talking about "seeing", your conclusions are based purely on theory, estimations. Or, do you have actual measurements? Just snapshots are not sufficient, you need continuous measurements, a proper monitoring 24x7 and then relate the behaviour to user activity. For example, in this graph the Apache has run out of available processes Tuesday at 22 hours:
 
That applies to all other parameters you were talking about. BTW, the vertical load above was artificial, the web sever was hit with a benchmarking client.
 
Absolutely important: The server should not swap. If it must, a couple of hundred MB are OK, if frozen. (The OS not releasing the memory after a short crisis.) But never grow, definitely not towards the GB range! Rebooting the server is a joke the Windows folks crack, Unixers avoid them at all cost!
 
Memory analysis is more complicated. I'm surprised that you said "doesn't ever seem to use more than 50% of this". What is used, what is unused? The OS fills the memory with all sorts of caches and buffers when free - "just in case" and release them when needed elsewhere. Do you count these as used or as unused? A good measurement tool will give you a full breakdown - in to a dozen of items, swap marked in red. ;)
 
I would follow up on that line. Starting with the size of your database (or databases, if the DBMS has more)? 64 GB RAM is respectable, as long as the DBs don't add up to 50 GB. wink
 
And what about caching, Redis and the like? They save memory by reusing, but bring their own overhead. If you don't have one now, don't add until you sort out the current problem - it'll make debugging more involved.
Average of ratings: Useful (1)
Picture of Particularly helpful Moodlers Picture of Translators
Corrected those two things:
Apache virtual host:
ServerName dev51.example.com
DocumentRoot /var/www/html/dev51/public
 
/var/www/html/dev51/config.php:
$CFG->wwwroot = 'https://dev51.example.com';
 
that completed the installation with no confusion. Yeah, the error messages with links to tracker issues took me in circles.
 
Many thanks! Matter RESOLVED.
Picture of Particularly helpful Moodlers Picture of Translators

Hi

Looks like I missed the bug fix by seconds!

Yes, now I do the following:

$ cd /var/www/html/dev51
$ git pull
  ...
$ grep version public/version.php
$version = 2025092300.00;
$release = '5.1beta (Build: 20250923)'; $branch = '501'; $maturity = MATURITY_BETA;

Set the Apache virtual host configuration to:

ServerName dev51.example.com
DocumentRoot /var/www/html/dev51

Then visited https://dev51.example.com in the browser, then noticed that the address URL has changed to https://dev51.example.com/public/install.php

And in Confirm paths screen I get

Web address: https://dev51.example.com (not editable)

Moodle directory: /var/www/html/dev51 (not editable)

Moodle data: /var/www/html/moodledata (editable)

So the bug fix works as expected.

Still I can't continue. When I save the configuration it throws:

Error

Detected incorrect $CFG->wwwroot in config.php, it should not end in /public. See MDL-85816 for further information.

I go back to config.php and see:

$CFG->wwwroot = 'https://dev51.example.com/public';

Changed it to:

$CFG->wwwroot = 'https://dev51.example.com';

the installation continues on the URL https://dev51.example.com/public/admin/index.php?lang=en but the CSS are gone. When I continue the URL jumps to https://dev51.example.com/admin/index.php and throws a 404 error. Once I change it back to https://dev51.example.com/public/admin/index.php it continues on https://dev51.example.com/public/admin/index.php?cache=0&lang=en&agreelicense=1 always without CSS.

Already the next "Continue" breaks, because /public vanished again from the URL.

I think, I am missing an Apache URL rewrite rule in that sample zip. Right now I'm not keen on following up. As I said earlier, this is future, Spring 2026, for us. And I have more pressing matters, need to get the question banks in shape first, its overweight is killing the server! Reported in the Quiz forum.

Picture of Particularly helpful Moodlers Picture of Translators
On "the topic was started by my colleague". If your told us that when you came in, we could have saved a distraction. Still there were two different tries, on two different computers. I have trouble in calling them the "same problem".

About recruiting somebody, there is https://moodle.org/jobs/. Look for "Add entry" at the bottom. To be logged in to this site is enough to post an ad.
Average of ratings: Useful (1)