Codeigniter “require(./vendor/autoload.php): failed to open stream” error just if it is run by cronjob - not a composer problem apparently
问题 This is a consequent question of another one that can be found at Not working shared hosting cPanel cronjob under Codeigniter and it is worth to be asked apart. This is the context: codeigniter framework is used scheduler is defined as a controller and called by a cronjob the web server is a shared hosting managed with cPanel the cronjobs work properly if defined as pure PHP ones outside codeigniter the schedule controller if is called by the browser directly work fine: https:/