PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Unsolved

Fresh install Issue

sottey

Jul 14th, 2023 11:18 AM

I have installed wave a number of times, all successfully. I got a new MacBook annnd....

  1. Used brew to install Apache and MySql
  2. 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

thinkverse

Jul 14th, 2023 12:03 PM

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.

bobbyiliev

Jul 14th, 2023 12:34 PM

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!

sottey

Jul 14th, 2023 12:40 PM

Thanks for the suggestions!

I updated my conf file to point to the wave/public dir which fixed the images under "Features", but the login and registration still 404.

I will try Valet. Thanks again for the help!

Sean

bobbyiliev

Jul 26th, 2023 11:22 AM

Hey there!

No problem at all! Let me know how it goes with Valet!