I am able to access the PHP page in the web browser without error and works. (error display active)
But when I want to access the PHP page via SSH I get some errors.
PHP Warning: include_once(/app/config.php): failed to open stream: No such file or directory in /home/example/public_html/app/cron/cronMin.php on line 7
SSH Command:
/usr/local/cwp/php71/bin/php -d max_execution_time=18000 -q /home/example/public_html/app/cron/cronMin.php
cronMin.php
:
<?php
use Carbon\Carbon;
ini_set('memory_limit', '3G');
ini_set('max_execution_time', 180);
include $_SERVER['DOCUMENT_ROOT'] . '/app/config.php';
...
What is the reason for this?
PHP 7.4 - Apache, Nginx, and Varnish