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

1.8K
Views
Unable to create lockable file - Laravel 8 & PHP 8

I'm stuck in a Laravel project, I've been using laravel a lot of years and never happened this.

I'm using Vagrant (as always) and only happens this with PHP 8, with other projects with php 7.X doesn't happen.

enter image description here

The USER and GROUP permisions are OK as always. I Ran chmod -R 777 storage and bootstrap/cache a lot of times. I ran all cache:clear.

I don't know why it's happening this.

Anyone had problems with Laravel and PHP 8?

Thanks!

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

I resolved it by providing owner permission to apache user:

chown -R apache:apache storage/framework
over 4 years ago · Santiago Trujillo Report

0

Please use the following commands:

  1. Clear your project's cache
cd /home/vagrant/code/project_folder_name
sudo php artisan cache:clear
  1. Give your folders proper permission
sudo chmod 775 /home/vagrant/code/project_folder_name
sudo chown -R vagrant:vagrant /home/vagrant/code/project_folder_name

Hopefully, it will solve your issue.

over 4 years ago · Santiago Trujillo Report

0

Can you please try with the given permission, as it should be on web server group www-data level as well?

Also, adding a link for your reference.

https://linuxhint.com/how-to-set-up-file-permissions-for-laravel/

sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
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!