lithiumsystems Posted April 30, 2015 Share Posted April 30, 2015 Hi, I'm running the latest version of WHMCS on an in-house XAMPP server (server 2008). All working well including the nightly automaton task which I've scheduled using the Windows Task Scheduler. However, I can't get the domainsync.php file to run using the same method. When I try to run it from the command line I get the following errors: C:\xampp\php>php c:\xampp\htdocs\crons\domainsync.php Warning: main(..//init.php): failed to open stream: No such file or directory in C:\xampp\htdocs\crons\domainsync.php on line 0 Warning: main(..//init.php): failed to open stream: No such file or directory in C:\xampp\htdocs\crons\domainsync.php on line 0 Fatal error: main(): Failed opening required '..//init.php' (include_path='.;C:\ xampp\php\PEAR') in C:\xampp\htdocs\crons\domainsync.php on line 0 When I navigate to the domainsync.php file using a web browser it works as expected although this is a manual process and I'd love to get it working via a 4 hourly scheduled task. Does anyone have any ideas ? 0 Quote Link to comment Share on other sites More sharing options...
lithiumsystems Posted April 30, 2015 Author Share Posted April 30, 2015 Thought I'd update this myself. I managed to fix this by editing the config.php file located in the crons folder. I needed to update the path to the WHMCS folder within that file and once this was done the domainsync.php file worked properly. 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.