GNU/Linux >> Linux Esercitazione >  >> Debian

Script:Installa IonCube su Debian VPS

IonCube è un metodo di codifica Zend PHP utilizzato per proteggere e codificare i file PHP. Per visualizzare i file php codificati sul tuo VPS devi avere l'estensione php ioncube installata.
Oggi vedremo come installare il caricatore ioncube sul tuo VPS Debian o Ubuntu usando un semplice script bash.

#!/usr/bin/env bash
# RoseHosting.com

# Check if PHP CLI is installed
hash php 2>/dev/null || { echo >&2 "The script requires php5-cli but it's not installed.  Aborting."; exit 1; }

# Find the system architecture
DPKG_ARCH=$(dpkg --print-architecture)
if [[ "$DPKG_ARCH" = "i386" ]]; then
  ARCH="x86"
elif [[ "$DPKG_ARCH" = "amd64" ]]; then
  ARCH="x86-64"
fi

# Download and extract
wget -q -O - "http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_${ARCH}.tar.gz" | tar -xzf - -C /usr/local 

# Find PHP version
PHP_V=$(php -v)
PHP_VERSION=${PHP_V:4:3}

# Add the IonCube loader to the PHP configuration
echo "zend_extension=/usr/local/ioncube/ioncube_loader_lin_${PHP_VERSION}.so" \
    > '/etc/php5/conf.d/00-ioncube_loader.ini'

# Restart services
for i in php5-fpm nginx apache2;do
    test -x /etc/init.d/$i && /etc/init.d/$i restart
done

Dopo aver eseguito lo script, per verificare se l'estensione ioncube è installata correttamente, digita il seguente comando:“php -v”. L'output dovrebbe essere simile al seguente:

PHP 5.3.18-1~dotdeb.0 with Suhosin-Patch (cli) (built: Oct 19 2012 08:17:21)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
    with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd.
    with Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbH

Lo script è autoesplicativo e dovrebbe funzionare su qualsiasi sistema basato su Debian come Ubuntu o Linux Mint.

Ovviamente non devi fare nulla di tutto ciò se utilizzi uno dei nostri servizi di hosting VPS Linux, nel qual caso puoi semplicemente chiedere ai nostri esperti amministratori Linux di installarlo per te. Sono disponibili 24 ore su 24, 7 giorni su 7 e si prenderanno immediatamente cura della tua richiesta.

PS. Se questo post ti è piaciuto condividilo con i tuoi amici sui social network utilizzando i pulsanti a sinistra o semplicemente lascia una risposta qui sotto. Grazie.


Debian
  1. Come installare ionCube Loader su Debian

  2. Come installare PHP 7.4 su Debian 10

  3. Come installare PHP 8 su Debian 10

  4. Script:Installa WordPress su un VPS Debian/Ubuntu

  5. Installa Fork CMS su un VPS Debian

Come installare PHP su Debian 9

Come installare PHP su Debian 10 Linux

Come installare PHP 8 su Debian 10

Installa Laravel Framework su Debian 11

Come installare IonCube Loader su Debian 9 Stretch

Come installare IonCube Loader su Debian 10