Jump to content

Secured whmcs and now I receive strange Cron emails


wesways

Recommended Posts

Hello I wonder if anyone can help I secured my Cron and admin folders I followed the instructions and now I receive the following emails instead of the normal Cron emails I have rechecked and paths and everything is correct

 

This proxy file is only valid when the crons directory is in the default location.

 

 

 

Please help thanks wes

Link to comment
Share on other sites

Hello I wonder if anyone can help I secured my Cron and admin folders I followed the instructions and now I receive the following emails instead of the normal Cron emails I have rechecked and paths and everything is correct

 

This proxy file is only valid when the crons directory is in the default location.

 

 

 

Please help thanks wes

 

What emails are you getting?

Link to comment
Share on other sites

That is the content of the email from whmcs that email normally contains the. Content of the whmcs Cron report but instead it contains that

 

The content of the email I will post below

 

 

 

This proxy file is only valid when the crons directory is in the default location.

 

As you have customised your crons directory location, you must update your cron commands to use the new path.

 

For more information, please see http://docs.whmcs.com/Custom_Crons_Directory

Link to comment
Share on other sites

Cron <xxxxxxxx.com> php -q /home/xxxxxxx/public_html/wesley/cron.php skip_raadomainreport skip_promoupdate skip_recurringupdate

 

- - - Updated - - -

 

My first reply is waiting for. Moderator to approve ?

 

- - - Updated - - -

 

And thank you for helping

 

Did you follow the docs as outlined here http://docs.whmcs.com/Further_Security_Steps#Move_the_Crons_Directory

 

Including editing both the config.php file within crons, and also the configuration.php file within your WHMCS installation root directory?

Link to comment
Share on other sites

Did you follow the docs as outlined here http://docs.whmcs.com/Further_Security_Steps#Move_the_Crons_Directory

 

Including editing both the config.php file within crons, and also the configuration.php file within your WHMCS installation root directory?

 

Yes please find Below both config files but with security information removed

Configuration file edit located in /public_html/ folder

<?php

$license = 'XXXXXXXXXXXXXXXXXXXXX;

$db_host = 'localhost';

$db_username = 'XXXXXXXXXXXXXXXXXXXXX';

$db_password = '.XXXXXXXXXXXXXXXXXXXXX';

$db_name = 'XXXXXXXXXXXXXXXXXXXXX';

$cc_encryption_hash = 'XXXXXXXXXXXXXXXXXXXXX';

$templates_compiledir = '/home/XXXXXXXXXXXXXXXXXXXXX/whmcsdata/templates_c/';

$mysql_charset = 'utf8';

$attachments_dir = '/home/XXXXXXXXXXXXXXXXXXXXX/whmcsdata/attachments/';

$downloads_dir = '/home/weswas5h/whmcsdata/downloads/';

$customadminpath = 'XXXXXXXXXXXXXXXXXXXXX';

$api_access_key = 'XXXXXXXXXXXXXXXXXXXXX';

$autoauthkey = 'XXXXXXXXXXXXXXXXXXXXX';

$crons_dir = '/home/XXXXXXXXXXXXXXXXXXXXX/whmcsdata/crons/';

 

 

 

Config File Located in /moved_directory/crons/

 

 

 

 

<?php

/**

* Custom Crons Directory Configuration

*

* This crons folder may be moved to any place above or below the docroot.

*

* We recommend locating it outside the docroot to prevent browser based access.

*

* Upon moving it, you must provide the path to your WHMCS installation to

* allow the cron task files to communicate with the parent WHMCS installation.

*

* To do this, rename this file config.php, then uncomment and enter the full

* path to the WHMCS root directory in the $whmcspath variable below.

*

* You must also provide the appropriate path to the crons folder in the

* $crons_dir variable inside the WHMCS master configuration file.

*

* For more information please see http://docs.whmcs.com/Custom_Crons_Directory

*/

 

$whmcspath = '/home/XXXXXXXXXXXXXXXXXXXXX/public_html/';

Link to comment
Share on other sites

I can see differences, are you sure you have updated the cron file path in cPanel -> Cron Job too?

 

php -q /home/xxxxxxx/public_html/wesley/cron.php skip_raadomainreport skip_promoupdate skip_recurringupdate

The cron file here is inside /wesley/ directory, but in your configuration.php the directory name is different:

 

$crons_dir = '/home/XXXXXXXXXXXXXXXXXXXXX/whmcsdata/crons/';

 

so in cPanel you need to make it like:

 

php -q /home/XXXXXXXXXXXXXXXXXXXXX/whmcsdata/crons/cron.php skip_raadomainreport skip_promoupdate skip_recurringupdate

Link to comment
Share on other sites

please find my crons below

 

0 0 * * * php -q /home/weswas5h/public_html/wesley/cron.php

0 0 * * * php -q /home/weswas5h/public_html/modules/addons/resellerclubmods_tools/cron/resellerclubmods_dompricesync.php 406672

 

0 0 * * * php -q /home/weswas5h/public_html/modules/addons/resellerclubmods_tools/cron/resellerclubmods_transfercheck.php 406672

 

0 * * * * php -q /home/weswas5h/public_html/wesley/cron.php skip_raadomainreport skip_promoupdate skip_recurringupdate

 

0 0 * * * php -q /home/weswas5h/public_html/wesley/cron.php skip_raadomainreport skip_promoupdate skip_recurringupdate

 

0 0 * * * php -q /home/weswas5h/public_html/modules/addons/resellerclubmods_tools/tools/authlogin.php

 

0 0 * * * /usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --backup --auto=1 --insid=144_70396

 

0 9 * * * php -q /home/weswas5h/public_html/wesley/cron.php affcommissions affreports backups cancelrequests ccexpirynotices ccprocessing clientstatussync closetickets domainrenewalnotices emailmarketing fixedtermterminations invoicereminders invoices latefees overagesbilling suspensions terminations updatepricing updaterates usagestats

 

0 9 * * * php -q /home/weswas5h/whmcsdata/crons/cron.php

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