Add product image on staging environment on AWS with ec2

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
tkristis
Posts: 12
Joined: 19 Oct 2017, 12:18

Add product image on staging environment on AWS with ec2

Post by tkristis » 19 Oct 2017, 17:37

Hi, we're trying to upload product image via admin dashboard on a staging environment on AWS with ec2.

We're using ubuntu 16.04, with the latest aimeos version, with PHP 7.0, and laravel 5.5.

I have issue when uploading new product image from local computer.
Error: Couldn't create directory "files/9/a", /var/www/html/app/vendor/aimeos/aimeos-core/lib/mwlib/src/MW/Filesystem/Standard.php:78

But I don't have this issue when uploading image to local laravel environment.

Anyone can show a way how to solve it?

SOLVED

Just needed to set permissions for public folder

Code: Select all

sudo chgrp -R www-data public

Code: Select all

sudo chmod -R ug+rwx public