Debian 9 installation LEMP + WHMCS 7.5 tutorial

888u

Last update at :2024-02-10,Edit by888u

WHMCS 7.5 is finally released, this product starts to support PHP 7.2, here is a simple tutorial to record the installation method

1. Preparation

First, follow "Debian 9 / Debian 8 using source installation LEMP Tutorial》After installing the LEMP environment, you can select some PHP 7.2 software packages that you need to use

apt-get install php7.2-fpm php7.2-mysql php7.2-curl php7.2-gd php7.2-mbstring php7.2-xml php7.2-xmlrpc php7.2-zip php7.2-json php7 .2-imap php7.2-opcache -y

2. Install ionCube Loader 10

WHMCS 7.5 does not support the old version of ionCube Loader, so we need to download the latest version and unzip it The final ioncube directory

wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.zip unzip ioncube_loaders_lin_x86-64.zip cd ioncube

Compile the PHP Extension of PHP 7.2 by default. We can find the directory of the PHP 7.2 extension in /usr/lib/php/20170718/

Correspondingly, PHP 7.0 is in /usr/lib/php/20151012/, PHP 7.1 is in /usr/lib/php/20160303/

Then copy ioncube_loader_lin_7.2.so in the ioncube directory

cp -r ioncube_loader_lin_7.2.so /usr/lib/php/20170718/

Corresponds to PHP 7.1

cp -r ioncube_loader_lin_7.1.so /usr/lib/php/20160303/

Corresponds to PHP 7.0

cp -r ioncube_loader_lin_7.0.so /usr/lib/php/20151012/

Then add an FPM module configuration file

cat >> /etc/php/7.2/mods-available/ioncube.ini << EOF zend_extension = ioncube_loader_lin_7.2.so EOF

Then add the ioncube module to both PHP-FPM and PHP-Cli

ln -s /etc/php/7.2/mods-available/ioncube.ini /etc/php/7.2/fpm/conf.d/01-ioncube.ini ln -s /etc/php/7.2/mods-available/ioncube.ini /etc/php/7.2/cli/conf.d/01-ioncube.ini

Then restart PHP-FPM

systemctl restart php7.2-fpm

Let’s check if it works

root@debian ~ # php -v PHP 7.2.3-1+0~20180306120016.19+stretch~1.gbp81bf3b (cli) (built: Mar 6 2018 12:00:19) (NTS) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.0, Copyright (c) 2002-2018, by ionCube Ltd. with Zend OPcache v7.2.3-1+0~20180306120016.19+stretch~1.gbp81bf3b, Copyright (c) 1999-2018, by Zend Technologies

Just see with the ionCube PHP Loader (enabled)

PS: For the corresponding PHP 7.1 and PHP 7.0 users, please modify the directory by yourself without repeating it

3. Modify MySQL configuration

According to Official instructions, WHMCS 7 does not support SQL strict mode

WHMCS requires MySQL strict mode to be turned off in order for it to function.

So we need to turn off the SQL strict mode that is enabled by default in Percona Server

Modify the /etc/mysql/percona-server.conf.d/mysqld.cnf file directly and change sql_mode to sql_mode=NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

The final file looks like this

Then restart MySQL

systemctl restart mysql

The final configuration of Nginx and installation of WHMCS will not be repeated

Recommended site searches: IP rental, Hong Kong server rental, dynamic IP dial-up server, website registration domain name query, free agent IP, webmaster IP, Chinese domain name registration, station group server rental, website registration, foreign vps server rental, < /p>

Debian 9 installation LEMP + WHMCS 7.5 tutorial

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码