I am trying to install moodle on opalstack but no success.
ajinkya These are the steps that you can take to install Moodle 4.0:
Create a new shell user at https://my.opalstack.com/apps/. (In the rest of this example I'll use "shelluser" as the user name.)
Create a new Apache/PHP-CGI app https://my.opalstack.com/apps/. (I'll use "moodle" as the app name.)
Edit the new Apache/PHP-CGI to set its PHP version to 8.0.
Go to https://my.opalstack.com/domains/ and add the domain and site entries.
Go to https://my.opalstack.com/mariadb/ and create a new MariaDB database and user.
Get your shell user and MariaDB user passwords from https://my.opalstack.com/logs/.
Log in to SSH as your shell user and run the following commands:
# Make your moodle data directory.
# I'll use "moodledata" but it can be whatever you want.
# This has to be located outside of the apps directory.
# Get the moodle software.
# Change "moodle" at the end to match your own app name.
git clone -b MOODLE_400_STABLE git://git.moodle.org/moodle.git moodle
# Configure PHP and run the installer.
echo "max_input_vars = 5000" > .user.ini
The installer will present you with a series of questions, answer as follows:
After accepting the conditions, the installer will populate the DB and configure the installation.
When the installer is complete, you can visit the site you created in step 4 to log in and start using Moodle.
Thank you so much for the steps.
Works like charm!