‫in this section, we will learn how we can go ‫ahead and how we can install WordPress on
‫the Windows operating system so if you are using ‫the Mac operating system then I would recommend
‫you to watch the next section that is all about ‫the Mac operating system so as in the previous
‫section we got to know that in order to actually ‫run WordPress we need to have a server and this
‫is the software XAMPP that is actually going to ‫convert our computer into a local server so that
‫we do not have to purchase a web server while we ‫are actually working on the WordPress or we are
‫in the learning stage of Wordpress development ‫so that we can have a private playground and
‫we can practice and experiment with WordPress so ‫let's just go ahead and let's get started the very
‫first thing that that you actually need to do is ‫to go to Apache friends.org and this is a website
‫that is going to provide you this particular ‫software that is XAMPP which comes with Apache
‫web server to power WordPress it also comes with a ‫PHP compiler that WordPress is built with and also
‫it has the Maria DB so that WordPress can actually ‫communicate with the database let's just go ahead
‫and let's install this since we are actually using ‫the Windows operating system I would recommend you
‫to actually click on this XAMPP for Windows and ‫this is going to be downloaded all right so once
‫the XAMPP is actually downloaded then you can ‫double click on the installer file and this may
‫give you a popup like this so what you can do you ‫can click on yes and now this installer file is
‫going to run now when you are actually installing ‫XAMPPp you may get this warning so if you get this
‫warning it's okay to ignore that and you can click ‫on okay and now you can see that we have got a
‫setup window now the process is really simple ‫what we have to do is to do the next next next
‫and next and the XAMPP will now be installed so ‫let's do that we will click on next next and then
‫you have to choose a directory where you want to ‫install solid so I would recommend you to keep it
‫the default which is the C drive and then you can ‫hit on next and next and after that you have to
‫hit on next and this is going to be installed so ‫depending on your CPU this process can take some
‫time probably like 5 to 10 minutes so once this ‫is actually done then I'll be back all right so
‫now once you are actually installing the XAMPP you ‫may see this uh popup right here and what you can
‫do is that you can select everything all right and ‫then you have to click on allow access all right
‫and once you're done with that then uh it is going ‫to create the uninstaller and even if you do not
‫get this popup do not worry it's going to work ‫fine but if you get this popup this is going to
‫be basically a Windows security of firewall that ‫you can allow the access all right so if you are
‫installing XAMPP for the first time you have to ‫make sure that you allow the access all right
‫and now you can see that we've got this the setup ‫is now finished and it says do you want to start
‫the control panel now so we actually do not want ‫to start the control panel now I want to show you
‫how you can start it yourself manually all right ‫so what we have to do is to uncheck this and now
‫we have to hit on finish all right so now this ‫particular software is actually installed on our
‫computer computer now let's suppose that whenever ‫we want to actually access our website or access
‫our server what we will do first of all we will ‫have to go into this PC uh where we have actually
‫installed the XAMPPp we have actually installed it ‫in the local DC so we will open that up and now we
‫will actually click on this XAMPPp and now once ‫we are actually in here now we have to go down
‫and now you can see that we've got this XAMPPp ‫Dash control so what you can do you can double
‫click on it and now this control panel is going ‫to open up so this is actually the control panel
‫that we will be working with when we are building ‫our website and there are only two modules that we
‫will be working with throughout this course the ‫number one is actually the Apache which is going
‫to be a server the other one is going to be my SQL ‫which is going to be for the database so in order
‫to actually run WordPress we need these two module ‫that's it so the very first thing that you need to
‫do is to actually click on start and this is going ‫to be started if you see an error right here do
‫not worry in the next lecture I will show you how ‫you can actually manage that particular error all
‫right once this is actually started then you have ‫to click on the start to the my SQL as well and
‫this is going to run if it gives you any of the ‫popup so you can just allow that and you can click
‫on allow access and then you can click on yes and ‫now you can see that the MySQL is also working all
‫right so now our server is started and now when we ‫want to actually visit our locally built website
‫how we are going to be accessing it the process is ‫really simple what you have to do is to actually
‫go into your browser and then you have to type in ‫there Local Host all right that's it and then you
‫have to hit on enter and this is going to actually ‫take you to this XAMPP page so this particular
‫Local Host is going to be your website address ‫like you can see that if I visit Facebook . and
‫then I hit on enter it takes me to the Facebook ‫page right so similarly this is how your locally
‫hosted website is going to work you just have to ‫type in there Local Host that's it and then you
‫have to hit on enter and this is going to take ‫you to the XAMPP page now you can see that we are
‫actually being given a default website created for ‫us so what we have to do is to first of all get
‫rid of this default website site and after that ‫we're going to actually create our first PHP file
‫to test if our server is actually working let's ‫just go ahead and let's get started for that what
‫you need to do is to visit the C drive again and ‫after that you have to go into the XAMPP directory
‫after that you have to click on this HT docs so ‫this HD docs is basically your public folder or
‫the root folder of the website which means that ‫whenever you will type in their local host and
‫you will hit on enter this particular server is ‫going to actually take a look at this HT docs and
‫then it is going to run the run the uh file which ‫usually is the index.php so let's suppose that if
‫I keep everything whatever is in the HD docs if I ‫select everything from here and now I just right
‫click on on it and I just click on delete now ‫you can see that every file is actually deleted
‫now if I go ahead and if I refresh this you can ‫see that now I am actually being given an empty
‫folder right here which says the index of root or ‫the first folder so this HD docs is going to be
‫your root folder where you are going to be adding ‫the website files so let's just go ahead and let's
‫create our first test PHP file let's see if it ‫actually works for that what you need to do is
‫to actually get a text editor you can download ‫this Sublime Text if you haven't already you can
‫go to the sublime text.com click on that and then ‫you can click on download for Windows once you've
‫got that downloaded then you can go into your ‫downloads directory and you can actually run this
‫setup so the process is going to be really simple ‫you can do the next next next and next so let's do
‫that and now you can see that this is now ‫installed now I'll be clicking on finish
‫now once you are actually done with that then what ‫you have to do is to actually run this Sublime so
‫what you can do you can click on this uh windows ‫and you can search for the sublime and you also
‫may see over here so I'll be clicking on it and ‫this is going to open up and and now you can see
‫that this is actually the sublime text so the ‫very first thing that I will be doing is that
‫I'll be clicking on file and I will click on ‫new file all right after that I will actually
‫click on file again and now I will click on Save ‫after that I will be actually saving this file in
‫the HD docs folder so I will click on this PC ‫local d c XAMPPp HD Docs and inside here I will
‫be actually creating my first test PHP file so we ‫will name this file as test dot PHP now remember
‫you need to write the PHP which is going to be the ‫extension of the file it's really very important
‫so whatever name you add before make sure you do ‫have the extension correct which is going to be
‫PHP after that you can hit on Save and this is our ‫first PHP file that has been created all right so
‫once my first PHP file is actually created then ‫if we actually refresh this Local Host page you
‫can see that now we've got this test.php that has ‫a size of zero bytes all right now what we will be
‫doing is that we will be running this and we will ‫be seeing if it actually works so if you click on
‫it you can see that this is actually working now ‫you may not be able to differentiate it because
‫there is no code so we will be writing a dummy ‫code here as well now you do not have to implement
‫it because uh in this course we're not going to be ‫actually touching the programming but we're going
‫to be learning WordPress completely but let's ‫suppose that if you want to try it how PHP is
‫working then you can also copy and paste the same ‫code whatever I am pasting it right here so let's
‫just go ahead and let's do that on your test.php ‫file what you have to do is to write here less
‫than sign question mark PHP all right and then you ‫have to hit on enter which is going to take you
‫to another line after that you can write in here ‫print which is going to print something then you
‫can add two parentheses and inside these brackets ‫you're going to be adding two double quotation
‫marks and in between these double quotation marks ‫we're going to write it's working all right and
‫after that I'm going to be adding an exclamation ‫mark after these parentheses then what you have
‫to do is to write here semicolon which is really ‫very important all right so this is how you need
‫to enter after that you can click on enter again ‫and if you want you can also close the PHP syntax
‫by just adding the question mark and the greater ‫than sign that's it once you're done with that
‫then you can actually go to the file and you can ‫click on Save and this is going to be saved all
‫right that's it after that you can actually go ‫back to this particular page and if you click
‫on go back it was actually zero before but now ‫if you refresh this you can see that we've got
‫the size as 34 all right and now if we actually ‫click on it you can see that it says it's working
‫all right so this means that our server is now ‫finally working all right so now your server
‫is completely done now what we have to do is to ‫install WordPress but before that we also have
‫to learn how we can change our Port which means ‫that if you had any of the error while you were
‫actually starting the XAMPP server then how you ‫can resolve that and also that is a very important
‫lecture that I would recommend you to watch watch ‫it now here comes the most important part and that
‫is when you will be shutting down your computer ‫should you be actually stopping your server yes
‫this is really important so now let's suppose that ‫you are actually you have installed WordPress and
‫now you are building the website but now you want ‫to continue the course tomorrow then what should
‫you do so the very first thing that you need to ‫do is to click on stop all right and click on stop
‫stop the server then you can click on Cross all ‫right and after that you can click on the Windows
‫button and you can power off the windows or you ‫can shut down your computer all right and now
‫let's suppose that this is actually another day ‫and now you want to run your computer again then
‫what you have to do is that let's suppose that ‫now you want to uh basically visit the website
‫again so you log into your computer and then you ‫actually go into the Chrome and now let's suppose
‫that you want to actually visit the website so ‫you type in there Local Host all right and you
‫hit on enter it's not going to work and the reason ‫for that is because our server is actually not yet
‫started so every time you shut down your computer ‫and you restart and then you are you want to visit
‫the website what you have to do is to actually ‫go into your file explorer and then you have to
‫actually click on this PC then you have to to go ‫into the local to see XAMPPp and after that you
‫have to go down and you have to click on the XAMPPp ‫dash control once you're done with that then you
‫can start this service and you can also start ‫this service once both the service already and
‫they have turned green then you can actually go ‫ahead and you can visit the local host and it will
‫work so this is how you're going to be accessing ‫the website now in this particular lecture what
‫we have learned learned we have actually learned ‫how we can install XAMPP and the most important
‫thing that I want you to remember is that every ‫time you shut down your computer and you want to
‫access the website you have to basically go into ‫the local to see XAMPP XAMPP-control and start the
‫server and the other most important thing is ‫that inside the XAMPP folder we have got this
‫HT doc this is the only folder that you will ‫be working with which is going to be the public
‫folder of your website which means that whatever ‫file you will be adding in here that is going to
‫be accessed by the server so now let's see the ‫difference all right now I'm going to be running
‫this file through the server you can see that ‫it's working it shows the output now I'll be going
‫ahead and I'll be dragging this file and I'll be ‫dropping it outside over here in a KNE tab on the
‫Chrome and you can see that it's just showing the ‫text it's actually not working however here it's
‫working so this is actually the difference uh in ‫running a file with a server and also running a
‫file without the server by accessing the folder ‫name and everything and it is just going to show
‫the text but it's not going to actually work like ‫you can see that this is actually a print command
‫which is telling the PHP to print something on ‫here and you can see that rather than showing
‫the text it's actually working on the server ‫so that was all about the installation of XAMPPp
‫in the next lecture of the course we're going to ‫learn how we can change the port which is really
‫very important and after that we're going to ‫install word press on the Windows operating system