SlideShare une entreprise Scribd logo
1  sur  37
Topic : Install LAMP Stack on Linux Server OS
Oracle VM VirtualBox is cross-platform
virtualization software that allows users to
extend their existing computer to run
multiple operating systems including
Microsoft Windows, Mac OS X, Linux, and
Oracle Solaris, at the same time.
Here Click on Next and proceed.
Installing The Virtual Box
Once VitualBox is installed, we can create,
add or import new VMs using toolbar
buttons.
Installing The Virtual Box
Click New on Virtual Machine
toolbar and add details about
the new VM and required OS.
Installing Linux (Ubuntu) Server
Step 1:
Select the Base Memory and
Processors to be allocated to
the Virtual Machine.
Installing Linux (Ubuntu) Server
Step 2:
Select the size of memory to
be allocated for Virtual Hard
Disk.
Installing Linux (Ubuntu) Server
Step 3:
This is the interface for the
newly created Virtual Machine
for Ubuntu Server.
Select Server and Press on
Start to run the Virtual
Machine.
Installing Linux (Ubuntu) Server
Step 4:
Press Enter to install Ubuntu
Server.
Installing Linux (Ubuntu) Server
Step 5:
Select the preferred language
and press Enter.
Installing Linux (Ubuntu) Server
Step 6:
Select the preferred keyboard
layout and its variant, select
Done once finished and press
Enter.
Installing Linux (Ubuntu) Server
Step 7:
Select the preferred Base for
the installation, select Done
once finished and press Enter.
Installing Linux (Ubuntu) Server
Step 8:
Select the preferred network
connection for the server to
connect with other machines,
select Done once finished and
press Enter.
Installing Linux (Ubuntu) Server
Step 9:
Select the proxy address if
needed, select Done once
finished and press Enter.
Installing Linux (Ubuntu) Server
Step 10:
Select the archive for Ubuntu,
select Done once finished and
press Enter.
Installing Linux (Ubuntu) Server
Step 11:
Configure the storage/ disk
space for the server(you can
change or select the default
value selected at the beginning
of the installation), select Done
once finished and press Enter.
Installing Linux (Ubuntu) Server
Step 12:
Configure the storage/ disk
space for the server(you can
change or select available
space and used spaces), select
Done once finished and press
Enter.
Installing Linux (Ubuntu) Server
Step 13:
Setup the profile for the user
that includes username,
password, server’s name etc,
select Done once finished and
press Enter.
Installing Linux (Ubuntu) Server
Step 14:
Setup OpenSSH to allow
remote access to the server,
select Done once finished and
press Enter.
Installing Linux (Ubuntu) Server
Step 15:
Select the required snaps
(Enter Space to select/deselect
particular snaps), select Done
once finished and press Enter.
SNAP:
A snap is an application
containerized with all its
dependencies.
Installing Linux (Ubuntu) Server
Step 16:
The installation of the server
starts, it may take few mintues
depending upon our setup,
once finished select Reboot
Now and press Enter.
Installing Linux (Ubuntu) Server
Step 17:
Once the server reboots it will
ask us for Login Credentials,
enter the credentials set at the
beginning of the installation
and press Enter.
The given screen will appear
once the credentials match.
Installing Linux (Ubuntu) Server
Step 18:
Now we will update and
upgrade the server.
To Update & Upgrade:
$ sudo apt update
$ sudo apt upgrade -y
Installing Linux (Ubuntu) Server
Step 19:
Now we will install Apache in
the server.
To install Apache :
$ sudo apt install apache2
You will be prompted to
confirm Apaches installation by
pressing Y, then Enter.
Installing APACHE
Step 20:
Once the installation is
finished, we need to adjust
firewall settings to allow HTTP
traffic.
UFW has different application
profiles that you can leverage
for accomplishing that. To list
all currently available UFW
application profiles
we can run:
$ sudo apt install apache2
.
Installing APACHE
Step 21:
Meaning of the profile:
• Apache : This profile opens ony port 80.
• Apache Full : This profile opens both port 80
and port 443.
• Apache Secure : This profile opens ony port 443.
To allow traffic on port 80, we will use Apache
profile as:
$ sudo ufw allow in "Apache“
Now we will verify the profile change by :
$ sudo ufw status
Installing APACHE
Step 22:
We can do a spot check right away
to verify that everything went as
planned by visiting our server’s
public IP address in our web
browser. We will see the default
Ubuntu Apache page.
In my case, public ip is :
http:// 192.168.1.76
.
Installing APACHE
Step 23:
Now that we have a web server
up and running, we need to
install the database system to
be able to store and manage
data for our site.
we can run:
$ sudo apt install mysql-server
When prompted confirm the
installation by typing Y and then
Enter.
.
Installing MySQL
Step 24:
When we’re finished, test if
we’re able to log in to the MySQL
console by typing:
$ sudo mysql
This will connect to MYSQL
server as root user. We will see
an output as in the figure.
To exit the MySQL console, type:
mysql>exit
Installing MySQL
Step 25:
PHP is the component of our setup
that will process code to display
dynamic content to the final user.
$ sudo apt install php libapache2-
mod-php php-mysql
Here we install package such as:
• php-mysql: allows php to
communicate with MySQL—
based databases.
• libapache2-mod-php: enables
Apache to handle PHP files.
When prompted confirm the
installation by typing Y and then
Enter.
Installing PHP
Step 26:
Create the directory for ost_project as follows:
$ sudo mkdir /var/www/ost_project
We assign ownership of the directory with $USER
that will reference the current system user.
sudo chown -R $USER:$USER /var/www/ost_project
Creating a Virtual Host for Website
Step 27:
We open a new configuration file in Apache’s
sites-available directory using :
$ sudo nano /etc/apache2/sites-
available/ost_project.conf
We will enter the bare-bones configurations on
the newly created blank file.
Now we save and close the file when we’re
done. When we are using nano, we can do it by
pressing CTRL+X, then Y, and ENTER.
Creating a Virtual Host for Website
Step 28:
Now, We will use a2ensite to enable the virtual
host.
$ sudo a2ensite ost_project
We will disable Apache’s default website by:
$ sudo a2dissite 000-default
To make sure our configuration file doesn’t
contain syntax error, we run:
$ sudo systemctl reload apache2
Creating a Virtual Host for Website
Step 29:
Now, our new website is active, but the web-root
/var/www/ost_project is still empty. So we will create
an index.html file in that location and test the host if it
works as expected.
$ nano /var/www/ost_project/index.html
Now, we include the content on this file
as shown in the 2nd figure.
Creating a Virtual Host for Website
Step 30:
Now, we access our server’s domain name or IP
address once again from our browser and check
if Apache ‘s virtual host is working as expected.
In my case IP address is :
http://192.168.1.77
If we can see this page it means our Apache
virtual host is working fine.
Creating a Virtual Host for Website
Step 31:
Now, we’ll create a PHP test script to confirm
that Apache is able to handle and process
requests for PHP files.
We will create a new file named info.php inside
our common web folder as:
$ nano /var/www/ost_project/info.php
This will open a blank file. We will as valid php
script as shown in figure , in the file.
Testing PHP Processing on our Web Server
Step 32:
Once the file is saved, we will test the script by
accessing the server’s domain name or IP
address as
http://192.168.1.77/info.php
If we can see this page, PHP processing on our
Web Server is working as expected.
Testing PHP Processing on our Web Server
Step 33:
ThankYou!!!

