While enable ioncube, and restart Apache, After 20 seconds Apache stops to try restarting.
Source Code
└─> service apache2 start
* Starting web server apache2 *
* The apache2 instance did not start within 20 seconds. Please read the log files to discover problems
in the /var/log/apache2/error.log I have
Source Code
PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0
It I type php -v at this time I have also this error
Source Code
└─> php -v
PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0
SOLVING :
add at First line in your ioncube ini file:
; priority=1 //(don't forget space between semicolon and priority=1)
or :
; priority=01
[ionCube]
zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.5.so
Need for moving these ini file to :
cp /etc/php5/apache2/conf.d/ioncube.ini /etc/php5/mods-available/
after that
php5dismod ioncube (if it's 20-ioncube.ini then php5enmod 20-ioncube)
php5enmod ioncube
then restart php5 and apache services
source :
https://i-mscp.net/index.php/Thread/8892-Trouble-to-install-ionCube/