Download from its official moodle site
https://download.moodle.org/releases/latest/ (select zip file for Linux) approx 45 MB
once it download you can move that moodle file under /var/www (use winscp in windows )
You have to do the following arrangements
sudo mkdir /var/moodledata
sudo chown -R www-data /var/moodledata
sudo chmod -R 777 /var/moodledata
chomd -R 755 /var/www/moodle
go to my sql
mysql -u -p enter password
create database moodle;
Note: you can use either mysql root user and password or new user .
go to the url type your server IP
type your db information after that we need to copy the db details to vim config.php and paste in to it ,under moodle folder. ie /var/www/moodle/
You may get errors some of the php modules are not installed .You can click that link and install that packages
You can see all of the status
enter the username and password to login to moodle account.
You can get the following home page .
Log in page
User filled page