I am in middle of ionCube installation but php configuration is missing zend_extension for ionCube but not specify what is exactly
I am working on CentOs
All well Thanks:)
I am in middle of ionCube installation but php configuration is missing zend_extension for ionCube but not specify what is exactly
I am working on CentOs
All well Thanks:)
There were few things I have missed
Select the correct bit release
Match the Loader with your PHP version, e.g. for PHP 5.3, ioncube_loader_lin_5.3.so (extensions are inside the folder)
Add 'zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.3.so' to php.ini
Restart the server
There are 2 parts to the solution that worked for me:
conf.d
directory from the mods-available
directory. Do not simply copy the file into the conf.d as the loader-wizard suggests.See my blog post for more details.
I had the exact same problem with installing on Ubuntu. Ubuntu wants a soft link from /etc/php5/apache2/conf.d/20-ioncube.ini to /etc/php5/mods-available/20-ioncube.ini. I tried THAT after following the directions given and apache restart failed with this error: "PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0" in the error log /var/log/apache2/error.log
The solution that worked for me was to delete the soft link and to add the line from /etc/php5/mods-available/20-ioncube.ini ("zend_extension=/usr/lib/php5/20121212/ioncube_loader_lin_5.5.so") to /etc/php5/apache2/php.ini
Possibly of note, I removed spaces on either side of the equals sign.
Apache restarted successfully and clicking the test link in the loader script page resulted in a success message as did subsequent script execution in my development environment dependent upon ioncube.
Actually ioncube needs its own ini files in php.d directory. Ioncube read its own file with the name of 20-ioncube.ini file.
So to do this we need to create vi /etc/php.d/20-ioncube.ini and add text: "zend_extension = /usr/lib/php/modules/ioncube_loader_lin_5.3.so" in it. Now reload php-fpm and browser. Ioncube will find zend framework now.
You can try to execute my install ioncube script in my gist, install_ioncube.sh
Or manual install follow the official wizard in other script
# run-loader-wizard.sh
curl -O https://www.ioncube.com/loader-wizard/loader-wizard.tgz
tar zxvf loader-wizard.tgz
cd ./ioncube
php -S localhost:8000
# open http://localhost:8000/loader-wizard.php
© 2022 - 2024 — McMap. All rights reserved.
php.ini
. – Contract