If you hire the services of a server provider, like Server4You, you will probably be limited to specific operating systems of the servers, usually the latest release available of it. For example, if you have a brand new server and select the operative system from their catalogue to Ubuntu, you will see that they offer only the latest release till the date e.g Ubuntu 18.04.
Hi All, I am currently running nextcloud using php v5.6.22 on debian 8. I was wondering if it is worthwhile upgrading to php7? Has anyone done this and are there any benefits (performance etc.) to upgrade?
This situation by itself is not bad, as you are using the latest version of the system, however with new things appear new limitations for multiple stuff. One of these limitations appears in Plesk, which by default using Ubuntu 18.04, won't allow to install a PHP version prior to 7.0, which is simply ridiculous for projects that cannot be rewritten to the latest version of the language and that usually should work normally. Brady bbp33 windows 10 driver.
As explained in this official question at the plesk website:
- 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.in.
- If your PHP installation is based on PHP 5.6, it may be a good time to start making the plans for the upgrade to PHP 7.1, PHP 7.2 or PHP 7.3. PHP 5.6.39 packages are now available for Debian 7 “Wheezy”, on both amd64 and i386 architectures, in ZTS and non-ZTS (default) flavors, along with the usual PECL extensions.
By default, Debian 9 and Ubuntu 18.04 support only those versions of PHP that support OpenSSL 1.1, and that are PHP 7.x and newer. As Debian 9 and Ubuntu 18.04 do not support such configuration out of the box, it is not possible to install PHP 5.x via Plesk Installer.
That's bad for those who are unable to work with the terminal in their servers as they will unable to install it, however if you have the ability to use the terminal, we will show you a nice fix to install PHP 5.6 in your server and configure it to work with Plesk in Ubuntu 18.04.
1. Install PHP 5.6
As first step, you will need to install PHP from the command line, this will install this version of PHP system wide, this means not exclusively for Plesk. Run the following commands to install the latest version of PHP 5.6:
They will basically: install the software-properties-common package, this software provides an abstraction of the used apt repositories. It allows you to easily manage your distribution and independent software vendor software sources. Then add the repository where PHP 5.6 is available, update the repositories and install it.
Once you run the commands, you will have a basic installation of PHP 5.6, this means that it doesn't include almost any of the extensions that we usually need to work with it, however you can easily install them (at least the usual ones) with the following command:
Following the previous instructions, you will have now PHP 5.6 available in your system, specifically at the
/usr/bin/php5.6
path.2. Install PHP 5.6 CGI
Plesk requires a Common Gateway Interface to work with PHP (CGI), a web technology and protocol that defines a way for a web server (HTTP server) to interact with external applications, e.g. PHP. CGI enhances the web server capabilities to enable dynamic content generation and processing. CGI is used as an interface between the web server and the additionally installed applications generating dynamic web content. These applications are called CGI scripts and are written in different script and programming languages such as PHP, Perl, Python, etc.
To install the CGI of PHP 5.6, run the following command:
By using CGI or FastCGI the server runs an executable binary that is the PHP interpreter. This is an isolated process, performed outside the web server's process. After changes in the PHP settings (in the php.ini file), a PHP process alone can be restarted without this influencing the web server. The CGI is installed tipically at
/usr/bin/php-cgi5.6
.3. Register the handler of PHP 5.6 in Plesk
The command to register a new handler in Plesk with a custom version of PHP is the following one:
Where:
--add
: indicates that we are registering a new PHP handler.-displayname
: the name that will appear on the list of PHP handlers. It can be whatever you want, but a notation of PHPX.X is recommended.-path
: the absolute path to the PHP CGI binary.-phpini
: provide the absolute path to the php.ini file that will be used for the new PHP version.-clipath
: provide the absolute path to the binary of PHP.-type
: specify if the handler should handle CGI or FastCGI. For PHP 5.6, the recommended value is of FastCGI.-id
: In Plesk, every PHP version has an id, which is usually something like 'plesk-php55-cgi'. The list of php handlers can be shown withplesk bin php_handler --list
.
And that's it, you should simply replace the values with your own values. With a default installation of this tutorial, the command will look like:
After running the command, you should see an output similar to:
You can then see the new available PHP version at the PHP settings of plesk (or in the command line with
plesk bin php_handler --list
):Happy coding !
Introduction
A LAMP server is a web server combination of Apache, MySQL, and PHP on Linux server. It is widely used for hosting PHP and MySQL based websites on the world wide web. This tutorial is created to help administrators to configure LAMP-based web hosting environment on Debian Jessie.
This tutorial helps you to step by step setup of LAMP Stack on a Debian 8 Jessie system.
Step 1 – Prerequisites
Login to your Debian system with a sudo privileged user or root user using ssh command. Windows users can either use putty or other alternatives.
After login to your Debian system upgrade the current packages to the latest available version.
Also, install packages on your system required for commands used in this tutorial.
Step 2 – Install Apache2
Apache2 packages are available under default apt repositories. You can install Apache2 on a Debian 8 by running below command.
Step 3 – Install MySQL
MySQL server packages are also available in Debian 9 base repository. Run below command to install MySQL server for your LAMP setup.
Default repositories don’t contain latest packages. Use this tutorial to install latest MySQL server on Debian 8.
The installation process will prompt for the root user password.
Step 4 – Install PHP
The default Debian repository contained older PHP packages. To install the latest PHP versions enable the below PPA on your System, This provides the latest PHP packages for installation on Debian Linux.
Now install PHP packages on your system. Also install some other required modules to work PHP with MySQL and Apache2.
Step 5 – Verify Setup
The LAMP installation on Debian 8 has been successfully completed. You can test your setup by creating phpinfo file on your server. Edit the below file in your favorite text editor.
Add the below content.
Debian 8 Php 5.6 Download
2 | phpinfo(); |
Debian 8 Php 5.6 Source Code
Now access the info.php file in a web browser using your system IP address. Mauser pistol serial number lookup.