wesways Posted December 28, 2015 Share Posted December 28, 2015 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 0 Quote Link to comment Share on other sites More sharing options...
MJHost Posted December 28, 2015 Share Posted December 28, 2015 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? 0 Quote Link to comment Share on other sites More sharing options...
wesways Posted December 28, 2015 Author Share Posted December 28, 2015 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 0 Quote Link to comment Share on other sites More sharing options...
wesways Posted December 28, 2015 Author Share Posted December 28, 2015 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 0 Quote Link to comment Share on other sites More sharing options...
MJHost Posted December 28, 2015 Share Posted December 28, 2015 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? 0 Quote Link to comment Share on other sites More sharing options...
wesways Posted December 28, 2015 Author Share Posted December 28, 2015 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/'; 0 Quote Link to comment Share on other sites More sharing options...
wesways Posted December 28, 2015 Author Share Posted December 28, 2015 sorry my reply is also waiting for moderator approval basicly yes all files have been edited correctly - - - Updated - - - I have also checked the crons to ensure any paths where edited correctly 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted December 28, 2015 Share Posted December 28, 2015 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 0 Quote Link to comment Share on other sites More sharing options...
wesways Posted December 28, 2015 Author Share Posted December 28, 2015 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 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted December 28, 2015 Share Posted December 28, 2015 so this is the admin folder? /public_html/wesley/ 0 Quote Link to comment Share on other sites More sharing options...
wesways Posted December 28, 2015 Author Share Posted December 28, 2015 yes that's the admin folder 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted December 28, 2015 Share Posted December 28, 2015 yes that's the admin folder If you use WHMCS v6+ no need to move to use the cron.php from the /cron folder instead, the one in admin folder is no longer supported. 0 Quote Link to comment Share on other sites More sharing options...
wesways Posted December 28, 2015 Author Share Posted December 28, 2015 so all I have to do is change the paths with the crons that are pointing to the one in the admin folder to point to the ones in the modified crons folder path? 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted December 28, 2015 Share Posted December 28, 2015 so all I have to do is change the paths with the crons that are pointing to the one in the admin folder to point to the ones in the modified crons folder path? yes simply 0 Quote Link to comment Share on other sites More sharing options...
wesways Posted December 28, 2015 Author Share Posted December 28, 2015 thank you for all your help 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.