XAMPP Laravel Permission denied macOS Monterey

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

XAMPP Laravel Permission denied macOS Monterey

Postby ianasystems » 13. March 2024 20:40

I'm encountering an unexpected issue while working with XAMPP and Laravel on macOS Monterey. Every time I try to access my Laravel application, I'm getting the following error:

"UnexpectedValueException The stream or file "/Applications/XAMPP/xamppfiles/htdocs/ezonlinetools.com/components/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied "

This error is preventing me from accessing my Laravel application properly. Additionally, attempts to log files also result in permission denied errors.

Updated the Apache httpd.conf file to allow for virtual hosts and configured it to recognize my Laravel application's domain name (www.ezonlinetools.com).

In attempts to resolve the permission denied issue on my Laravel application hosted on XAMPP in macOS Monterey, I made several changes and troubleshooting efforts.
ianasystems
 
Posts: 2
Joined: 13. March 2024 18:51
XAMPP version: 8.1.0-0
Operating System: macOS Monterey

Re: XAMPP Laravel Permission denied macOS Monterey

Postby Nobbie » 14. March 2024 14:21

Thats not a Xampp issue, these are wrong / missing file permissions. You have to change the fiie permissions for the files (and folders) that Apache User (the User which is running Apache, i.e. "daemon" - or look at "User" setting in httpd.conf) may write to it.
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 42 guests