Contenu connexe

Similaire à Install LAMP Stack in Linux Server OS and Hosting a Custom Domain .pptx

Diva23
Diva23Diva23
Diva23
diva23
 

Similaire à Install LAMP Stack in Linux Server OS and Hosting a Custom Domain .pptx (20)

install CentOS 6.3 minimal on Hyper-V
install CentOS 6.3 minimal on Hyper-Vinstall CentOS 6.3 minimal on Hyper-V
install CentOS 6.3 minimal on Hyper-V
 
Virtualization and Socket Programing
Virtualization and Socket ProgramingVirtualization and Socket Programing
Virtualization and Socket Programing
 
Amazon AWS Workspace Howto
Amazon AWS Workspace HowtoAmazon AWS Workspace Howto
Amazon AWS Workspace Howto
 
installation and configuration of informatica server
installation and configuration of informatica serverinstallation and configuration of informatica server
installation and configuration of informatica server
 
Diva23
Diva23Diva23
Diva23
 
Step by step procedure to set up a
Step by step procedure to set up aStep by step procedure to set up a
Step by step procedure to set up a
 
Host a Web Application on an Apache Server while Running the Server on an EC2...
Host a Web Application on an Apache Server while Running the Server on an EC2...Host a Web Application on an Apache Server while Running the Server on an EC2...
Host a Web Application on an Apache Server while Running the Server on an EC2...
 
