How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu



Similar documents
How to Install Multicraft on a VPS or Dedicated Server (Ubuntu bit)

Cloud Homework instructions for AWS default instance (Red Hat based)

HOW TO BUILD A VMWARE APPLIANCE: A CASE STUDY

With VTE On-Site you can have VTE CRM installed directly at your company.

How to Setup a Dedicated Web Server for Free

Advantech AE Technical Share Document

Install Cacti Network Monitoring Tool on CentOS 6.4 / RHEL 6.4 / Scientific Linux 6.4

Setting up a Web Server using Raspbian Wheezy on the Raspberry Pi ( Kenneth A Spencer)

ULTEO OPEN VIRTUAL DESKTOP UBUNTU (PRECISE PANGOLIN) SUPPORT

CPE111 COMPUTER EXPLORATION

INUVIKA OVD INSTALLING INUVIKA OVD ON UBUNTU (TRUSTY TAHR)

A Beginner's Guide to Setting Up A Web Hosting System (Or, the design and implementation of a system for the worldwide distribution of pictures of

Ulteo Open Virtual Desktop Installation

Kollaborate Server Installation Guide!! 1. Kollaborate Server! Installation Guide!

Livezilla How to Install on Shared Hosting By: Jon Manning

Installation documentation for Ulteo Open Virtual Desktop

Linux Development Environment Description Based on VirtualBox Structure

HOW TO SETUP AN APACHE WEB SERVER AND INTEGRATE COLDFUSION

Building Website with Drupal 7

MySQL quick start guide

Backup and Restore MySQL Databases

IIS, FTP Server and Windows

ProjectPier v Getting Started Guide

OpenCATS Documentation

Talk Internet User Guides Controlgate Administrative User Guide

Installation of PHP, MariaDB, and Apache

Desktop : Ubuntu Desktop, Ubuntu Desktop Server : RedHat EL 5, RedHat EL 6, Ubuntu Server, Ubuntu Server, CentOS 5, CentOS 6

FileMaker Server 11. FileMaker Server Help

INUVIKA OVD INSTALLING INUVIKA OVD ON RHEL 6

Laboration 3 - Administration

LAMP : THE PROMINENT OPEN SOURCE WEB PLATFORM FOR QUERY EXECUTION AND RESOURCE OPTIMIZATION. R. Mohanty Mumbai, India

HW9 WordPress & Google Analytics

Project management integrated into Outlook

SIMIAN systems. Setting up a Sitellite development environment on Windows. Sitellite Content Management System

Step One: Installing Rsnapshot and Configuring SSH Keys

JAMF Software Server Installation Guide for Linux. Version 8.6

FileMaker Server 13. FileMaker Server Help

MySQL Quick Start Guide

UQC103S1 UFCE Systems Development. uqc103s/ufce PHP-mySQL 1

Contents. 1. Infrastructure

Install Apache on windows 8 Create your own server

Installation Instructions

Getting Started with Dynamic Web Sites

How To Install and Secure phpmyadmin on Ubuntu 12.04

GestióIP IPAM v3.0 IP address management software Installation Guide v0.1

SETTING UP A LAMP SERVER REMOTELY

Setup a Virtual Host/Website

Installing an open source version of MateCat

CDH installation & Application Test Report

FileMaker Server 12. FileMaker Server Help

CN=Monitor Installation and Configuration v2.0

How to Install and Setting Up Drupal

Installation Instructions

Installing buzztouch Self Hosted

VERSION 9.02 INSTALLATION GUIDE.

owncloud 8 and DigitalOcean Matthew Davidson Bluegrass Linux User Group 03/09/2015

Create a virtual machine at your assigned virtual server. Use the following specs

Installing Moodle for Windows with Easy PHP Illustrated Install Guide By Floyd Collins

MySQL Quick Start Guide

CentOS. Apache. 1 de 8. Pricing Features Customers Help & Community. Sign Up Login Help & Community. Articles & Tutorials. Questions. Chat.

Architecture and Mode of Operation

NAS 109 Using NAS with Linux

FTP Server Configuration

SI455 Advanced Computer Networking. Lab2: Adding DNS and Servers (v1.0) Due 6 Feb by start of class

Mapping ITS s File Server Folder to Mosaic Windows to Publish a Website

How to Configure edgebox as a Web Server

ClickCartPro Software Installation README

IBM DB2 for Linux, UNIX, and Windows. Deploying IBM DB2 Express-C with PHP on Ubuntu Linux

Apache and Virtual Hosts Exercises

MOODLE Installation on Windows Platform

Network Management & Monitoring Request Tracker (RT) Installation and Configuration

Introduction Connecting Via FTP Where do I upload my website? What to call your home page? Troubleshooting FTP...

AlienVault Unified Security Management (USM) 4.x-5.x. Deploying HIDS Agents to Linux Hosts

Network Monitoring Lab

Installing Booked scheduler on CentOS 6.5

Web Site Content Management Server. Installation Guide Version 4.1 Build 0

Viking VPN Guide Linux/UNIX

LAMP Quickstart for Red Hat Enterprise Linux 4

INASP: Effective Network Management Workshops

WEB2CS INSTALLATION GUIDE

Version of this tutorial: 1.06a (this tutorial will going to evolve with versions of NWNX4)

Witango Application Server 6. Installation Guide for OS X

Virtual machine W4M- Galaxy: Installation guide

HP SDN VM and Ubuntu Setup

Embedded Based Web Server for CMS and Automation System

CCM 4350 Week 11. Security Architecture and Engineering. Guest Lecturer: Mr Louis Slabbert School of Science and Technology.

Host your websites. The process to host a single website is different from having multiple sites.

