Cannot get moodle to install on my remote server/virtual machine - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Thursday, September 14, 2023

Cannot get moodle to install on my remote server/virtual machine

I'm playing with a free MS Azure account, and am trying to upload an open-source LMS (Learning Management System) called Moodle onto it. I've set up the virtual machine/SSH, am in the server via Windows Terminal, and have installed LAMP. I've installed Apache2, mySQL and PHP & PHP (cli version).

This is my first real play with PHP. I've managed to get the public IP to display the Apache2 Ubuntu default page (index.html inside /var/www/html/).

I've been following this moodle installation guide and am stuck at the 'Install Moodle' part. I've got/decompressed moodle successfully, created the database etc. I've used ls and dir -a commands to confirm the file (I think) I need to execute is at /moodle/admin/cli/install.php but when I try to run the php install script, all I get is 'Could not open input file: path to file here'

I've tried a few variations as below:

/usr/bin/php /moodle/admin/cli/install.php /usr/bin/php7.4 /moodle/admin/cli/install.php

I think I'm literally at the last hurdle! Any ideas, anyone? Also, once that's done, how would I redirect the launch page from the default ubuntu index.html to the moodle startup page, or would that be automatic (following successful install?)

It's a linux/ubuntu 20.04 server.

Thanks so much kind soul.



source https://stackoverflow.com/questions/77099598/cannot-get-moodle-to-install-on-my-remote-server-virtual-machine

No comments:

Post a Comment