In this lecture, we will download and install Apache Web service, MySQL Database Service, PHP and
Atom Coding Editor
If you are new to these concepts, Apache is a service that can be used to
turn your machines into webservers.
We will be using mysql for storing data and PHP as coding language.
I highly encourage you to read and learn more about them from Internet before continue.
Lets start with installing Apache. To do so, open your terminal
and type sudo apt-get install apache2
.
I have already installed it.
It has a trivial installation, just press enter when it's required.
And for the MySQL
Type apt-get install mysql-server
And for the PHP and its extensions, we need a little bit more longer command.
sudo apt-get install php7. to check available versions to install
im pressing the tab key twice
As you can see from the results, 7.2 is available.
I will install it and also mysql extension for connecting to database with php
And.
multibyte string extension's for multibyte string functionalities, it may be required in the future, so
you better download it, you better install it.
And in order to use Apache with PHP or PHP with Apache, we need to install
libapache2-mod-php
And you are done.
To check if service is installed successfully;
let's start the Apache service by typing sudo
service apache2 start command.
to check the status of the service type down service apache2 status, is active and running perfect.
Do the same thing for the MySQL database service.
Start the mysql service and check the status of it.
It's up and running.
Excellent.
Last thing we need to install is ATOM coding editor.
Actually, it's not required, but we will be using it for fasten our coding capability, to do so
go to ATOM's official website.
ATOM.io and download the
debian package. I've already downloaded, it's on my desktop.
And go to the folder that contains debian package from your terminal.
And install it by command sudo dpkg -i atom-amd64.deb
After completing the installation, we can open up by typing Atom on the terminal.
And here is our Atom PHP editor, and we are ready to start coding.
That's it for this lecture.
Please make sure you have completed all of the installations before moving into the next lecture.
See you soon.