SlideShare ist ein Scribd-Unternehmen logo
1 von 29
Downloaden Sie, um offline zu lesen
Installing LAMP Stack on Ubuntu Instance
Deploying Play Framework in EC2 - part # 2
kamarul kawnayeen
Preface
This is the second part of deploying playframewok in EC2 tutorial series. In the
previous part, I’ve showed how to setup a virtual server on AWS. I setup ubuntu
14.04 LTS there. In this part I’m going to complete setting up LAMP stack.
Considering LAMP, I will use :-
➢ Apache as web server
➢ MySQL as database
➢ PHP as programming language
First, we are going to configure corresponding security
group. The security group acts as a firewall allowing you to
choose which protocols and ports are open to computers
over the internet.
Configuring Security Group
select your instance & check the security group associated with it
click “Security Groups” from left panel and select the
one associated with your instance
Click on Inbound and then Click Edit
Add this 4 rules.
The Custom TCP
Rule (port 9000)
will be needed for
play application
Setting up Apache
Connect with your remote server using terminal & update your ubuntu
sudo apt-get update
sudo apt-get dist-upgrade
Install apache using the following command :
sudo apt-get install apache2
Now, we have to enable .htaccess file. To do so we have to edit the “000-
default.conf” file at “/etc/apache2/sites-available/” directory
So, move to the sites-available directory and execute the following command
sudo nano 000-default.conf
look for /var/www/html directory and make sure it contains AllowOverride
All
save & exit the nano editor via CTRL-X, “y” and Enter
Enable the rewrite module in Apache :
sudo a2enmod rewrite
Install PHP 5
sudo apt-get install libapache2-mod-php5
Restart Apache
sudo /etc/init.d/apache2 restart
Type the ip address of your instance & check
whether apache is running
Allow ubuntu user to work with the /var/www/html directory:
sudo adduser ubuntu www-data
sudo chown -R www-data:www-data /var/www/html
sudo chmod -R g+rw /var/www/html
Now we are going to test php installation. Go to the /var/www/html directory
and create a file name phptest.php
cd /var/www/html
sudo vi phptest.php
hit i key to enter insert mode and just call the phpinfo() function
hit esc to exit insert mode and type :wq to save and quit vi editor
type
ip address of your
instance/html/phptest.
php
at your browser to test
php
Installing MySQL
try
sudo apt-get install mysql-server
sudo apt-get install php5-mysql
Installing PHPMyAdmin
sudo apt-get install phpmyadmin
select apache2 web server
select yes while asking for configuring database for phpmyadmin
Enter password of database’s administrative user and hit Ok
Enter password for phpmyadmin (optional)
Confirming the password
Now we have to link phpmyadmin at /var/www/html directory
sudo ln -s /usr/share/phpmyadmin /var/www/html
check out phpmyadmin
at your browser

Weitere ähnliche Inhalte

Was ist angesagt?

Using the fork_cms deploy gem
Using the fork_cms deploy gemUsing the fork_cms deploy gem
Using the fork_cms deploy gemtijsverkoyen
 
Denial of service attack part 2
Denial of service attack part 2Denial of service attack part 2
Denial of service attack part 2Kaustubh Padwad
 
How to run appache spark on windows(in sbt console)
How to run appache spark on windows(in sbt console)How to run appache spark on windows(in sbt console)
How to run appache spark on windows(in sbt console)Ankit Kaneri
 
Compcon 2016 Workshop
Compcon 2016 WorkshopCompcon 2016 Workshop
Compcon 2016 WorkshopSteven Cooper
 
Vagrant development environment
Vagrant   development environmentVagrant   development environment
Vagrant development environmentHiraq Citra M
 
Puppet At Twitter - Puppet Camp Silicon Valley
Puppet At Twitter - Puppet Camp Silicon ValleyPuppet At Twitter - Puppet Camp Silicon Valley
Puppet At Twitter - Puppet Camp Silicon ValleyPuppet
 
How To Create EC2 instance Linux Server
How To Create EC2 instance Linux ServerHow To Create EC2 instance Linux Server
How To Create EC2 instance Linux ServerVCP Muthukrishna
 