Virtualization.pdf
Virtualization.pdfVirtualization.pdf
Virtualization.pdf
 
Share point 2010 enterprise single server farm installation
Share point 2010 enterprise single server farm installationShare point 2010 enterprise single server farm installation
Share point 2010 enterprise single server farm installation
 
Share point 2010 enterprise single server farm installation
Share point 2010 enterprise single server farm installationShare point 2010 enterprise single server farm installation
Share point 2010 enterprise single server farm installation
 
Setting up the hyperledger composer in ubuntu
Setting up the hyperledger composer in ubuntuSetting up the hyperledger composer in ubuntu
Setting up the hyperledger composer in ubuntu
 
Client Server Live Hosting Documentation
Client Server Live Hosting Documentation Client Server Live Hosting Documentation
Client Server Live Hosting Documentation
 
Aws overview part 2(compute services)
Aws overview   part 2(compute services)Aws overview   part 2(compute services)
Aws overview part 2(compute services)
 
Solace Integration with Mulesoft
Solace Integration with MulesoftSolace Integration with Mulesoft
Solace Integration with Mulesoft
 
Krenel Based Virtual Machine In Centos7
Krenel Based Virtual Machine In Centos7Krenel Based Virtual Machine In Centos7
Krenel Based Virtual Machine In Centos7
 
Security Testing Using Infrastructure-As-Code
Security Testing Using Infrastructure-As-CodeSecurity Testing Using Infrastructure-As-Code
Security Testing Using Infrastructure-As-Code
 
Wampserver install
Wampserver installWampserver install
Wampserver install
 
DCHQ Cloud Application Platform | Linux Containers | Docker PaaS
DCHQ Cloud Application Platform | Linux Containers | Docker PaaSDCHQ Cloud Application Platform | Linux Containers | Docker PaaS
DCHQ Cloud Application Platform | Linux Containers | Docker PaaS
 
Create Development and Production Environments with Vagrant
Create Development and Production Environments with VagrantCreate Development and Production Environments with Vagrant
Create Development and Production Environments with Vagrant
 
Project-make a public website server using raspberry pi
Project-make a public website server using raspberry piProject-make a public website server using raspberry pi
Project-make a public website server using raspberry pi
 

Plus de Ciceer Ghimirey (7)

Classification-Support Vector Machines.pptx
Classification-Support Vector Machines.pptxClassification-Support Vector Machines.pptx
Classification-Support Vector Machines.pptx
 
Machine Vision Concepts ,Application & Components.pptx
Machine Vision Concepts ,Application & Components.pptxMachine Vision Concepts ,Application & Components.pptx
Machine Vision Concepts ,Application & Components.pptx
 
Lab 5 Linux File Structure and Hierarchy.pptx
Lab 5 Linux File Structure and Hierarchy.pptxLab 5 Linux File Structure and Hierarchy.pptx
Lab 5 Linux File Structure and Hierarchy.pptx
 
Lab 4 -Linux Files, Directories and Basic Commands Part-2.pptx
Lab 4 -Linux Files, Directories and Basic Commands Part-2.pptxLab 4 -Linux Files, Directories and Basic Commands Part-2.pptx
Lab 4 -Linux Files, Directories and Basic Commands Part-2.pptx
 
Lab 3 -Linux Files, Directories and Basic Commands.pptx
Lab 3 -Linux Files, Directories and Basic Commands.pptxLab 3 -Linux Files, Directories and Basic Commands.pptx
Lab 3 -Linux Files, Directories and Basic Commands.pptx
 
