skip to Main Content

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:inetpubvhostsrcns.edu.pkAdmission.rcns.edu.pkstoragelogs/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?

2

Answers


  1. I have solved this problem by deleting this file

    storage/logs/laravel.log
    

    After deleting this file I have run the command

    php artisan optimize:clear
    

    -> this command will remove all cache those have on your system

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search