How to start Django automatically after restarting development or local syste...
How to start Django automatically after restarting development or local syste...How to start Django automatically after restarting development or local syste...
How to start Django automatically after restarting development or local syste...Vidhi_Khatri
 
Composer Tutorial (PHP Hampshire Sept 2013)
Composer Tutorial (PHP Hampshire Sept 2013)Composer Tutorial (PHP Hampshire Sept 2013)
Composer Tutorial (PHP Hampshire Sept 2013)James Titcumb
 
Cool Things in Clojure 1.9
Cool Things in Clojure 1.9Cool Things in Clojure 1.9
Cool Things in Clojure 1.9Nola Stowe
 

Was ist angesagt? (18)

Atom IDE
Atom IDEAtom IDE
Atom IDE
 
Using the fork_cms deploy gem
Using the fork_cms deploy gemUsing the fork_cms deploy gem
Using the fork_cms deploy gem
 
Pentesting Cloud Environment
Pentesting Cloud EnvironmentPentesting Cloud Environment
Pentesting Cloud Environment
 
Denial of service attack part 2
Denial of service attack part 2Denial of service attack part 2
Denial of service attack part 2
 
How to run appache spark on windows(in sbt console)
How to run appache spark on windows(in sbt console)How to run appache spark on windows(in sbt console)
How to run appache spark on windows(in sbt console)
 
Compcon 2016 Workshop
Compcon 2016 WorkshopCompcon 2016 Workshop
Compcon 2016 Workshop
 
Vagrant development environment
Vagrant   development environmentVagrant   development environment
Vagrant development environment
 
Aws amazon ec2
Aws amazon ec2Aws amazon ec2
Aws amazon ec2
 
Instalar ebs 12 2 8
Instalar ebs 12 2 8Instalar ebs 12 2 8
Instalar ebs 12 2 8
 
Como instalar aeroo en open erp 6
Como instalar aeroo en open erp 6Como instalar aeroo en open erp 6
Como instalar aeroo en open erp 6
 
Debian
DebianDebian
Debian
 
Ansible 2.2
Ansible 2.2Ansible 2.2
Ansible 2.2
 
Puppet At Twitter - Puppet Camp Silicon Valley
Puppet At Twitter - Puppet Camp Silicon ValleyPuppet At Twitter - Puppet Camp Silicon Valley
Puppet At Twitter - Puppet Camp Silicon Valley
 
How To Create EC2 instance Linux Server
How To Create EC2 instance Linux ServerHow To Create EC2 instance Linux Server
How To Create EC2 instance Linux Server
 
How to start Django automatically after restarting development or local syste...
How to start Django automatically after restarting development or local syste...How to start Django automatically after restarting development or local syste...
How to start Django automatically after restarting development or local syste...
 
Composer Tutorial (PHP Hampshire Sept 2013)
Composer Tutorial (PHP Hampshire Sept 2013)Composer Tutorial (PHP Hampshire Sept 2013)
Composer Tutorial (PHP Hampshire Sept 2013)
 
instaling
instalinginstaling
instaling
 
Cool Things in Clojure 1.9
Cool Things in Clojure 1.9Cool Things in Clojure 1.9
Cool Things in Clojure 1.9
 

Andere mochten auch

Ubuntu OS and it's Flavours
Ubuntu OS and it's FlavoursUbuntu OS and it's Flavours
Ubuntu OS and it's FlavoursTushar B Kute
 
Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Server
Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu ServerForget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Server
Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Serveraaroncouch
 
Creating Ubuntu apps with Qt an Python
Creating Ubuntu apps with Qt an PythonCreating Ubuntu apps with Qt an Python
Creating Ubuntu apps with Qt an PythonDanial Behzadi
 
Ubuntu 12.04 Persian Release Party
Ubuntu 12.04 Persian Release PartyUbuntu 12.04 Persian Release Party
Ubuntu 12.04 Persian Release PartyDanial Behzadi
 
Installation of LAMP Server with Ubuntu 14.10 Server Edition
Installation of LAMP Server with Ubuntu 14.10 Server EditionInstallation of LAMP Server with Ubuntu 14.10 Server Edition
Installation of LAMP Server with Ubuntu 14.10 Server EditionSammy Fung
 
