sirfpsycho
Chevereto Member
Hello, I am using cron on nginx based server. I have added cron with this command:
/www/server/php/74/bin/php /www/wwwroot/data/domain.com/cli.php -C cron
I don't know above command is ok or not. In whmcs when I use cron then there is -q after php like this:
/www/server/php/74/bin/php -q /www/wwwroot/xxx/pip.php
so is it necessary to add -q here too or it is fine without it?
++++++ After executing cron it gives below log:
Aw, snap! Internal Server Error [debug @ error_log]
** errorId #1d6ae7738b417438 **
Stack trace:
#0 unknown file(unknown line): G\errorsAsExceptions()
#1 /www/wwwroot/data/domain.com/app/htaccess-enforce.php(33): file_put_contents()
#2 /www/wwwroot/data/domain.com/app/cron.php(112): include('/www/wwwroot/data/domain.com/app/htaccess-enforce.php')
#3 /www/wwwroot/data/domain.com/app/cron.php(32): checkHtaccess()
#4 /www/wwwroot/data/domain.com/app/loader.php(233): require_once('/www/wwwroot/data/domain.com/app/cron.php')
#5 /www/wwwroot/data/domain.com/cli.php(36): include_once('/www/wwwroot/data/domain.com/app/loader.php')
Here I replaced my domain with domain.com
As I am using nginx so there is no htaccess and in this log there is htaccess word and other error too. Are these error ignorable?
/www/server/php/74/bin/php /www/wwwroot/data/domain.com/cli.php -C cron
I don't know above command is ok or not. In whmcs when I use cron then there is -q after php like this:
/www/server/php/74/bin/php -q /www/wwwroot/xxx/pip.php
so is it necessary to add -q here too or it is fine without it?
++++++ After executing cron it gives below log:
- Processing removeDeleteLog
- Processing storageDelete
- Processing tryForUpdates
- Processing checkHtaccess
- Enforce .htaccess files
Aw, snap! Internal Server Error [debug @ error_log]
** errorId #1d6ae7738b417438 **
At /www/wwwroot/data/domain.com/app/htaccess-enforce.php:33> ErrorException [0]: file_put_contents(app/.htaccess): failed to open stream: No such file or directory
Stack trace:
#0 unknown file(unknown line): G\errorsAsExceptions()
#1 /www/wwwroot/data/domain.com/app/htaccess-enforce.php(33): file_put_contents()
#2 /www/wwwroot/data/domain.com/app/cron.php(112): include('/www/wwwroot/data/domain.com/app/htaccess-enforce.php')
#3 /www/wwwroot/data/domain.com/app/cron.php(32): checkHtaccess()
#4 /www/wwwroot/data/domain.com/app/loader.php(233): require_once('/www/wwwroot/data/domain.com/app/cron.php')
#5 /www/wwwroot/data/domain.com/cli.php(36): include_once('/www/wwwroot/data/domain.com/app/loader.php')
Here I replaced my domain with domain.com
As I am using nginx so there is no htaccess and in this log there is htaccess word and other error too. Are these error ignorable?