Showing posts with label Multiphp. Show all posts
Showing posts with label Multiphp. Show all posts
Saturday, June 3, 2023
How To Install PHP (8.2, 8.1, 7.4,7.3) on Ubuntu 22.04
sudo apt update && sudo apt upgrade
sudo apt install software-properties-common ca-certificates lsb-release apt-transport-https
LC_ALL=C.UTF-8 sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.2
sudo apt install php5.6
apt-get install php*-{cgi,cli,fpm,pdo,gd,mbstring,mysqlnd,opcache,xml,zip}
sudo apt install php8.1
sudo apt install php8.0
sudo apt install php7.4
sudo apt install php7.3
[If you use virtualmin then check PHP option to select your desired version]
Wednesday, February 22, 2023
Solved : Unable to guess the MIME type as no guessers are available (have you enabled the php_fileinfo extension?).
Issues:
1. Image doesn't load correctly or shows broken
2. File (i.e: csv, xlsx etc.) will not be downloaded or cannot be exported
Solution:
in WHM:
- Navigate to Software -> EasyApache4
- Click the button that says Customize next to Currently Installed Packages
- Click PHP Extensions
- Search for Fileinfo in the search bar and select the extensions you would like to install
- Click Review
- After looking over the proposed changes, scroll to the bottom of the screen and click provision.
In cPanel using PHP Selector (if not works even installed in WHM):
In cPanel using ini file (if not works even installed in WHM):
Other:
- Install PHP FIleInfo Extension (if not installed)
- Enable php_fileinfo in php.ini
extension=php_fileinfo.so (Linux)
Tuesday, August 30, 2022
Install multiple PHP version on Ubuntu for Virtualmin
Enable ondrej/php repository
LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php && apt-get update
Install additional PHP packagesapt-get install php*-{cgi,cli,fpm,pdo,gd,mbstring,mysqlnd,opcache,xml,zip}
Note: php* should be replaced with a specific PHP version, i.e. php7.4, unless you really need to install all available additional PHP versions.
Configuring the second PHP Version in Virtualmin
The following PHP execution modes are available : fpm The following PHP-FPM versions are available : 8.0.13 (php-fpm) 7.4.30 (php74-php-fpm) 8.2.0 (php82-php-fpm)
You can configure which one is the default PHP version used on new Virtual Servers. The default is to use the newest available. You can change that default in System Settings → Server Templates → Default → PHP Options page.
Configuring Individual Virtual Servers
You can configure the PHP version being used for a specific Virtual Server by selecting Server Configuration → PHP Options.
Source: https://www.virtualmin.com/documentation/web/multiplephp/
Subscribe to:
Posts (Atom)
How to inatall docker on Ubuntu using apt repository
# Add Docker's official GPG key: sudo apt-get update sudo apt-get install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyring...
-
Put the following code in a TXT file and save as "file.cmd" then run the cmd file as administrator. @echo off title Activate Micr...
-
We can install PowerMTA on the server. rpm -ivh /home/PowerMTA-4.0r6.x86_64.rpm You will see the output like this Preparing... #############...
-
# $Id: config 2015-03-24 16:00:00 Jack $ # Sample PowerMTA configuration file # PowerMTA Multiple Virtual PMTA config file sample # # E-mai...