Cloud Ubuntu Open Stack, Juju, MaaS - Ua Deck Nov 2013
Cloud Ubuntu Open Stack, Juju, MaaS - Ua Deck Nov 2013Cloud Ubuntu Open Stack, Juju, MaaS - Ua Deck Nov 2013
Cloud Ubuntu Open Stack, Juju, MaaS - Ua Deck Nov 2013The World Bank
 
The ACP Pacemaker 11
The ACP Pacemaker 11The ACP Pacemaker 11
The ACP Pacemaker 11Logan Aimone
 
Print, Pixels & People 11
Print, Pixels & People 11Print, Pixels & People 11
Print, Pixels & People 11Logan Aimone
 
Den Globale Landsbyen
Den Globale LandsbyenDen Globale Landsbyen
Den Globale Landsbyenketil vigdal
 
3 contabilidad
3  contabilidad3  contabilidad
3 contabilidadcialcaca
 
Pla de Ciutadania i Immigració 2009 - 2012
Pla de Ciutadania i Immigració 2009 - 2012Pla de Ciutadania i Immigració 2009 - 2012
Pla de Ciutadania i Immigració 2009 - 2012tribunavirtual
 
Papers d'Acció Social num.18
Papers d'Acció Social num.18Papers d'Acció Social num.18
Papers d'Acció Social num.18tribunavirtual
 
Spectra from Correlation
Spectra from CorrelationSpectra from Correlation
Spectra from CorrelationPeter Morovic
 
The ACP Pacemaker 10
The ACP Pacemaker 10The ACP Pacemaker 10
The ACP Pacemaker 10Logan Aimone
 
The NSPA Pacemaker, Fall 2011
The NSPA Pacemaker, Fall 2011The NSPA Pacemaker, Fall 2011
The NSPA Pacemaker, Fall 2011Logan Aimone
 
Guia de Recomanacions sobre Gestió de la Diversitat a les Empreses i d'Altres...
Guia de Recomanacions sobre Gestió de la Diversitat a les Empreses i d'Altres...Guia de Recomanacions sobre Gestió de la Diversitat a les Empreses i d'Altres...
Guia de Recomanacions sobre Gestió de la Diversitat a les Empreses i d'Altres...tribunavirtual
 
PARAWACS: color halftoning with a single selector matrix
PARAWACS: color halftoning with a single selector matrixPARAWACS: color halftoning with a single selector matrix
PARAWACS: color halftoning with a single selector matrixPeter Morovic
 
For Advisers Iowa 11
For Advisers Iowa 11For Advisers Iowa 11
For Advisers Iowa 11Logan Aimone
 

Andere mochten auch (20)

Understanding ASP.NET MVC
Understanding ASP.NET MVCUnderstanding ASP.NET MVC
Understanding ASP.NET MVC
 
Ubuntu OS and it's Flavours
Ubuntu OS and it's FlavoursUbuntu OS and it's Flavours
Ubuntu OS and it's Flavours
 
Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Server
Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu ServerForget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Server
Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Server
 
Creating Ubuntu apps with Qt an Python
Creating Ubuntu apps with Qt an PythonCreating Ubuntu apps with Qt an Python
Creating Ubuntu apps with Qt an Python
 
Ubuntu 12.04 Persian Release Party
Ubuntu 12.04 Persian Release PartyUbuntu 12.04 Persian Release Party
Ubuntu 12.04 Persian Release Party
 
Installation of LAMP Server with Ubuntu 14.10 Server Edition
Installation of LAMP Server with Ubuntu 14.10 Server EditionInstallation of LAMP Server with Ubuntu 14.10 Server Edition
Installation of LAMP Server with Ubuntu 14.10 Server Edition
 
Cloud Ubuntu Open Stack, Juju, MaaS - Ua Deck Nov 2013
Cloud Ubuntu Open Stack, Juju, MaaS - Ua Deck Nov 2013Cloud Ubuntu Open Stack, Juju, MaaS - Ua Deck Nov 2013
Cloud Ubuntu Open Stack, Juju, MaaS - Ua Deck Nov 2013
 
Sources Of Energy(Sideshow)
Sources Of Energy(Sideshow)Sources Of Energy(Sideshow)
Sources Of Energy(Sideshow)
 
The ACP Pacemaker 11
The ACP Pacemaker 11The ACP Pacemaker 11
The ACP Pacemaker 11
 