E-Commerce: Designing And Creating An Online Store

User and Programmer Guide for the FI- STAR Monitoring Service SE

INSTALLATION GUIDE VERSION

IDENTIKEY Server Windows Installation Guide 3.2

Identikey Server Windows Installation Guide 3.1

AJ Matrix V5. Installation Manual

Hardening MySQL. Maciej Dobrzański maciek at

How to Create, Setup, and Configure an Ubuntu Router with a Transparent Proxy.

Instalar debian 6 atualizado. Executar a sequencia abaixo

Raspberry Pi Webserver

Sponsor. Categories. Ubuntu Linux Tutorials,Howtos,Tips & News Quantal,Precise,Oneiric

Parallels Plesk Panel 11 for your Linux server

Quick Start Guide. User Manual. 1 March 2012

Transcription:

How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu Tagged In: Ubuntu, My Sql, Apache, Php, Lamp Stack About LAMP LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache, MySQL, and PHP. Since the virtual private server is already running Ubuntu, the linux part is taken care of. Here is how to install the rest. Set Up The steps in this tutorial require the user to have root privileges on your VPS. You can see how to set that up in the Initial Server Setup in steps 3 and 4. Step One Install Apache Apache is a free open source software which runs over 50% of the world s web servers. To install apache, open terminal and type in these commands: sudo apt-get update sudo apt-get install apache2 That s it. To check if Apache is installed, direct your browser to your server s IP address (eg. http://12.34.56.789). The page should display the words It works!" like this. How to Find your Server s IP address You can run the following command to reveal your server s IP address. ifconfig eth0 grep inet awk '{ print $2 }' Step Two Install MySQL MySQL is a powerful database management system used for organizing and retrieving data To install MySQL, open terminal and type in these commands:

sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql During the installation, MySQL will ask you to set a root password. If you miss the chance to set the password while the program is installing, it is very easy to set the password later from within the MySQL shell. Once you have installed MySQL, we should activate it with this command: sudo mysql_install_db Finish up by running the MySQL set up script: sudo /usr/bin/mysql_secure_installation The prompt will ask you for your current root password. Type it in. Enter current password for root (enter for none): OK, successfully used password, moving on... Then the prompt will ask you if you want to change the root password. Go ahead and choose N and move on to the next steps. It s easiest just to say Yes to all the options. At the end, MySQL will reload and implement the new changes. By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? [Y/n] y Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? [Y/n] y By default, MySQL comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? [Y/n] y - Dropping test database... - Removing privileges on test database... Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] y

Cleaning up... Once you're done with that you can finish up by installing PHP. Step Three Install PHP PHP is an open source web scripting language that is widely use to build dynamic webpages. To install PHP, open terminal and type in this command. sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt After you answer yes to the prompt twice, PHP will install itself. It may also be useful to add php to the directory index, to serve the relevant php index files: sudo nano /etc/apache2/mods-enabled/dir.conf Add index.php to the beginning of index files. The page should now look like this: <IfModule mod_dir.c> DirectoryIndex index.php index.html index.cgi index.pl index.php index.xhtml index.htm </IfModule> PHP Modules PHP also has a variety of useful libraries and modules that you can add onto your virtual server. You can see the libraries that are available. apt-cache search php5- Terminal will then display the list of possible modules. The beginning looks like this: php5-cgi - server-side, HTML-embedded scripting language (CGI binary) php5-cli - command-line interpreter for the php5 scripting language php5-common - Common files for packages built from the php5 source php5-curl - CURL module for php5 php5-dbg - Debug symbols for PHP5 php5-dev - Files for PHP5 module development php5-gd - GD module for php5 php5-gmp - GMP module for php5 php5-ldap - LDAP module for php5 php5-mysql - MySQL module for php5 php5-odbc - ODBC module for php5 php5-pgsql - PostgreSQL module for php5 php5-pspell - pspell module for php5 php5-recode - recode module for php5 php5-snmp - SNMP module for php5 php5-sqlite - SQLite module for php5 php5-tidy - tidy module for php5 php5-xmlrpc - XML-RPC module for php5

php5-xsl - XSL module for php5 php5-adodb - Extension optimising the ADOdb database abstraction library php5-auth-pam - A PHP5 extension for PAM authentication [...] Once you decide to install the module, type: sudo apt-get install name of the module You can install multiple libraries at once by separating the name of each module with a space. Congratulations! You now have LAMP stack on your droplet! Step Four RESULTS: See PHP on your Server Although LAMP is installed, we can still take a look and see the components online by creating a quick php info page To set this up, first create a new file: sudo nano /var/www/info.php Add in the following line: <?php phpinfo();?> Then Save and Exit. Restart apache so that all of the changes take effect: sudo service apache2 restart Finish up by visiting your php info page (make sure you replace the example ip address with your correct one): http://12.34.56.789/info.php It should look similar to this. See More After installing LAMP, you can Set Up phpmyadmin, Install WordPress, go on to do more with MySQL (A Basic MySQL Tutorial), Create an SSL Certificate, or Install an FTP Server. Related Articles By Etel Sverdlov How To Use Vundle to Manage Vim Plugins on a Linux VPS

How To Use DVTM and Dtach as a Terminal Window Manager on an Ubuntu VPS How To Use DM-Crypt to Create an Encrypted Volume on an Ubuntu VPS How To Install and Use the Fish Shell on an Ubuntu VPS How To Install and Use Zope 2 and PostgreSQL on Ubuntu 13.10 How To Install and Configure Shinken on Ubuntu 12.04 to Monitor a VPS Instance How To Configure Chroot Environments for Testing on an Ubuntu 12.04 VPS How To Install Glassfish 4.0 on Ubuntu 12.04.3