debian · raspberrypi · Server · ubuntu · ubuntu server

Install LAMP on Raspbian Jessie / Debian Jessie / Ubuntu 14.04 / Ubuntu 16.04

LAMP - Linux, Apache, Mysql and PHP

LAMP is an archetypal model of web service stacks, named as an acronym of the names of its original four open-source components: the Linux operating system, the Apache HTTP Server, the MySQL relational database management system (RDBMS), and the PHP programming language. The LAMP components are largely interchangeable and not limited to the original selection. As a solution stack, LAMP is suitable for building dynamic web sites and web applications.[…]

Raspbian Jessie / Debian Jessie / Ubuntu 14.04

Requirement for Debian

$ apt-get install sudo

Install LAMP  on Raspbian Jessie / Debian Jessie / Ubuntu 14.04 with GD Library**

$ sudo apt-get install apache2 php5 mysql-server php5-mysql php5-gd

When asked for MySQL password, just press [enter] to continue [3x (three times)].

Note **: GD Library is optional (package “php5-gd”) – some apps needed to display/handle graphics.

Ubuntu 16.04

Install PHP 7 with GD Library**
$ sudo apt-get install apache2 php mysql-server php-mysql libapache2-mod-php php-gd

Note **: GD Library is optional (package “php-gd”) – some apps needed to display/handle graphics.

When asked for MySQL password, just press [enter] to continue [3x (three times)].

Install PHP 5.6 (downgrade)

Why use PHP 5.6?? Because many applications (and scripts) not (yet) fully compatible to PHP 7.

Remove PHP 7 to avoid conflicts

$ sudo apt-get purge php7.0-common

Install PHP 5 with GD Library**

$ sudo add-apt-repository ppa:ondrej/php -y
$ sudo apt-get update
$ sudo apt-get install php5.6 php5.6-mysql php5.6-gd

Note **: GD Library is optional (package “php5.6-gd”) – some apps needed to display/handle graphics.

When asked for MySQL password, just press [enter] to continue [3x (three times)].

Anúncios

Um comentário em “Install LAMP on Raspbian Jessie / Debian Jessie / Ubuntu 14.04 / Ubuntu 16.04

Deixe um comentário

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logotipo do WordPress.com

Você está comentando utilizando sua conta WordPress.com. Sair / Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair / Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair / Alterar )

Foto do Google+

Você está comentando utilizando sua conta Google+. Sair / Alterar )

Conectando a %s