Print, Pixels & People 11
Print, Pixels & People 11Print, Pixels & People 11
Print, Pixels & People 11
 
Den Globale Landsbyen
Den Globale LandsbyenDen Globale Landsbyen
Den Globale Landsbyen
 
3 contabilidad
3  contabilidad3  contabilidad
3 contabilidad
 
Pla de Ciutadania i Immigració 2009 - 2012
Pla de Ciutadania i Immigració 2009 - 2012Pla de Ciutadania i Immigració 2009 - 2012
Pla de Ciutadania i Immigració 2009 - 2012
 
Papers d'Acció Social num.18
Papers d'Acció Social num.18Papers d'Acció Social num.18
Papers d'Acció Social num.18
 
Spectra from Correlation
Spectra from CorrelationSpectra from Correlation
Spectra from Correlation
 
The ACP Pacemaker 10
The ACP Pacemaker 10The ACP Pacemaker 10
The ACP Pacemaker 10
 
The NSPA Pacemaker, Fall 2011
The NSPA Pacemaker, Fall 2011The NSPA Pacemaker, Fall 2011
The NSPA Pacemaker, Fall 2011
 
Guia de Recomanacions sobre Gestió de la Diversitat a les Empreses i d'Altres...
Guia de Recomanacions sobre Gestió de la Diversitat a les Empreses i d'Altres...Guia de Recomanacions sobre Gestió de la Diversitat a les Empreses i d'Altres...
Guia de Recomanacions sobre Gestió de la Diversitat a les Empreses i d'Altres...
 
PARAWACS: color halftoning with a single selector matrix
PARAWACS: color halftoning with a single selector matrixPARAWACS: color halftoning with a single selector matrix
PARAWACS: color halftoning with a single selector matrix
 
For Advisers Iowa 11
For Advisers Iowa 11For Advisers Iowa 11
For Advisers Iowa 11
 

Ähnlich wie Installing Lamp Stack on Ubuntu Instance

Linux for programmers
Linux for programmersLinux for programmers
Linux for programmersMd. Al Amin
 
Lamp Server With Drupal Installation
Lamp Server With Drupal InstallationLamp Server With Drupal Installation
Lamp Server With Drupal Installationfranbow
 
Set up Hadoop Cluster on Amazon EC2
Set up Hadoop Cluster on Amazon EC2Set up Hadoop Cluster on Amazon EC2
Set up Hadoop Cluster on Amazon EC2IMC Institute
 
Wamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and ConfigurationWamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and ConfigurationChetan Soni
 
How to Install LAMP in Ubuntu 14.04
How to Install LAMP in Ubuntu 14.04How to Install LAMP in Ubuntu 14.04
How to Install LAMP in Ubuntu 14.04Sanjary Edu
 
Mantis Installation for Windows Box
Mantis Installation for Windows BoxMantis Installation for Windows Box
Mantis Installation for Windows Boxguest34a3a419
 
Mantis Installation for Windows Box
Mantis Installation for Windows BoxMantis Installation for Windows Box
Mantis Installation for Windows BoxJayanta Dash
 
WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011Alfred Ayache
 
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMPHow To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMPMatt Dunlap
 
Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8Kaan Aslandağ
 
Apache web server tutorial for linux
Apache web server tutorial for linuxApache web server tutorial for linux
Apache web server tutorial for linuxSahad Sali
 
Definitive guide to setting up a lamp server using open source software
Definitive guide to setting up a lamp server using open source softwareDefinitive guide to setting up a lamp server using open source software
Definitive guide to setting up a lamp server using open source softwareparves kamal
 

Ähnlich wie Installing Lamp Stack on Ubuntu Instance (20)

Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
 
Linux for programmers
Linux for programmersLinux for programmers
Linux for programmers
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
 
Lamp Server With Drupal Installation
Lamp Server With Drupal InstallationLamp Server With Drupal Installation
Lamp Server With Drupal Installation
 
Set up Hadoop Cluster on Amazon EC2
Set up Hadoop Cluster on Amazon EC2Set up Hadoop Cluster on Amazon EC2
Set up Hadoop Cluster on Amazon EC2
 
Wamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and ConfigurationWamp & LAMP - Installation and Configuration
Wamp & LAMP - Installation and Configuration
 
