Skip to content

Instantly share code, notes, and snippets.

@curtisbelt
Last active April 3, 2017 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save curtisbelt/07c8a4eff959089c06d4bc99c8983165 to your computer and use it in GitHub Desktop.
Save curtisbelt/07c8a4eff959089c06d4bc99c8983165 to your computer and use it in GitHub Desktop.
LAMP Stack (Ubuntu 16.04, PHP 7.1)

LAMP Stack (Ubuntu 16.04, PHP 7.1)

To Do

  • Apache
    • Configure PHP
    • Configure VirtualHosts
  • PHP
    • Install x-debug
    • Install imagemagick
  • MySQL
  • Dynamic Hosts?

PHP + Modules

Apache 2

Install

sudo apt-get update
sudo apt-get install apache2

Confirm

# apache2ctl - Apache HTTP server control interface
sudo apache2ctl configtest

To suppress the warning, open /etc/apache2/apache2.conf and set the ServerName directive to your primary domain name or public IP.

ServerName newinstall.host

PHP 7.1

Install

sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php7.1

Confirm

php -v

Confirmation Result

PHP 7.1.3-3+deb.sury.org~xenial+1 (cli) (built: Mar 25 2017 14:00:03) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.1.3-3+deb.sury.org~xenial+1, Copyright (c) 1999-2017, by Zend Technologies

Other Software

Sublime Text 3

sudo add-apt-repository -y ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment