Sudo git clone git:///moodle.gitĬhange directory into the downloaded Moodle folder Within Step 5 there is a little more detail on why we put the moodle core application code in the /opt directory. By using git it will much easier down the road to update the moodle core application. Git is what is called a "version control system". Setup your local repository and download Moodle, We will use /opt for this installation. Sudo apt install git Step 4: Download Moodle We will be using Git to install/update the Moodle Core Application Restart Apache so that the modules are loaded correctly Step 3: Install Additional Software sudo apt install graphviz aspell ghostscript clamav php7.4-pspell php7.4-curl php7.4-gd php7.4-intl php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-ldap php7.4-zip php7.4-soap php7.4-mbstring Run 'sudo mysql_secure_installation' to set the root password for mysql - please, please my dear friends, WRITE IT DOWN and spare yourself some grief, you will need it in step 6. See for the progress for "Prepare Moodle for PHP 8.0) (Ubuntu 20.04 now installs PHP8 by default, so be careful to specify the PHP version number or you will get a "line 10602" error. Sudo apt install apache2 mysql-client mysql-server php7.4 libapache2-mod-php Open up Terminal and install the following Note: Moodle 3.0.1 introduced support for PHP 7.0 and we will be using PHP 7.4 in this tutorial In the below tutorial we will be using the term "sudo" which stands for "super user do" before most of the commands. In Ubuntu, the standard user, the account you created during the install, does not have rights to install/write to many of the directories.You can use VI (lightweight editor) or VIM (heavyweight editor), or more commonly nano, however, if you wish to use VIM you will need to install it, the same may be true for nano:.Because of this you should consider installing Ubuntu with a /boot directory of around 5Gb and putting some automated clean up in place. Ubuntu has a well known issue with its automatic updates filling up the /boot directory until automated updates start to fail and automated removal of old kernel files from /boot is impossible.Try it at test machine first.Īn alternative version of similar installation instructions (for installing Ubuntu and the base LAMP Packages/configuring as required, Steps 1~2) is also available on DigitalOcean's Site: How To Install Linux, Apache, MySQL, PHP (LAMP) Stack on Ubuntu 22.04, or if you're looking to use more modern/better performance packages such as MariaDB and OpenLiteSpeed, How To Install Linux, OpenLiteSpeed, MariaDB, PHP (LOMP stack) on Ubuntu 22.04.Īlternatively, if you just wanted instructions on installing Ubuntu, this may be useful: Initial Server Setup with Ubuntu 22.04. BUT USE WITH CAUTION: The GUI may not appear as expected, and may prevent user from getting even the CLI. Note: Even though it is not recommended by most experts, you could install a Graphical User Interface (desktop) by issuing the command 'sudo tasksel' or 'sudo apt install ubuntu-desktop' to install 'Ubuntu desktop'. If you install a CLI only server and later regret it, you can easily add a graphical desktop:.If you will only be using your Moodle server for local, experimental purposes, you might prefer to install the desktop (64 bits preferred) version of Ubuntu.Amateur users might find it easier to use a graphical (desktop) interface.Most IT professionals prefer to use a Command Line Interface (CLI) server, because it is safer and less prone to hacking.Step 1: Install Ubuntu Why we prefer Ubuntu server over Ubuntu desktop An additional admin Moodle username and password.The Moodle main admin username and password.The MySQL username and password that Moodle will use.It is a good idea to write down the passwords (and usernames) you will need to use for Ubuntu and Moodle: 12 Hosting several Moodle branches in one Ubuntu server.10 Suggestions: Enable Zend OpCache/Change Document Root.8.6 Create a Site Administrator Account.6 Step 5: Copy local repository to /var/www/html/.2.1 Why we prefer Ubuntu server over Ubuntu desktop.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |