1
00:00:00,520 --> 00:00:08,980
In this lecture, we will download and install Apache Web service, MySQL Database Service, PHP and

2
00:00:08,980 --> 00:00:10,270
Atom Coding Editor

3
00:00:11,410 --> 00:00:18,500
If you are new to these concepts, Apache is a service that can be used to

4
00:00:18,520 --> 00:00:19,240
turn your machines into webservers.

5
00:00:20,390 --> 00:00:25,330
We will be using mysql for storing data and PHP as coding language.

6
00:00:26,450 --> 00:00:31,190
I highly encourage you to read and learn more about them from Internet before continue.

7
00:00:33,560 --> 00:00:38,330
Lets start with installing Apache. To do so, open your terminal

8
00:00:41,960 --> 00:00:47,180
and type sudo apt-get install apache2

9
00:00:49,050 --> 00:00:53,250
.

10
00:00:57,120 --> 00:00:58,720
I have already installed it.

11
00:00:59,550 --> 00:01:03,210
It has a trivial installation, just press enter when it's required.

12
00:01:04,420 --> 00:01:05,830
And for the MySQL

13
00:01:07,530 --> 00:01:14,850
Type  apt-get install mysql-server

14
00:01:18,870 --> 00:01:25,890
And for the PHP and its extensions, we need a little bit more longer command.

15
00:01:28,520 --> 00:01:42,680
sudo apt-get install php7. to check available versions to install

16
00:01:42,680 --> 00:01:43,910
im pressing the tab key twice

17
00:01:46,060 --> 00:01:50,410
As you can see from the results, 7.2 is available.

18
00:01:52,280 --> 00:02:00,710
I will install it and also mysql extension for connecting to database with php

19
00:02:05,860 --> 00:02:06,490
And.

20
00:02:08,540 --> 00:02:14,900
multibyte string extension's for multibyte string functionalities, it may be required in the future, so

21
00:02:15,230 --> 00:02:17,930
you better download it, you better install it.

22
00:02:26,660 --> 00:02:38,480
And in order to use Apache with PHP or PHP with Apache, we need to install

23
00:02:39,810 --> 00:02:40,560
libapache2-mod-php

24
00:02:42,480 --> 00:02:43,620
And you are done.

25
00:02:45,140 --> 00:02:48,830
To check if service is installed successfully;

26
00:02:50,710 --> 00:02:55,000
let's start the Apache service by typing sudo

27
00:02:57,100 --> 00:03:01,810
service apache2 start command.

28
00:03:03,100 --> 00:03:16,330
to check the status of the service type down service apache2 status, is active and running perfect.

29
00:03:18,120 --> 00:03:21,030
Do the same thing for the MySQL database service.

30
00:03:28,190 --> 00:03:32,780
Start the mysql service and check the status of it.

31
00:03:36,570 --> 00:03:37,750
It's up and running.

32
00:03:38,160 --> 00:03:38,850
Excellent.

33
00:03:41,500 --> 00:03:45,660
Last thing we need to install is ATOM coding editor.

34
00:03:46,100 --> 00:03:54,550
Actually, it's not required, but we will be using it for fasten our coding capability, to do so

35
00:03:55,450 --> 00:03:57,460
go to ATOM's official website.

36
00:03:58,660 --> 00:04:01,330
ATOM.io and download the

37
00:04:02,350 --> 00:04:08,440
debian package. I've already downloaded, it's on my desktop.

38
00:04:10,730 --> 00:04:15,230
And go to the folder that contains debian package from your terminal.

39
00:04:19,950 --> 00:04:21,900
And install it by command sudo dpkg -i atom-amd64.deb

40
00:04:41,300 --> 00:04:48,920
After completing the installation, we can open up by typing Atom on the terminal.

41
00:04:51,060 --> 00:04:57,220
And here is our Atom PHP editor, and we are ready to start coding.

42
00:04:58,110 --> 00:04:59,430
That's it for this lecture.

43
00:05:00,030 --> 00:05:05,340
Please make sure you have completed all of the installations before moving into the next lecture.

44
00:05:06,240 --> 00:05:06,920
See you soon.
