Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

374
Views
storage\logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied

I have developed my application in Laravel 8, it's working fine in localhost and Linux server. But When I deployed it in Plesk Windows Server it's showing permission denied error.

UnexpectedValueException The stream or file "C:\inetpub\vhosts\rcns.edu.pk\Admission.rcns.edu.pk\storage\logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied

I cannot run such commands in SSH because my sever PLesk is windows server.

What should I do now?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Use this command it's works in my case

sudo chmod -R ugo+rw storage

the solution from: https://laracasts.com/discuss/channels/laravel/laravel-the-stream-or-file-storagelogslaravellog-could-not-be-opened-in-append-mode-failed-to-open-stream-permission-denied?page=1&replyId=724250

over 4 years ago · Santiago Trujillo Report

0

if you are using ubuntu, you can give the permission by running this command,

sudo chmod -R ugo+rw storage

It works fine for me. Hope this would help.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!