Complete WordPress Setup (Description about Themes & Plugins Added)
Complete WordPress Setup (Description about Themes & Plugins Added)Complete WordPress Setup (Description about Themes & Plugins Added)
Complete WordPress Setup (Description about Themes & Plugins Added)
 
WordPress Introduction and WordPress Theme Installation Slides
WordPress Introduction and WordPress Theme Installation SlidesWordPress Introduction and WordPress Theme Installation Slides
WordPress Introduction and WordPress Theme Installation Slides
 

Dernier

在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
uodye
 
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Obat Aborsi 088980685493 Jual Obat Aborsi
 
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
uodye
 
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
drmarathore
 
一比一原版(RMIT毕业证书)墨尔本皇家理工大学毕业证成绩单学位证靠谱定制
一比一原版(RMIT毕业证书)墨尔本皇家理工大学毕业证成绩单学位证靠谱定制一比一原版(RMIT毕业证书)墨尔本皇家理工大学毕业证成绩单学位证靠谱定制
一比一原版(RMIT毕业证书)墨尔本皇家理工大学毕业证成绩单学位证靠谱定制
ougvy
 
In Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pills
In Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pillsIn Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pills
In Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pills
Abortion pills in Riyadh +966572737505 get cytotec
 
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
tufbav
 
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
uodye
 
Abortion pills in Dammam +966572737505 Buy Cytotec
Abortion pills in Dammam +966572737505 Buy CytotecAbortion pills in Dammam +966572737505 Buy Cytotec
Abortion pills in Dammam +966572737505 Buy Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
wpkuukw
 
怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证
怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证
怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证
ehyxf
 
