difficult question, i know i am going to sound very silly to a lot of you on here, but can someone give me a step by step guide on how to install ioncube loader please? pictures of where to look and and what to expect every step of the way, instructions that i can follow no matter what version of php or myvesta that i use please.
i find myself going round and round for weeks trying to follow different instructions that has not been working, ive had to re-install myvesta over and over in the the last month, surely surely there must be someone who can help people like me on here
ioncube loader install for a newbie
Hi Isscbta,
thanks for the quick reply,
i did try following the instructions on the link before i posted,
from here till
ihttps://drive.google.com/drive/folders/1lmvZm-vw2gl5izlKszZ4IoWxAmDkcRPy?usp=sharing
Use the appropriate files based on which version you need. If there are no files for a particular version which you need, create them from existing ones.
In your SSH, as root, run:
CODE: SELECT ALL
wget https://downloads.ioncube.com/loader_do ... -64.tar.gz
tar -xvzf ioncube_loaders_lin_x86-64.tar.gz
cd ioncube
ls
here.
but i am lost from the following, don't know where to input the following.
Define variables for desired version:
CODE: SELECT ALL
PHPVER="7.4" # here enter desired PHP version
PHPVERSHORT='74' # here enter the same but without the dot
Next, you need to set proper permissions for files that you took from the link we provided above:
CODE: SELECT ALL
chmod 0755 /etc/init.d/php$PHPVER-fpm-ioncube
chmod 0755 /usr/local/vesta/data/templates/web/apache2/PHP-FPM-$PHPVERSHORT-ioncube.sh
Now let's set some variables:
CODE: SELECT ALL
php$PHPVER -i | grep extension_dir
The output will be something like this:
CODE: SELECT ALL
> extension_dir => /usr/lib/php/20170718 => /usr/lib/php/20170718 # this is output example for 7.2
> extension_dir => /usr/lib/php/20190902 => /usr/lib/php/20190902 # this is output example for 7.4
Take the date from above output and set it as variable:
CODE: SELECT ALL
PHPDATE="20190902"
Next, run:
CODE: SELECT ALL
cp ioncube_loader_lin_$PHPVER.so /usr/lib/php/$PHPDATE/
cp /etc/php/$PHPVER/fpm/php.ini /etc/php/$PHPVER/fpm/php-ioncube.ini
PHPLINE="zend_extension=/usr/lib/php/$PHPDATE/ioncube_loader_lin_$PHPVER.so"
sed -i "1s|^|$PHPLINE\n\n|" /etc/php/$PHPVER/fpm/php-ioncube.ini
thanks for the quick reply,
i did try following the instructions on the link before i posted,
from here till
ihttps://drive.google.com/drive/folders/1lmvZm-vw2gl5izlKszZ4IoWxAmDkcRPy?usp=sharing
Use the appropriate files based on which version you need. If there are no files for a particular version which you need, create them from existing ones.
In your SSH, as root, run:
CODE: SELECT ALL
wget https://downloads.ioncube.com/loader_do ... -64.tar.gz
tar -xvzf ioncube_loaders_lin_x86-64.tar.gz
cd ioncube
ls
here.
but i am lost from the following, don't know where to input the following.
Define variables for desired version:
CODE: SELECT ALL
PHPVER="7.4" # here enter desired PHP version
PHPVERSHORT='74' # here enter the same but without the dot
Next, you need to set proper permissions for files that you took from the link we provided above:
CODE: SELECT ALL
chmod 0755 /etc/init.d/php$PHPVER-fpm-ioncube
chmod 0755 /usr/local/vesta/data/templates/web/apache2/PHP-FPM-$PHPVERSHORT-ioncube.sh
Now let's set some variables:
CODE: SELECT ALL
php$PHPVER -i | grep extension_dir
The output will be something like this:
CODE: SELECT ALL
> extension_dir => /usr/lib/php/20170718 => /usr/lib/php/20170718 # this is output example for 7.2
> extension_dir => /usr/lib/php/20190902 => /usr/lib/php/20190902 # this is output example for 7.4
Take the date from above output and set it as variable:
CODE: SELECT ALL
PHPDATE="20190902"
Next, run:
CODE: SELECT ALL
cp ioncube_loader_lin_$PHPVER.so /usr/lib/php/$PHPDATE/
cp /etc/php/$PHPVER/fpm/php.ini /etc/php/$PHPVER/fpm/php-ioncube.ini
PHPLINE="zend_extension=/usr/lib/php/$PHPDATE/ioncube_loader_lin_$PHPVER.so"
sed -i "1s|^|$PHPLINE\n\n|" /etc/php/$PHPVER/fpm/php-ioncube.ini
Hi, i am getting the following error at this stage
debian@*****************::~/ioncube$ chmod 0755 /etc/init.d/php$PHPVER-fpm-ioncube
chmod 0755 /usr/local/vesta/data/templates/web/apache2/PHP-FPM-$PHPVERSHORT-ioncube.sh
chmod: cannot access '/etc/init.d/php8.1-fpm-ioncube': No such file or directory
chmod: cannot access '/usr/local/vesta/data/templates/web/apache2/PHP-FPM-81-ioncube.sh': No such file or directory
debian@*****************::~/ioncube$ chmod 0755 /etc/init.d/php$PHPVER-fpm-ioncube
chmod 0755 /usr/local/vesta/data/templates/web/apache2/PHP-FPM-$PHPVERSHORT-ioncube.sh
chmod: cannot access '/etc/init.d/php8.1-fpm-ioncube': No such file or directory
chmod: cannot access '/usr/local/vesta/data/templates/web/apache2/PHP-FPM-81-ioncube.sh': No such file or directory
thanks for your initial response, but so far i think myvesta is more geared towards professionals and that my questions and needs are too basics for the myvesta community, so i think it's now time for me to try a different server panel that will be more newbie friendly to people like me, my only regret is in purchasing file manager and time spent, but we live and learn.
i wish you all well
i wish you all well