skip to Main Content

Permission denied when require() calls another PHP file – Apache

I use require() from a PHP file(index.php) inside Document Root of Apache server. The PHP file is failing execution. The error thrown in apache's error_log is below PHP Fatal error: require(): Failed opening required '/root/new/test/public/../vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /root/new/test/public/index.php on line…

VIEW QUESTION

Php versions – Laravel storage returns FileNotFoundException But file exists

I want read file content in laravel 6, the file already exists but laravel return not found exception. This is my logs files directory: /var/www/html/myLaravelLab/storage/logs/laravel-2019-10-14.log $contents = Storage::get(storage_path('logs/laravel-2019-10-14.log')); Laravel return this error: IlluminateContractsFilesystemFileNotFoundException But file already exists! I want read…

VIEW QUESTION
Back To Top
Search