Visvanath Ratnaweera
المواضيع التي نشرها Visvanath Ratnaweera

I would have created a trouble ticket, they nag more than forum posts.
Hi Ken
The matter resolved as wrote in my other post. To your questions:
How did you acquire the code? git or the old way?
$ cd /var/www/html $ git clone git://git.moodle.org/moodle.git www04 (1) $ cd www04 $ git branch -a (2) $ git branch --track MOODLE_502_STABLE origin/MOODLE_502_STABLE (3) $ git checkout MOODLE_502_STABLE (4)
The old method, as in https://docs.moodle.org/500/en/Git_for_Administrators#Obtaining_the_code_from_Git
How were you installing - Web or command line?
Web installer.
Here's what I have found ... moodle code has all the tools you need to install in /code/admin/cli/. If I use those, the web server is taken out of the loop (thus no router no vendor) ... it's just PHP talking to your DB.
I know. But the web installer must work too.
You wrote:
> Said so, my ubuntu22.04/nginx/mysql/php-fpm working config differ here:
>
> location / {
> try_files $uri $uri/ /r.php$is_args$args;
> }
location / {
try_files $uri /r.php;
}
which I changed to yours and the installation kicked and completed. Yours is what https://docs.moodle.org/502/en/Nginx#Routing_Engine recommends. I had copied the conf from a previous installation, likely a 5.1. (This is a test server where various ad hoc things happen.)
Now the Server > Environment gives:

Which is expected, since I haven't configured the router. The main thing is, it throws only a warning, not an error.
So, my sub-thread is RESOLVED.
P.S. Here is the commit: https://docs.moodle.org/502/en/index.php?title=Nginx&diff=154768&oldid=154492