Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Converted from version '7.1.0'.

...

HTML
<div id="google_translate_element"></div>
<script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
}
</script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

...

Debian 7/ Debian

Table of Contents

Before You Begin

Ensure that System Requirements have been met prior to proceeding with the Installation Guide.

...


Info

For this example, we are using Debian/Ubuntu installation instructions from:

https://ayesh.me/Ubuntu-PHP-7.1 , using  Ondřej Surý's PPA.

Another reference containing instructions for Debian 7, 8, CentOS / RHEL, MacOS X, and Windows is available here:

https://www.colinodell.com/blog/201612/installing-php-71

Depending on what repository you choose, installation instructions and syntax may differ.


Code Block
languagebash
titleDebian 8 Install Package
sudo apt install apt-transport-https lsb-release ca-certificates 
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg 
sudo sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' 
sudo apt update


And update the packages list:

 

Code Block
languagebash
   apt-get update

 

Install Apache2/PHP7/MySQL and development tools for pecl:

 

Expand
titleClick here for the list of extensions...

PHP 7.x / Apache2 / extensions

  • httpd 
  • php7.1w 
  • php71w 
  • php71wphp7.1w-opcache 
  • php7.1wphp71w-mysqlnd 
  • php7.1wphp71w-pdo 
  • php7.1wphp71w-ldap 
  • php7.1wphp71w-pecl-memcache 
  • php7.1wphp71w-bcmath 
  • php7.1wphp71w-devel 
  • php7.1wphp71w-pear 
  • php7.1wphp71w-cli
  • php7.1-imap

Development tools for pecl / additional system packages:

  • curl 
  • openssl 
  • memcached 
  • mod_ssl


Code Block
languagebash
   apt-get install apache2 libapache2-mod-php7.1 php7.1 php7.1-cgi php7.1-cli php7.1-gd php7.1-curl php7.1-ldap php7.1-mysqlnd php7.1-ssh2 php-pear php7.1-dev php7.1-imap curl openssl memcached php7.1-memcache

 

 While installing you will be asked to set the MySQL root password.

MySQL

...