 I am Kailash Joshi will quickly go through the Apache PHP and MySQL installation we need these two for installation of Moodle. So will not get into details of this so will just go through this quickly. So first we will see at Apache installation go to the terminal just follow these commands get into super user mode SU and give this command for apache installation apt get install apache 2. So just give this command apt get install apache 2. So it will install apache if it is not already installed so most of you will have it now it stores configuration files in etc apache 2. So we do not need to make any changes to this for now. So this is the configuration file for apache 2 we do not need to touch it. So let us ignore this for now. Now the important thing is apache web root is stored at wire w w w so this is the folder from where your web contents will be taken. So we will just list it for now with alas and we will see the contents of index.html in that folder. So this is the default file that we will be getting through browser when we go to our web server. So now we will quickly check whether our apache is running or not give this ip 127.0.0.7.1 and you should get this page it works. Now we will just try restarting apache server whenever you do any changes to your configuration files you need to give this command slash etc init.d apache to restart. So for now it is giving error that server name not found so let us resolve this for this we need to change apache to configuration file go to end of this and append server name machine name this line. So this is server name and name of your machine. So for my machine it is workshop 03 the one that you have even to your host name nothing no changes this is the first change. So our name and your host at the last append this line no after appending this line again restart apache server and now the error is gone yeah server name and machine name now just go to browser and here now you can specify your machine name so we are getting same page. So our machine is now getting recognized on web server yeah one you see in the terminal over here your apache configuration your host name yes it should yeah your host name have you added server name line in apache 2.con restart apache yes server name yeah end may at the end of that file yeah server name space machine name and then restart apache no first this should work and then your machine name okay so let us install PHP now follow this command apt get install PHP 5 live apache 2 mod PHP 5 PHP 5 after this command restart apache again. So now we will go for my SQL installation for this give this apt get command apt get install my SQL server PHP 5 my SQL so even getting this screen. So now this is the root password for our database so remember this the password that you give you will be using it for your module. So I am giving it as my SQL 1 2 3 give same password again my SQL 1 2 3. So my SQL installation is complete we will now just test it by running client for this follow my SQL command hyphen u and your user name that is root my SQL hyphen u root we are logging with user root hyphen p to prompt for password and this is the default database that we are logging to my SQL so this will ask for root password give the same password that we have given and you should get this prompt. Now let us try one query select star from user it should list all database users so these are the table contents we are getting so type quit to come out of front so we will come to shell again. So this means our my SQL database is installed and running properly so now let us try adding one user account for this login again with the same command without giving this database so my SQL hyphen u root hyphen p this will ask you for password so we have logged in as a root to my SQL for creating user give create user command create user in single quotes your new user name at the rate local host your user name and local host needs to be in single quotes it is creating one user named new user yeah on the local host it is creating user name new user semicolon so it should say query okay now will grant privileges to this newly created user so for that use grant command grant all privileges on star dot star that means on all databases to the new user at local host use this command grant all privileges on star dot star to new user yeah use create user command to create new user and then grant all privileges so it should again say query okay that means we have granted all privileges to this user so now let us try logging with this user name enter quit to come out to prompt again and now here instead of root we will say new user so we are logging with the new user when prompted for password just press enter it is enter just enter so we will run the same command again select star from user so now this shows seven rows one new user added again press quit to come out of prompt so that is it so we have we are done with installation of these three