Does anyone have a quick guide? I don't want both so I am thinking of something along the lines of: - list all php5 related packages - remove them - replace them with the php7 version reboot I am using Debian 9, ISPCFG3 and nginx. Only hosting wordpress site and they are all php7 compatible.
Install the new PHP version as an additional PHP version and then select it in the websites. The default version of the server should remain at the default version that ships with the operating system version that you use, for Debian 9, PHP 7.0 btw. and not PHP 5.
is this the recommended best practice? I just thought that only having 1 version would help avoid problems. Would this be the right tutorial: https://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/ ? Also I see already compiled packages: Code: apt-cache search php7.0 libapache2-mod-php7.0 - server-side, HTML-embedded scripting language (Apache 2 module) libphp7.0-embed - HTML-embedded scripting language (Embedded SAPI library) php-all-dev - package depending on all supported PHP development packages php7.0 - server-side, HTML-embedded scripting language (metapackage) php7.0-apcu - APC User Cache for PHP php7.0-apcu-bc - APCu Backwards Compatibility Module php7.0-bcmath - Bcmath module for PHP ... but a search for php5 also has results: Code: apt-cache search php5 | more bluefish - advanced Gtk+ text editor for web and software development root@alfred:~# apt-cache search php5- | more bluefish - advanced Gtk+ text editor for web and software development php5-exactimage - fast image manipulation library (PHP bindings) php5-gdcm - Grassroots DICOM PHP5 bindings php5-vtkgdcm - Grassroots DICOM VTK PHP bindings php5-geos - GEOS bindings for PHP php5-lasso - Library for Liberty Alliance and SAML protocols - PHP 5 bindings php5-libvirt-php - libvirt bindings for PHP php5-mapscript - php5-cgi module for MapServer ... its php 5.6.x - can't remember the full history of this server but it might have been upgraded from Debian 8 hence php 5.6.x?
yes. All PHP based applications on your server incl. ISPConfig expects that the default PHP version of the OS is the one that ships with the OS as these applications are tested against that versions, using a different version may lead to errors.
So jsut to make sure, I am supposed to follow that tutorial and compile php7 and NOT use apt-get install php7.0-xxx?
This tutorial is better: https://www.howtoforge.com/tutorial...fig-3-from-debian-packages-on-debian-8-and-9/ Compiling PHP yourself is more work and more difficult, and you have to do it again weekly to keep up with security upgrades to PHP.
Thanks for the link, I quickly skimmed it and that sounds better, thanks! Compiling myself was exactly what I was afraid of (I mean the overhead) hence my insistent question if I can't use apt-get
Hi everyone, I only got around to try and install PHP 7.4 in addition to PHP 5.6 now and had to realize the tutorial linked here isn't working anymore because sury stopped offering PHP for Debian Jessie. I know it is old and the server will be replaced soon, I just need PHP4 for a few more weeks - any other way to get PHP 7.4 running on Debian Jessie?
found the answer here: https://www.howtoforge.com/community/threads/how-to-install-php-7-4-on-a-debian-8-jessie.85063/ Support for Jessie has kinda run out, I guess I'll have to speed up the new server ;-)
Yes, either upgrade your current server OS to the latest or migrate to new server with latest OS, then fix your php for ISPConfig to use the one that come with the latest OS.