Jump to content

Cron can't work with plesk


Kian

Recommended Posts

Hi all

 

I've problem with cron.php. With plesk i set cron job but i receive back this email

Site error: the file <b>/var/www/vhosts/blabla.net/httpdocs/admin/cron.php</b> requires the ionCube PHP Loader ioncube_loader_lin_5.1.so to be installed by the site administrator.

If i use external cron job service it works simply using this url

I've 2 questions

 

1) How to make cron works with plesk crontab?

2) If i go to http://blabla.net/admin/cron.php cron is exechuted... i'm questioning on the fact that everybody can do the same :shock: how to secure cron.php file? Maybe i can change cron.php to cron8236.php. Can it works?

Link to comment
Share on other sites

Speak to your host/provider about getting that ioncube error fixed (assuming you don't manage the server yourself).

 

As for renaming the file that runs, that should be no problem, I believe. As long as the cron points to the new name...but you should probably be restricting internet access to the admin folder anyway, either through renaming it (see security steps in the WIKI) or via htaccess, or both.

Link to comment
Share on other sites

Thank you for reply me now i'm goint to contact my provider. About security of Admin folder i've a problem

Malicious users who visit your site and recognise a WHMCS install will know that they can try logging into your admin area via the admin folder. To protect against this, you can rename the admin folder name to any name you like. You cannot move the folder - only rename it. You can then tell WHMCS what the name of that folder is for the links in admin notification emails by adding the following line to your configuration.php file:

 

$customadminpath = "myadminname";

 

Replace "myadminname" above with the new name you just gave to your admin folder.

Ok, no problem

Also remember to reissue your whmcs license after doing this, otherwise, you will be unable to login to your admin area. To do this, login to your client area at http://www.whmcs.com/clients, click on 'My Licenses', click on the edit icon next to your license and then on the 'Reissue License' button.

 

Finally, if you have already created a cron job, or one has been created for you, you will need to update the path on the cron as well.

 

Example: php -q /home/mylogin/public_html/secure/myadminname/cron.php

What? :shock: i don't understand what i've to do with my license :? Can you please explain me this step?

Link to comment
Share on other sites

ioncube-encoded-file.php

This file has been successfully decoded. ionCube Loaders are correctly installed.

ioncube-loader-helper.php

An ionCube encoded file has been loaded successfully.

My provider told me that ioncube is available

zend_extension = /usr/lib/php5/ioncube_loader_lin_5.1.so

 

So WHY it doesen't work? :?

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