By now we must have heard a lot about Ubuntu. Let us understand about it in detail. Update your knowledge with our tutorial. Let us first start with the basics.
What is Ubuntu Server:-
Ubuntu is used in organizations, school, home or enterprises. Question is what is Ubuntu? So Ubuntu is a famous Linux Operating system, it is based on Debian. It is distributed in personal computers, smartphones, and network servers. Ubuntu is based on the free software. Its name comes through the Southern African philosophy of Ubuntu. Ubuntu is secure because of the study tool.
It is assigned temporary privileges to perform administrative tasks. Well few times ago new version of the Ubuntu released it name is Ubuntu 12.04. It has many features when compared to previous version. The features of the Ubuntu 12.4 are privacy, quick lists, Video Lens, personalized software recommendation, no mono by default. All are required things which we always need during the software and any web application in fact in the thing.
Version Ubuntu 12.04 is supports ARM architecture.
What is LAMP Stack :-
LAMP is a much famous open source web development platform. With supporting operating system is Linux and web server is Apache. The database management system is MySQL and the object-oriented scripting language is PHP. Sometimes we can go with the Perl, Python to use instead of PHP.
The lamp has the platform of four layers and it is working as the Stack LAMP. LAMP stack is build up through different operating systems. Example, when it used the window operating system with the Linux that is called WAMP. With the Macintosh, called it MAMP and with the Solaris system called it SAMP. Few things will be clear because this graphical representation will make you guide better.
Hope you have refreshed the basics. Now let us go in depth.
How to Install Moodle on A VPS Running Ubuntu 12.04 and LAMP
Step-by-step Installation of Moodle Learning Management System on Ubuntu Server :
sudo apt-get update sudo apt-get install php5-curl
If your already updated the repositories with the apt-get update command, then can use the following command:
sudo apt-get install php5-gd
Then restart Apache for the changes to take effect:
sudo service apache2 restart
Installation of Moodle-
First of all you need to download it’s codebase on your VPS. Then get the file to the tar file of the new Moodle stable release from the moodle.org website. Links is like this:
Next your webserver’s root directory has to navigate and download it:
cd /var/www wget http://download.moodle.org/download.php/direct/stable25/ moodle-latest-25.tgz
Next, unpack the archive you downloaded:
tar xzvf moodle-latest-25.tgz
Now should need to get the folder called Moodle which has all necessary files: Next we need to sure about our Moodle files are secured and it is private. Need to run the following commands from your web server’s document root like /var/www
chown -R root moodle chmod -R 0755 moodle
Create the Moodle data folder and it should not accessible from web. Make sure you take it away of the server’s web root. Create it inside the home directory.
Make it writable by the VPS
chmod 0777 /Moodledata
Create one empty database for use of the Moodle. In your MUSQL terminal run the following commands to creating database that will call “moodle”
create database moodle;
This command creates your database. It makes sure you note the name of database, user and password which you need during the Moodle to connect. Now go to the browser and point to the folder where your moodle file present is. Next you need to see the installer wizard with the first page over which language you have chosen. On the next screen side you should specify the location of the moodledata folder created by you. After that you will receive the Configuration Complete page if you followed all the steps. Next Create the new file which is called config.php:
cd /var/www/moodle nano config.php
Next the code will be pasted which is generated by the Moodle installer. Follow those steps by step:
- Save the file
- Proceed by clicking the Next button in the installer.
- Confirm the copyright notice.
- Proceed to the page which checks the VPS for everything.
Are you seeking the right way for installing Moodle on A VPS running Ubuntu 12.04 and LAMP? So just read this tutorial which has the solution of your problem. This is just a simple tutorial for all who want the easy steps for installation of Moodle on A VPS running Ubuntu 12.04 and LAMP.
Through this article, I assure you can get help for installation of Moodle on a VPS Running Ubuntu 12.04 and LAMP. Here I have tried to explain all the required command step by step. If you follow all the described steps then you can successfully install the Moodle. All the process are covered here, so hope you have understood it well. This kind of the installation always supports you in your career. It helps you to enhance your skill and knowledge. Ubuntu 12.04 is Debian-based running device and LAMP is just like the stack based on Linux. Update yourself with Ubuntu 12.04 and LAMP and with other software’s and OS’s. One more famous open source is Gallary3, it is photo sharing web application based on PHP and MYSQL. If you need many other updates like this stay connected with us on the web.