Wave 500 Error on local machine (Ubuntu 21.10) using NGINX PHP8.0


Jan 17th, 2022 05:32 AM

I have successfully installed Wave on my local machine and it is mostly working. I can view the site, login, and change settings. However, when I attempt to upload an image (change the logo) I get 500 Server Error. I am attempting to upload an SVG, but apparently I get a 500 error with a png and a jpg as well.

I thought this was due to bad permissions. So I did the following:

Set the ownership of the laravel project as user and group to the NGINX user:

sudo chown -R my-user:www-data /var/www/laravel-root/

Set the permissions for the user and NGINX server:

sudo find /var/www/laravel-root/ -type f -exec chmod 644 {} \;
sudo find /var/www/laravel-root/ -type d -exec chmod 775 {} \;

Give NGINX user read and write permissions to the storage, cache and other directories:

sudo chgrp -R www-data /var/www/laravel-root/storage
sudo chmod -R ug+rwx /var/www/laravel-root/storage

The above suggestions were from this thread, but the above did not solve my problem. (it probably needed to be done anyway though)

I am fairly new to Laravel, so any help would be appreciated.


Jan 17th, 2022 05:37 AM

Update: So I wasn't aware that there was a laravel.log (/var/www/laravel-root/storage/logs/laravel.log)

I checked that and apparently I have an error:

[2022-01-17 13:31:09] local.ERROR: GD Library extension not available with this PHP installation. {"userId":1,"exception":"[object] (Intervention\Image\Exception\NotSupportedException(code: 0): GD Library extension not available with this PHP installation. at /var/www/laravel-root/vendor/intervention/image/src/Intervention/Image/Gd/Driver.php:19)

I'm going to go down this rabbit hole and see what I can do to resolve the issue.


Jan 17th, 2022 05:46 AM

Ah ha! I have partially fixed it. I can now upload a JPG or a PNG, but not an SVG. Here's how I got this far:

Install the GD Library

sudo apt-get install php8.0-gd

Restart NGINX

systemctl reload nginx

Now I am able to upload images (jpg|png) but not SVG. I still get a 500 error when uploading an SVG. :(

How do I allow SVG's to be used for my logo?


Jan 17th, 2022 05:54 AM

As a temporary fix: I can just edit the theme template so that the logo is hard-coded instead of uploading it via the GUI.

If anyone knows how to allow SVG uploads, please let me know.


Jan 17th, 2022 07:26 AM

Hi there,

Which upload breaks with an SVG exactly? The profile picture? The admin icon? Favicon? Some information on which upload breaks would be nice. 🙂


Jan 17th, 2022 07:42 AM

Best Answer

After looking it up, it seems to be an issue with Voyager, the admin panel Wave uses and not Wave itself. There's an issue open on the Voyager GitHub about not being able to upload SVGs.


Jan 17th, 2022 11:53 AM

Sorry for not specifying. I was specifically talking about the logo upload for site settings, but apparently all do not work as you pointed out via the Voyager Github issue.

Thanks for link. I'll track that issue on GitHub.