I am running on Ubuntu server box. The command given in the setup for the cron job was su www-data -c "php ../TimeTrex/classes/.../cron.php"> /dev/null > 2 &1. I was getting the Maintenance Not Ran error after logiing in two days after installation. When I tried running it from the command line it said file not found. I found the cron.php in the maint directory and changed the path to the file. I get this:
LibClamAV Error: cl_loaddbdir(): Can't open directory /var/lib/clamav
PHP Warning: cl_loaddbdir: Unable to open file or directory
in Unknown on line 0
PHP Warning: Unknown(): Unable to initialize module 'clamav' in Unknown on line 0
Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/swiftbo/public_html/TimeTrex/classes/modules/core/Environment.class.php on line 30.
Please help
Maint not running Linux
What is the actual command you ran?
Also I have no idea what the ClamAV errors are about:
Looks like an approximation, but not the actual command, since it is invalid anyways.su www-data -c "php ../TimeTrex/classes/.../cron.php"> /dev/null > 2 &1
Also I have no idea what the ClamAV errors are about:
They have nothing to do directly with TimeTrex, as ClamAV is an antivirus utility. It looks as though Ubuntu has a PHP ClamAV extension that you can install, which appears to be broken on your system, so I would try removing it. "php-clamav" is the Ubuntu package name I believe.LibClamAV Error: cl_loaddbdir():
Cron job
I removed php-clamav. What is the correct command for the cron.php job? When I run su www-data -c "php ../TimeTrex/maint/cron.php" I get an error like what appeared before, Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/swiftbo/public_html/TimeTrex/classes/modules/core/Environment.class.php on line 30.
Try running:
and make sure that the PHP version is in fact v5.x. That error usually means you are running PHP v4.
Code: Select all
php -v
Maintenance not running Linux
Thanks again for the help. I had to install php5-cli for php to use version 5 from the command line. Hopefully this may help others if they encounter this problem.