How to Install LAMP in Ubuntu 14.04
How to Install LAMP in Ubuntu 14.04How to Install LAMP in Ubuntu 14.04
How to Install LAMP in Ubuntu 14.04
 
Mantis Installation for Windows Box
Mantis Installation for Windows BoxMantis Installation for Windows Box
Mantis Installation for Windows Box
 
Mantis Installation for Windows Box
Mantis Installation for Windows BoxMantis Installation for Windows Box
Mantis Installation for Windows Box
 
Linux
LinuxLinux
Linux
 
Lumen
LumenLumen
Lumen
 
WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011
 
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMPHow To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
 
Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8
 
Jones_Lamp_Tutorial
Jones_Lamp_TutorialJones_Lamp_Tutorial
Jones_Lamp_Tutorial
 
Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9
 
Apache web server tutorial for linux
Apache web server tutorial for linuxApache web server tutorial for linux
Apache web server tutorial for linux
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Definitive guide to setting up a lamp server using open source software
Definitive guide to setting up a lamp server using open source softwareDefinitive guide to setting up a lamp server using open source software
Definitive guide to setting up a lamp server using open source software
 
Apache - Quick reference guide
Apache - Quick reference guideApache - Quick reference guide
Apache - Quick reference guide
 

Kürzlich hochgeladen

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 

Kürzlich hochgeladen (20)

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 

Installing Lamp Stack on Ubuntu Instance

  • 1. Installing LAMP Stack on Ubuntu Instance Deploying Play Framework in EC2 - part # 2 kamarul kawnayeen
  • 2. Preface This is the second part of deploying playframewok in EC2 tutorial series. In the previous part, I’ve showed how to setup a virtual server on AWS. I setup ubuntu 14.04 LTS there. In this part I’m going to complete setting up LAMP stack. Considering LAMP, I will use :- ➢ Apache as web server ➢ MySQL as database ➢ PHP as programming language
  • 3. First, we are going to configure corresponding security group. The security group acts as a firewall allowing you to choose which protocols and ports are open to computers over the internet. Configuring Security Group
  • 4. select your instance & check the security group associated with it
  • 5. click “Security Groups” from left panel and select the one associated with your instance
  • 6. Click on Inbound and then Click Edit
  • 7. Add this 4 rules. The Custom TCP Rule (port 9000) will be needed for play application
  • 9. Connect with your remote server using terminal & update your ubuntu sudo apt-get update sudo apt-get dist-upgrade
  • 10. Install apache using the following command : sudo apt-get install apache2
  • 11. Now, we have to enable .htaccess file. To do so we have to edit the “000- default.conf” file at “/etc/apache2/sites-available/” directory So, move to the sites-available directory and execute the following command sudo nano 000-default.conf
  • 12. look for /var/www/html directory and make sure it contains AllowOverride All save & exit the nano editor via CTRL-X, “y” and Enter
  • 13. Enable the rewrite module in Apache : sudo a2enmod rewrite Install PHP 5 sudo apt-get install libapache2-mod-php5 Restart Apache sudo /etc/init.d/apache2 restart
  • 14. Type the ip address of your instance & check whether apache is running
  • 15. Allow ubuntu user to work with the /var/www/html directory: sudo adduser ubuntu www-data sudo chown -R www-data:www-data /var/www/html sudo chmod -R g+rw /var/www/html
  • 16. Now we are going to test php installation. Go to the /var/www/html directory and create a file name phptest.php cd /var/www/html sudo vi phptest.php
  • 17. hit i key to enter insert mode and just call the phpinfo() function hit esc to exit insert mode and type :wq to save and quit vi editor
  • 18. type ip address of your instance/html/phptest. php at your browser to test php
  • 20. try sudo apt-get install mysql-server sudo apt-get install php5-mysql
  • 22. sudo apt-get install phpmyadmin
  • 24. select yes while asking for configuring database for phpmyadmin
  • 25. Enter password of database’s administrative user and hit Ok
  • 26. Enter password for phpmyadmin (optional)
  • 28. Now we have to link phpmyadmin at /var/www/html directory sudo ln -s /usr/share/phpmyadmin /var/www/html
  • 29. check out phpmyadmin at your browser