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
Solved

Unable to install Waves on Ubuntu

Solved
creatorofcontents

Oct 9th, 2022 07:01 AM

I'm trying to install Waves on an Ubuntu webserver allocated in an AWS EC2.

From a fresh Ubuntu installation I installed apache2 and php8.1 with the extensions required. Then, I installed compose and modified my apache web server to point to the folder where I cloned saas. Moreover, I also added user www-data to the same group as my ubuntu user. Finally, I created my database and follow the 4 steps at https://github.com/thedevdojo/wave.

After performing these operations I didn't had any error. And if I try to enter to my IP assigned by AWS for my EC2 I can see the splash default screen (like in video 1. Installing Wave in https://devdojo.com/wave?videos=true at minute 2:17. Even the image on the right is showing correctly.

However, if I click at any link that goes to a different url, like docs, sign up or sign in, or if I put myip/admin, I get a 404 error. What's going on?

This is my config for apache in case you need it:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName myweb
    ServerAlias www.myweb
    DocumentRoot /home/ubuntu/website/public
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    <Directory /home/ubuntu/website/>
        Options +FollowSymLinks
        AllowOverride All
        Order allow,deny 
        Allow from all
        Require all granted
    </Directory>
</VirtualHost>
bobbyiliev

Oct 9th, 2022 08:47 AM

Best Answer

Hi there,

You need to make sure that Apache mod rewrite is enabled in order for the sub pages to work:

sudo a2enmod rewrite

And then restart Apache.

Let me know how it goes!

Best,

Bobby

creatorofcontents

Oct 10th, 2022 01:28 AM

Works nice! Thank you!

Can I ask you another question am I curious about? Should I do something related with files/folders permissions? I mean I just downloaded and executed the commands present in the github, but I'm not sure if I should change any file/folder permissions just for security porpoises of displaying this website publicly.

bobbyiliev

Oct 11th, 2022 01:18 AM

Hi there,

Do you get any permission errors in your logs?

Usually your webserver, should have access to the following directories:

storage/framework/sessions
storage/framework/views
storage/framework/cache

So you could change the group to www-data which should be the default user that the Apache service is running with, and then set the permissions of those directories to 775.

The rest of the files could be owned by your own user so you could make changes to them when deploying new changes.

Best,

Bobby