I have an issue with ionCube Installation in my environment. Below is the summary of my environment.
Server Type: Amazon EC2 Micro Instance
Service Provider: Amazon Web Services
Stack Provider: Bitnami
System: Linux Ubuntu 64 Bit
PHP Version: 5.4.16
I installed the ionCube by following the instructions provided by Bitnami manually.
I modified PHP.ini file, with following line (irrespective of place such as at start, at end, in between before Xcache and ZendGuard) as per the instructions: zend_extension = /opt/bitnami/php/lib/php/extensions/ioncube_loader_lin_5.4.so
My site cannot be connected. It gets 500 Internal Server Erros (Connection Refused). Upon checing the apache server logs. I get an error "PHP fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0".
Apache logs are in folder "/opt/bitnami/apache2/logs/"
True root for ip address is "/opt/bitnami/apache2/htdocs/"
I have two applications "Moodle" and "Magento" running on this server.
Moodle root is "/opt/bitnami/apps/moodle/htdocs/"
Magento root is "/opt/bitnami/apps/magento/htdocs/"
.so file is installed first into folder "/home/bitnami/ioncube/"
Initially applicable files [ioncube_loader_lin_5.4.so] were copied into folder "/opt/bitnami/php/lib/php/extensions/"
I also late copied all .so files into folder "/opt/bitnami/php/lib/php/extensions/"
Based on further reading, I also installed Zend Optimizer and it was installed successfully.
I also tried using loader-wizard.php for true root as well as application root but i get following errors there:
Please note that the following problems currently exist with the ionCube Loader installation:
The ionCube Loader must be the first Zend extension listed in the configuration file, /opt/bitnami/php/etc/php.ini.
The necessary zend_extension line could not be found in the configuration.
Nothing works. Please advise.