Jump to content
  • 0

Cron Errors


drolfe

Question

Hi, I"m very new to blesta,

 

I've almost got everything setup, just need to find out why I"m getting these errors after every cron run

PHP Notice:  Constant HTACCESS already defined in /var/www/portal.xxxxx/htdocs/lib/init.php on line 44
PHP Stack trace:
PHP   1. {main}() /var/www/portal.xxxxxx/htdocs/index.php:0
PHP   2. include() /var/www/portal.xxxxxx/htdocs/index.php:17
PHP   3. define() /var/www/portal.xxxxxx/htdocs/lib/init.php:44
Site error: the file <b>/var/www/portal.xxxxx/htdocs/app/app_model.php</b> requires the ionCube PHP Loader ioncube_loader_lin_5.5.so to be installed by the website operator. If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.

Ubuntu 14.04 LTS running nginx

 

see below some more details

root@blesta:~# php -v
PHP 5.5.21-1+deb.sury.org~trusty+2 (cli) (built: Jan 26 2015 19:57:37) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
    with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans
root@blesta:~# updatedb
root@blesta:~# locate ioncube_loader
/usr/lib/php5/20121212/ioncube_loader_lin_4.1.so
/usr/lib/php5/20121212/ioncube_loader_lin_4.2.so
/usr/lib/php5/20121212/ioncube_loader_lin_4.3.so
/usr/lib/php5/20121212/ioncube_loader_lin_4.3_ts.so
/usr/lib/php5/20121212/ioncube_loader_lin_4.4.so
/usr/lib/php5/20121212/ioncube_loader_lin_4.4_ts.so
/usr/lib/php5/20121212/ioncube_loader_lin_5.0.so
/usr/lib/php5/20121212/ioncube_loader_lin_5.0_ts.so
/usr/lib/php5/20121212/ioncube_loader_lin_5.1.so
/usr/lib/php5/20121212/ioncube_loader_lin_5.1_ts.so
/usr/lib/php5/20121212/ioncube_loader_lin_5.2.so
/usr/lib/php5/20121212/ioncube_loader_lin_5.2_ts.so
/usr/lib/php5/20121212/ioncube_loader_lin_5.3.so
/usr/lib/php5/20121212/ioncube_loader_lin_5.3_ts.so
/usr/lib/php5/20121212/ioncube_loader_lin_5.4.so
/usr/lib/php5/20121212/ioncube_loader_lin_5.4_ts.so
/usr/lib/php5/20121212/ioncube_loader_lin_5.5.so
/usr/lib/php5/20121212/ioncube_loader_lin_5.5_ts.so
/usr/lib/php5/20121212/ioncube_loader_lin_5.6.so
/usr/lib/php5/20121212/ioncube_loader_lin_5.6_ts.so
/usr/local/ioncube_loaders_lin_x86-64.tar.gz
root@blesta:~# 

Any help I could get would be great

 

Regards, Daniel

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

OK I found the issues

root@blesta:~# php -v
PHP 5.5.21-1+deb.sury.org~trusty+2 (cli) (built: Jan 26 2015 19:57:37) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with the ionCube PHP Loader v4.7.3, Copyright (c) 2002-2014, by ionCube Ltd., and
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
    with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans
ioncube was enable for the web but not for the cli

I had to add the below:

zend_extension = /usr/lib/php5/20121212/ioncube_loader_lin_5.5.so

into 

/etc/php5/cli/php.ini

as it already existed in

/etc/php5/fpm/php.ini

Regards, Daniel

Link to comment
Share on other sites

  • 0

Oh wait the error want's Ioncube. Ok well you have it on the server but I'm not sure how you do it myself. 

 

Try this: https://www.digitalocean.com/community/tutorials/how-to-install-ioncube-loader

 

And then use php -v

 

it should say something like:

root@test3 ~]# php -v
PHP 5.4.37 (cli) (built: Jan 21 2015 11:11:59) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
    with the ionCube PHP Loader v4.7.3, Copyright (c) 2002-2014, by ionCube Ltd.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...