Top profile Call Girls In Udgir [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Udgir [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Udgir [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Udgir [ 7014168258 ] Call Me For Genuine Models We ...
gajnagarg
 
怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证
怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证
怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证
ehyxf
 

Dernier (20)

在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
 
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
 
Guwahati Escorts Service Girl ^ 9332606886, WhatsApp Anytime Guwahati
Guwahati Escorts Service Girl ^ 9332606886, WhatsApp Anytime GuwahatiGuwahati Escorts Service Girl ^ 9332606886, WhatsApp Anytime Guwahati
Guwahati Escorts Service Girl ^ 9332606886, WhatsApp Anytime Guwahati
 
🌹Bhubaneswar🌹Odisha❤CALL GIRL 9777949614 ❤CALL GIRLS IN Bhubaneswar ESCORT SE...
🌹Bhubaneswar🌹Odisha❤CALL GIRL 9777949614 ❤CALL GIRLS IN Bhubaneswar ESCORT SE...🌹Bhubaneswar🌹Odisha❤CALL GIRL 9777949614 ❤CALL GIRLS IN Bhubaneswar ESCORT SE...
🌹Bhubaneswar🌹Odisha❤CALL GIRL 9777949614 ❤CALL GIRLS IN Bhubaneswar ESCORT SE...
 
Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...
 
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
 
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
 
一比一原版(RMIT毕业证书)墨尔本皇家理工大学毕业证成绩单学位证靠谱定制
一比一原版(RMIT毕业证书)墨尔本皇家理工大学毕业证成绩单学位证靠谱定制一比一原版(RMIT毕业证书)墨尔本皇家理工大学毕业证成绩单学位证靠谱定制
一比一原版(RMIT毕业证书)墨尔本皇家理工大学毕业证成绩单学位证靠谱定制
 
Hilti's Latest Battery - Hire Depot.pptx
Hilti's Latest Battery - Hire Depot.pptxHilti's Latest Battery - Hire Depot.pptx
Hilti's Latest Battery - Hire Depot.pptx
 
Call Girls in Bhubaneswar (Odisha) call me [🔝 9777949614 🔝] escort service 24X7
Call Girls in Bhubaneswar (Odisha) call me [🔝 9777949614 🔝] escort service 24X7Call Girls in Bhubaneswar (Odisha) call me [🔝 9777949614 🔝] escort service 24X7
Call Girls in Bhubaneswar (Odisha) call me [🔝 9777949614 🔝] escort service 24X7
 
In Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pills
In Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pillsIn Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pills
In Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pills
 
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
 
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
 
Abortion pills in Dammam +966572737505 Buy Cytotec
Abortion pills in Dammam +966572737505 Buy CytotecAbortion pills in Dammam +966572737505 Buy Cytotec
Abortion pills in Dammam +966572737505 Buy Cytotec
 
Call Girls Amethi 9332606886 HOT & SEXY Models beautiful and charming call g...
Call Girls Amethi  9332606886 HOT & SEXY Models beautiful and charming call g...Call Girls Amethi  9332606886 HOT & SEXY Models beautiful and charming call g...
Call Girls Amethi 9332606886 HOT & SEXY Models beautiful and charming call g...
 
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
 
Critical Commentary Social Work Ethics.pptx
Critical Commentary Social Work Ethics.pptxCritical Commentary Social Work Ethics.pptx
Critical Commentary Social Work Ethics.pptx
 
怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证
怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证
怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证
 
Top profile Call Girls In Udgir [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Udgir [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Udgir [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Udgir [ 7014168258 ] Call Me For Genuine Models We ...
 
怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证
怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证
怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证
 

Install LAMP Stack in Linux Server OS and Hosting a Custom Domain .pptx

  • 1. Topic : Install LAMP Stack on Linux Server OS
  • 2. Oracle VM VirtualBox is cross-platform virtualization software that allows users to extend their existing computer to run multiple operating systems including Microsoft Windows, Mac OS X, Linux, and Oracle Solaris, at the same time. Here Click on Next and proceed. Installing The Virtual Box
  • 3. Once VitualBox is installed, we can create, add or import new VMs using toolbar buttons. Installing The Virtual Box
  • 4. Click New on Virtual Machine toolbar and add details about the new VM and required OS. Installing Linux (Ubuntu) Server Step 1:
  • 5. Select the Base Memory and Processors to be allocated to the Virtual Machine. Installing Linux (Ubuntu) Server Step 2:
  • 6. Select the size of memory to be allocated for Virtual Hard Disk. Installing Linux (Ubuntu) Server Step 3:
  • 7. This is the interface for the newly created Virtual Machine for Ubuntu Server. Select Server and Press on Start to run the Virtual Machine. Installing Linux (Ubuntu) Server Step 4:
  • 8. Press Enter to install Ubuntu Server. Installing Linux (Ubuntu) Server Step 5:
  • 9. Select the preferred language and press Enter. Installing Linux (Ubuntu) Server Step 6:
  • 10. Select the preferred keyboard layout and its variant, select Done once finished and press Enter. Installing Linux (Ubuntu) Server Step 7:
  • 11. Select the preferred Base for the installation, select Done once finished and press Enter. Installing Linux (Ubuntu) Server Step 8:
  • 12. Select the preferred network connection for the server to connect with other machines, select Done once finished and press Enter. Installing Linux (Ubuntu) Server Step 9:
  • 13. Select the proxy address if needed, select Done once finished and press Enter. Installing Linux (Ubuntu) Server Step 10:
  • 14. Select the archive for Ubuntu, select Done once finished and press Enter. Installing Linux (Ubuntu) Server Step 11:
  • 15. Configure the storage/ disk space for the server(you can change or select the default value selected at the beginning of the installation), select Done once finished and press Enter. Installing Linux (Ubuntu) Server Step 12:
  • 16. Configure the storage/ disk space for the server(you can change or select available space and used spaces), select Done once finished and press Enter. Installing Linux (Ubuntu) Server Step 13:
  • 17. Setup the profile for the user that includes username, password, server’s name etc, select Done once finished and press Enter. Installing Linux (Ubuntu) Server Step 14:
  • 18. Setup OpenSSH to allow remote access to the server, select Done once finished and press Enter. Installing Linux (Ubuntu) Server Step 15:
  • 19. Select the required snaps (Enter Space to select/deselect particular snaps), select Done once finished and press Enter. SNAP: A snap is an application containerized with all its dependencies. Installing Linux (Ubuntu) Server Step 16:
  • 20. The installation of the server starts, it may take few mintues depending upon our setup, once finished select Reboot Now and press Enter. Installing Linux (Ubuntu) Server Step 17:
  • 21. Once the server reboots it will ask us for Login Credentials, enter the credentials set at the beginning of the installation and press Enter. The given screen will appear once the credentials match. Installing Linux (Ubuntu) Server Step 18:
  • 22. Now we will update and upgrade the server. To Update & Upgrade: $ sudo apt update $ sudo apt upgrade -y Installing Linux (Ubuntu) Server Step 19:
  • 23. Now we will install Apache in the server. To install Apache : $ sudo apt install apache2 You will be prompted to confirm Apaches installation by pressing Y, then Enter. Installing APACHE Step 20:
  • 24. Once the installation is finished, we need to adjust firewall settings to allow HTTP traffic. UFW has different application profiles that you can leverage for accomplishing that. To list all currently available UFW application profiles we can run: $ sudo apt install apache2 . Installing APACHE Step 21:
  • 25. Meaning of the profile: • Apache : This profile opens ony port 80. • Apache Full : This profile opens both port 80 and port 443. • Apache Secure : This profile opens ony port 443. To allow traffic on port 80, we will use Apache profile as: $ sudo ufw allow in "Apache“ Now we will verify the profile change by : $ sudo ufw status Installing APACHE Step 22:
  • 26. We can do a spot check right away to verify that everything went as planned by visiting our server’s public IP address in our web browser. We will see the default Ubuntu Apache page. In my case, public ip is : http:// 192.168.1.76 . Installing APACHE Step 23:
  • 27. Now that we have a web server up and running, we need to install the database system to be able to store and manage data for our site. we can run: $ sudo apt install mysql-server When prompted confirm the installation by typing Y and then Enter. . Installing MySQL Step 24:
  • 28. When we’re finished, test if we’re able to log in to the MySQL console by typing: $ sudo mysql This will connect to MYSQL server as root user. We will see an output as in the figure. To exit the MySQL console, type: mysql>exit Installing MySQL Step 25:
  • 29. PHP is the component of our setup that will process code to display dynamic content to the final user. $ sudo apt install php libapache2- mod-php php-mysql Here we install package such as: • php-mysql: allows php to communicate with MySQL— based databases. • libapache2-mod-php: enables Apache to handle PHP files. When prompted confirm the installation by typing Y and then Enter. Installing PHP Step 26:
  • 30. Create the directory for ost_project as follows: $ sudo mkdir /var/www/ost_project We assign ownership of the directory with $USER that will reference the current system user. sudo chown -R $USER:$USER /var/www/ost_project Creating a Virtual Host for Website Step 27:
  • 31. We open a new configuration file in Apache’s sites-available directory using : $ sudo nano /etc/apache2/sites- available/ost_project.conf We will enter the bare-bones configurations on the newly created blank file. Now we save and close the file when we’re done. When we are using nano, we can do it by pressing CTRL+X, then Y, and ENTER. Creating a Virtual Host for Website Step 28:
  • 32. Now, We will use a2ensite to enable the virtual host. $ sudo a2ensite ost_project We will disable Apache’s default website by: $ sudo a2dissite 000-default To make sure our configuration file doesn’t contain syntax error, we run: $ sudo systemctl reload apache2 Creating a Virtual Host for Website Step 29:
  • 33. Now, our new website is active, but the web-root /var/www/ost_project is still empty. So we will create an index.html file in that location and test the host if it works as expected. $ nano /var/www/ost_project/index.html Now, we include the content on this file as shown in the 2nd figure. Creating a Virtual Host for Website Step 30:
  • 34. Now, we access our server’s domain name or IP address once again from our browser and check if Apache ‘s virtual host is working as expected. In my case IP address is : http://192.168.1.77 If we can see this page it means our Apache virtual host is working fine. Creating a Virtual Host for Website Step 31:
  • 35. Now, we’ll create a PHP test script to confirm that Apache is able to handle and process requests for PHP files. We will create a new file named info.php inside our common web folder as: $ nano /var/www/ost_project/info.php This will open a blank file. We will as valid php script as shown in figure , in the file. Testing PHP Processing on our Web Server Step 32:
  • 36. Once the file is saved, we will test the script by accessing the server’s domain name or IP address as http://192.168.1.77/info.php If we can see this page, PHP processing on our Web Server is working as expected. Testing PHP Processing on our Web Server Step 33: