Now you can install the most required PHP modules from the list. To install any PHP modules, simply specify the PHP version and use the auto-completion functionality to view all modules as follows. For Apache Web Server $ sudo apt install php5.6 įor Nginx Web Server $ sudo apt install php5.6-fpm Ĥ. Now install different supported versions of PHP as follows. $ sudo apt install software-properties-commonĢ. First start by adding Ondřej Surý PPA to install different versions of PHP – PHP 5.6, PHP 7.x, and PHP 8.0 on the Ubuntu system. Only one thing left to do now - for all hosts which you want to be running on PHP 5.2, edit their configuration file and add the following line inside their definition: Include php52.1. The Action activates the cgi script for the files passed from the handler.The AddHandler registers a new handler.The ScriptAlias sets the path to the cgi script.This must be set, because if mod_php with PHP 5.3 is installed, the module interprets the php file and not the cgi script. The FilesMatch forces the handler to execute files with the suffix.ScriptAlias /php52-cgi /usr/lib/cgi-bin/php52-cgiĪction application/x-httpd-php5 /php52-cgi Add the following content to it: # Include file for virtual hosts that need to run PHP 5.2 The simplest way of installing your new shiny PHP 5.2 now is:įinally create new include file /etc/apache2/nf, which will be used by those virtual hosts that need to run off PHP 5.2. usr/include/x86_64-linux-gnu/bits/string3.h:82: warning: memset used with constant zero length parameter this could be due to transposed parameters`įinally PHP bug #53568, with a pretty easy fix: edit file ext/zip/lib/zip_dirent.c and in line 478 replace: memset(
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |