Community

Closed Php 8.1 ioncube extension

th
thecreator #1

Hi I couldn’t find the ioncube extension for php 8.1 in my cyberpanel. How can I install?

th
thecreator #3

Hello, thanks for your reply.
I tried the below command but it didn’t work.

bash <(curl -Ls https://raw.githubusercontent.com/erenaksoy/lsws-ioncube-installer/main/install.sh)
za
zaku #4

read below post to get it work

th
thecreator #5

Which article are you talking about?
I read all the posts, but I can’t solve this error.

jo
josephgodwinke #6

@zaku here is the solution

Check your extension directory for your default assuming php 8.1 is default php -v

php -i | grep extension_dir

Try this :

sh <(curl https://raw.githubusercontent.com/josephgodwinkimani/cyberpanel-mods/main/php_ioncube_install.sh || wget -O - https://raw.githubusercontent.com/josephgodwinkimani/cyberpanel-mods/main/php_ioncube_install.sh)

Confirm using php -v you wil get something like:

PHP 7.4.33 (cli) (built: Nov  3 2022 07:46:18) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with the ionCube PHP Loader + ionCube24 v12.0.3, Copyright (c) 2002-2022, by ionCube Ltd.
    with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies
jo
josephgodwinke #8

Now i get you. You are using CentOs. Here is a fix for you:

$ cd ~ && wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz

$ tar -xvf ioncube_loaders_lin_x86-64.tar.gz

$ cp --verbose ioncube/ioncube_loader_lin_8.1.so /usr/local/lsws/lsphp81/lib64/php/modules/

$ echo "zend_extension=ioncube_loader_lin_8.1.so" >> /usr/local/lsws/lsphp81/etc/php.d/01-ioncube.ini

$ service lsws restart && service lscpd restart 
th
thecreator #9

File error message.

jo
josephgodwinke #10

I have edited that line please check again.

That path is for ubuntu distros only

th
thecreator #11

I am using CentOs 7. Again the file error output.

jo
josephgodwinke #12

Post the contents of ls /usr/local/lsws/lsphp81/

th
thecreator #13
bin etc include lib64 man share tmp
jo
josephgodwinke #14

Post the contents of ls /usr/local/lsws/lsphp81/etc/

th
thecreator #15
php.d php.ini php.ini.rpnew
jo
josephgodwinke #16

Post the contents of ls /usr/local/lsws/lsphp81/etc/php.d/

jo
josephgodwinke #18

Do you have 01-ioncube.ini in that list?

If you do rUn

echo "zend_extension=ioncube_loader_lin_8.1.so" >> usr/local/lsws/lsphp81/etc/php.d/01-ioncube.ini 
th
thecreator #19

No 01-ioncube.ini does not exist.

jo
josephgodwinke #20

Run

$ cd ~ && cp --verbose ioncube/ioncube_loader_lin_8.1.so /usr/local/lsws/lsphp81/lib64/php/modules/

This topic is closed to new replies.