crushedcoder
2 months ago

Permission error on installation of Vagrant/Homestead laravel on storage folder

Posted 2 months ago by crushedcoder

I did all permission command but still i got the storage permission error. please help

/home/vagrant/code/PhoneParLoan/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php

        }
 
        return;
    }
 
    private function createDir()
    {
        // Do not try to create dir if it has already been tried.
        if ($this->dirCreated) {
            return;
        }
 
        $dir = $this->getDirFromStream($this->url);
        if (null !== $dir && !is_dir($dir)) {
            $this->errorMessage = null;
            set_error_handler(array($this, 'customErrorHandler'));
            $status = mkdir($dir, 0777, true);
            restore_error_handler();
            if (false === $status && !is_dir($dir)) {
                throw new \UnexpectedValueException(sprintf('There is no existing directory at "%s" and its not buildable: '.$this->errorMessage, $dir));
            }
        }
        $this->dirCreated = true;
    }
}
 

Arguments

"There is no existing directory at "/home/ajeet/code/PhoneParLoan/storage/logs" and its not buildable: Permission denied"

Please sign in or create an account to participate in this conversation.