Jump to content

Cronjob not working on new server - IonCube loader needed, but is installed


hastla

Recommended Posts

Hi,

 

maybe someone can help me. I moved my site to a new VPS. Everything seems fine after installing IONCUBE loader into php.ini in etc/php5/apache2/ . I can see WHMCS is loaded.

 

I added to php.ini following:

 

zend_extension = /usr/lib/php/modules/ioncube/ioncube_loader_lin_5.2.so

 

 

 

After adding the cronjobs I had before, I saw that they are not working. I saw at the Cronjob-Mail and finally I saw that requires again ionCube PHP Loader - what is loaded (as it is needed for WHMCS to show up anything).

 

 

Error in cronjob-Mail:

 

Warning: realpath(): SAFE MODE Restriction in effect. The script whose uid is 10001 is not allowed to access /usr/lib/php5/20060613 owned by uid 0 in /var/www/vhosts/domain.com/httpdocs/billing/pipe/pipe.php on line 35 Site error: the file <b>/var/www/vhosts/domain.com/httpdocs/billing/pipe/pipe.php</b> requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator.

 

 

What can this be now? Any suggestions?

Thanks for helping me with that.

Link to comment
Share on other sites

You need to disable Safe Mode in your php configuration.

 

Hi John,

 

thank you for your answer. The problem is that I use Joomla 1.5, what need it. The funny thing is that on my own host everything seems to be fine. Now I have more controll over it, as I have a VPS.

 

What do you think, how I can make it running?

Link to comment
Share on other sites

Hi Sparky,

 

thank you too. I disabled safe-mode in php.ini, but it didn`t made any changes to cronjob-error. Same error after switching it off. See the output of php-info:

 

safe_mode Off Off

safe_mode_exec_dir no value no value

safe_mode_gid Off Off

safe_mode_include_dir no value no value

Link to comment
Share on other sites

And finally JWHMCS isn`t working with safe-mode = Off. I wrote it to dev. of JWHMCS. JWHMCS is a bridge between Joomla and WHMCS. I´m sure Steven from JWHMCS will get it run.

 

I turned Off safe mode and have same error in mail from cronjob like explained above.

Link to comment
Share on other sites

So my site works again, but not crpnjobs.

 

Safe-Mode = off

Ioncube installed and loaded

 

Error in cronjobmail:

 

Warning: realpath(): SAFE MODE Restriction in effect. The script whose uid is 10001 is not allowed to access /usr/lib/php5/20060613 owned by uid 0 in /var/www/vhosts/domain.com/httpdocs/billing/pipe/pipe.php on line 35 Site error: the file <b>/var/www/vhosts/domain.com/httpdocs/billing/pipe/pipe.php</b> requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator.

 

I get crazy, never had any problems before moving to a new server.

Link to comment
Share on other sites

create a txt file and name it php.ini with this in the contents

zend_extension = "/usr/local/ioncube/ioncube_loader_lin_5.2.so"

You may have to adjust the path to the loader to suit but in general this should work.

Once created upload the file (php.ini) to your billing/pipe directory and try it again.

Link to comment
Share on other sites

Hi Sparky,

 

no this method also fail - I get crazy; spending now hours with it and always getting same error. I uninstalled Ioncube and reinstalled it - nothing changed WHMCS run, ioncube is loaded, Safemode = Off, and I´m running out of ideas, why this cronjobs are not working.

 

Found now this thread, what has exactly the same problem. It seems his WHMCS-sys. is also running (=ioncube loaders installed).

 

http://sxi.sabrextreme.com/forum/viewtopic.php?id=80

 

Can I call this with curl or wget too? As wget-function is working well on admin-cronjob.

Edited by hastla
Link to comment
Share on other sites

Well the error still says that safemode in on and also says that the ioncube loader is required. The php.ini should have fixed that problem with ioncube.

If on WHM, have you re-compiled apache using easyappache3 and turned off safemode there?

 

I use Plesk 9.2.3 :(

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
Reply to this topic...

×   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated