There seem to be a number of out-of-date instructions for setting up a cron job in my instance of Centos 7.6 and the current version of FileCloud: 184.108.40.20665.
The extension locations in the instructions don’t exist:
cannot access /etc/php/7.0/apache2/conf.d: No such file or directory
cannot access /etc/php/7.0/cli/conf.d: No such file or directory
cannot access /etc/php/7.0/cli/: No such file or directory
PHP extensions are located in /etc/php.d. The extensions for ioncube (20ioncube.ini) and mongo (mongodb.ini) are already there.
As instructed I added “extension=mongo.so” to php.ini but this resulted in an error: “PHP Startup: Unable to load dynamic library ‘mongo.so’” I have learned that the file “mongo.so” has been replaced by “mongodb.so”. There was a different problem when I added “extension=mongodb.so” to php.ini: “PHP Warning: Module already loaded in Unknown on line 0”. I ended up removing the extension declaration.
Another problem is that the location given for the cron script: “/var/www/core/framework/cron.php” doesn’t exist. I see something similar, so I’ve tried using it for the cron job: “/var/www/html/src/Core/Infrastructure/Cron/CronManager.php”.
The cron job fails now with this message (received in root mail):
Subject: Cron apache@filecloud php /var/www/html/src/Core/Infrastructure/Cron/CronManager.php
Content-Type: text/plain; charset=UTF-8
I’m hoping someone can straighten me out and help me get the FileCloud cron job to work. Thank you.