davzie / laravel-bootstrap

[DEPRECATED] A Laravel 4, Bootstrap 3 CMS Built With SOLID Principles In Mind
Other
558 stars 171 forks source link

Write access for /public directory #9

Closed grayxr closed 10 years ago

grayxr commented 10 years ago

I was wondering how I would give this CMS write access to the public directory for image uploads for development. I'm having a difficult time trying to figure out why my images aren't being successfully uploaded locally, but in production they are.

davzie commented 10 years ago

Hi James. Your local web server may be running as a user / group that isn't the account you are logged in with.

Check it works if you do chmod -R 777 public/uploads

If it does then you need to look at what user and group your web server is running as and give the appropriate permissions to the folder. Don't leave it at 777 whatever you do though.

Dave On 27 Nov 2013 17:57, "James Gray" notifications@github.com wrote:

I was wondering how I would give this CMS write access to the public directory for image uploads for development. I'm having a difficult time trying to figure out why my images aren't being successfully uploaded locally, but in production they are.

— Reply to this email directly or view it on GitHubhttps://github.com/davzie/laravel-bootstrap/issues/9 .

grayxr commented 10 years ago

There wasn't even a public/uploads directory until I made one myself. I'm not even sure this is such a big problem for me though, because I don't really feel the need to have the production content (like image uploads) synchronized with my local environment. I deployed my app to fortrabbit and i'm using environment variables and git, so i'm guessing something got messed up in that process. Thanks for the response!

Edit: Actually - now that I think about it I may want to have this functionality work locally because I want to implement the gallery functionality on the front-end and I want to develop that locally.

Does my situation (deploying to fortrabbit and using git) help at all inform you of my issue? I don't think it's a permissions issue.

grayxr commented 10 years ago

I should have read the logs.

The issue was that I needed to change the upload_max_filesize ini directive.