Debian 8 Php 5.6
Set Default PHP Version 5.6 sudo update-alternatives -set php /usr/bin/php5.6 Set Default PHP Version 7.2 sudo update-alternatives -set php /usr/bin/php7.2 After changing the default version, confirm the PHP version was changed correctly by checking the version using the command below. Installed libsodium in Debian 8 for PHP 5.6. Apt-get install php-pear libsodium apt-get install libssl1.0.0=1.0.1t-1+deb8u6 apt-get install libssl-dev apt-get install php5-dev pecl install libsodium cd /etc/php5/mods-available/ cp xsl.ini libsodium.ini ls -al /usr/lib/php5/20131226/ nano libsodium.ini # extension=libsodium.so cd /etc/php5/apache2/conf.d ln -s././mods-available/libsodium. Installing PHP 7.3 and/or 7.4 on CentOS 8; Installing PHP 5.6 and/or 7.4 on Debian 9/10; Installing PHP 7.3 on Ubuntu 16.04, 18.04 and 20.04; Configuring the second PHP Version in Virtualmin; Configuring Individual Virtual Servers; Tags: fcgid. Note: Ubuntu 18.04 and Debian 9 do not support PHP 5.6 and lower versions. Visit this KB article for details. PHP 7.x versions are available starting from Plesk Onyx.
The PHP 7.4 is the latest version available for installation on Debian 9 Stretch Linux machine. Ubuntu users can visit our tutorial for installing PHP 7 on Ubuntu. This tutorial is for the Debian 9 Stretch users to install PHP 7.4, 7.3, 7.2, 7.1 or 5.6 on their system.
First of all, you need to complete the prerequisites step and then go forward to install the PHP version of your choice or requirements.
Prerequisites
Login to your Debian 9 system using shell access. For remote systems connect with SSH. Windows users can use Putty or other alternatives applications for SSH connection.
Run below commands to upgrade the current packages to the latest version.
Let’s execute the following commands to install the required packages first on your system. Then import packages signing key. After that configure PPA for the PHP packages on your system.
Now use one of the below options to install PHP of your requirements.
Installing PHP 7.4
You can also install the latest PHP version on your system. Run the following commands to install PHP 7.4 on Debian 9.
Also install required php modules.
Installing PHP 7.3
You can also install the latest PHP version on your system. Run the following commands to install PHP 7.3 on Debian 9.
Also install required php modules.
Debian 8 Php 5.6 Source Code
Installing PHP 7.2
You can also install the latest PHP version on your system. Run the following commands to install PHP 7.2 on Debian 9.
Also install required php modules.
Installing PHP 7.1
If your application has the specific requirement of PHP 7.1, You can use the following commands for installing PHP 7.1 on Debian 9 Stretch system.
Also, install the required PHP modules as per your requirements. Here is a list of some frequently used modules.
Installing PHP 5.6
Execute the following commands for installing PHP 5.6 on your Debian 9 Stretch system.
Also install required php modules.
Links for php
Debian Resources:
Debian 8 Php 5.6 Tutorial
Download Source Package php-defaults:
Maintainers:
- Debian PHP Maintainers (QA Page)
- Ondřej Surý (QA Page)
- Lior Kaplan (QA Page)
Similar packages:
server-side, HTML-embedded scripting language (default)
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-usedopen source general-purpose scripting language that is especially suitedfor web development and can be embedded into HTML.
This package is a dependency package, which depends on latest stablePHP version (currently 7.3).
Packages providing php
- php7.3
- server-side, HTML-embedded scripting language (metapackage)
- uwsgi-plugin-php
- PHP plugin for uWSGI
Other Packages Related to php
|
|
|
|
- dep:php7.3
- server-side, HTML-embedded scripting language (metapackage)
Download php
Debian 8 Php 5.6 Install
Architecture | Package Size | Installed Size | Files |
---|---|---|---|
all | 5.8 kB | 12.0 kB | [list of files] |