How to install moodle on linux

Install on linux:

Before you read this tutorial , you need install a local server like xampp, you can read my how to install xampp from here:

http://omzas.com/how-to-install-phpmyadmin-on-ubuntu/

The minimum system requirement is:

Disk space: 200MB for the Moodle code, plus as much as you need to store content. 5GB is probably a realistic minimum. Processor: 1GHz (min), 2GHz dual core or more recommended. Memory: 512MB (min), 1GB or more is recommended. 8GB plus is likely on a large production server.

  1. Download the last version of moodle from here – https://download.moodle.org/releases/latest/
  2. Extract the content of the zip file to this path: /var/www/html
  3. Navigate to this path with the terminal.
  4. Secure the moodle folder by this codes –
    1. “sudo chown -R root:root moodle”
    2. “sudo chmod -R 0755 moodle”
How to install moodle on linux
How to install moodle on linux

Config a database for moodle:

1.Navigate with the terminal to the xampp folder , the path is: “/opt/lampp/”

2. Open the xampp control panel with this code: sudo ./manager-linux-x64.run

3. Start “Mysql database,apache and proFTPD”. make sure everything in green light. if apache in red light then maybe the problem is that an another version of apache is working in your system and you need to close it. navigate to this path: /etc/init.d , and enter the code “./apache2 stop” ,then enter your linux password and try to start apache again.

How to install moodle on linux

4.To declare the database , you need to enter to phpmyadmin with this url: http://localhost:8080/phpmyadmin

make sure that your apache port is 8080 , If you want to see your apache port enter on Configure button.

5.After you enter to phpmyadmin , create a new database by the button “New”.

How to install moodle on linux

6.Enter the database name “moodle” and the collection is uth8mb4_general_ci and click Create.

7.After you create the database, you need to create an admin user, click again new like before , and then click on “SQL”.

How to install moodle on linux

8. Enter this code:

GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,CREATE TEMPORARY TABLES,DROP,INDEX,ALTER ON moodle.* TO 'moodleuser'@'localhost' IDENTIFIED BY 'yourpassword';

Instate of “yourpassword” write the password you want like example: 78464213 and then click “Go”.

How to install moodle on linux

Make sure you see a green “v” after you execute this code.

9. Now navigate to the lampp subfolder with this code “/opt/lampp/htdocs.

10. Create a new folder in the htdocs directory with this code:

“sudo mkdir moodledata”

11. Give a full permission with this code:

“sudo chmod 0777 moodledata”

12. Now you need to start the moodle installation , Navigate to this path: /var/www/html/moodle/admin/cli

13.Open the installation script by this code : “sudo -root /usr/bin/php install.php”, after you execute this code , you need to see this window:

How to install moodle on linux

14. Now enter en.

15. In Data directories permission enter 2777 and enter.

16.In the Web address , Enter the localhost website like this : http://localhost:8080

17.In Data directory click Enter for the default path.

18. In Choose database driver , choose mariadb.

19.In Database host click Enter.

20.In Database Name click Enter.

21.In Table prefix click Enter.

22.In Database port click Enter.

23.In unix socket you need to enter the sock path to your database, to get the sock path go to the xampp control panel like before.

How to install moodle on linux

Click on MySQL and click Configure and then click on the button “Open Conf File”.

How to install moodle on linux

A text file pop up and search the word “socket” and copy the line , example :/opt/lampp/var/mysql/mysql.sock

24. Go back to the installation and paste this line there and click enter.

How to install moodle on linux

25. In Database user enter moodleuser.

26.In Database password , enter the password you choose when you create the user before.

27. Enter your full site name like “moodle example”.

28. Enter a short name for the website like “moodle short”.

29. Enter your username and your password.

30.You can also enter you email for if you want to reset your password in the future and click enter.

31. In Upgrade key click Enter

32. Finally click Y to install.

After the installation is complete , You can enter to your website with your localhost url – http://localhost:8080

Join the Conversation

8 Comments

Leave a comment

Your email address will not be published. Required fields are marked *

89.00 USD 100% 4 Port Web Managed 2.5Gps PoE Or None PoE Switch +1x10G SFP+1x10Gps RJ45 Uplink https://s.click.aliexpress.com/e/_omc2Ifx

14.03 USD 100% FLASHFORGE Adventurer 5M AD5M 3D Printer AD5M DIY enclosure panel kit clear transparent Polycarbonate PC sheet 3mm https://s.click.aliexpress.com/e/_omc2Ifx

Top On Sale Product Recommendations!;For Razer Viper Ultimate Edition Wireless Gaming Mouse Left and Right Button Back Cover Cyberpunk Gundam Personalized Shell Set;Original price: USD 31.87;Now price: USD 17.53;Click&Buy: https://s.click.aliexpress.com/e/_om7zCDP Available Code : RUWUNIDPV2CH, USD1.00 off, PST 2024-08-27 22:26:00 ~ 2024-09-10 23:59:59

Top On Sale Product Recommendations!;Realtek RTL8812AU/RTL8812BU Dual Band 1200mbps Wireless USB Wifi Network Adapter Antenna Laptop Ethernet 1000M Ethernet External;Original price: USD 12.08;Now price: USD 11.39;Click&Buy: https://s.click.aliexpress.com/e/_EjzkwuV ;Available Code : DEL56KRDNNW4, USD1.00 off, PST 2024-07-27 02:14:00 ~ 2024-09-30 23:59:59

Top On Sale Product Recommendations!;Black Mouse Pad Seigaha Deskmat Gaming Mousepad Minimalistic Carpet Mouse Mats Office Accessories Pc Gamer Desk Pad Rubber Mats;Original price: USD 5.56;Now price: USD 5.17;Click&Buy: https://s.click.aliexpress.com/e/_oDRluGV ;Available Code : P2GSTQ7DDPAR, USD1.01 off, PST 2024-07-10 07:40:00 ~ 2024-10-02 23:59:59

Top On Sale Product Recommendations!;2024 New 10 Inch Tablet S10 Dual SIM CARD WITH WIFI Network Make Call Bluetooth Android 11 Google Play Tablets 5000mAh;Original price: USD 54.46;Now price: USD 54.46;Click&Buy: https://s.click.aliexpress.com/e/_EHZzaM5 ;Available Code : QYEY2GACLBXF, USD5.00 off, PST 2024-08-03 00:00:00 ~ 2024-09-30 23:59:59

Top On Sale Product Recommendations!;8-IN-2 USB HUB 3.0 USB C HUB Docking Station 5Gbps High Speed Transmission USB Splitter Type C TF/SD OTG Adapter For Macbook Pro;Original price: USD 6.51;Now price: USD 6.14;Click&Buy: https://s.click.aliexpress.com/e/_Evsp6lB ;Available Code : DEL56KRDNNW4, USD1.00 off, PST 2024-07-27 02:14:00 ~ 2024-09-30 23:59:59

Top On Sale Product Recommendations!;UGREEN USB Webcam 1080P HD Mini Webcam For Laptop Computer Web Camera Dual Microphones for Youtube Zoom Video Calling 2K web cam;Original price: USD 39.99;Now price: USD 25.99;Click&Buy: https://s.click.aliexpress.com/e/_EI6yQcN ;Available Code : 958OB3ZLNOP8, USD5.00 off, PST 2024-08-20 04:43:00 ~ 2024-09-30 23:59:59

0
    0
    Your Cart
    Your cart is emptyReturn to Shop