Fresh install Issue
I have installed wave a number of times, all successfully. I got a new MacBook annnd....
- Used brew to install Apache and MySql
- followed the installation instructions for Wave to the T. In fact, had an issue, so I scrapped everything, started over and did it even more carefully.
Env: macOS, iTerm, Apache and MySql via Homebrew. APP_URL=http://localhost:8080/wave/public
Issue: I am able to go to localhost:8080/wave/public and see the home page with the exceptions:
- Login and register links result in a 404 for the URL: http://localhost:8080/wave/public/login
- All "Feature" icons do not appear. They are trying to load at (for example) http://localhost:8080/themes/tailwind/images/profile.png
- If I change the image url to http://localhost:8080/wave/public/themes/tailwind/images/profile.png then it loads fine.
So, it looks like I have a path configuration issue somewhere. Thoughts?
Extra credit: When I go to http://localhost:8080 it shows the directory. Is there a way to redirect to wave/public?
Thanks! Sean
If you're seeing a directory instead of the homepage then it sounds like your Apache web server isn't configured correctly.
Laravel applications use the public
directory as the entrypoint for web servers, not the project's directory root, so you'll want to make sure Apache uses that as its entry instead.
An alternative is to skip using Apache outright and use something like Laravel Valet, a development environment for macOS built and maintained by the Laravel team.
It has support for most PHP applications from WordPress, Statamic, Symfony, Drupal, and more. And of course, Laravel, which Wave is built with.
The installation for Valet is really simple, I've been using it for years without any major issues. And the best part is that it can give you local HTTPS with a single command.
EDIT: If you really want to use Apache - I've not used it in years and was never that good at it, but I guess you'd need to set your Directory Directive to point to your projects public
directory.
Hey there 👋
With Mac I would recommend just using Laravel Valet instead. It’s the best option for running Laravel apps locally.
You can follow the documentation on how to set it up:
https://laravel.com/docs/10.x/valet
It automated everything for you so you don’t have to do any manual configuration.
Let me know how it goes!
Hey there!
No problem at all! Let me know how it goes with Valet!