Ubuntu gallery config / permissions / argh...

CJ00TA

Joined: 2010-03-31
Posts: 34
Posted: Tue, 2013-10-29 13:56

Wasn't sure if I should post here or in the other sub forum... I'll start here.

After I upgraded to 3.0.9 and Ubuntu 12.04.3 I started to have (Ubuntu) user issues.

Basically, the root of my issue is that album thumbnails aren't being created.

I have my user (I'll call it CJ) and then the www-data user on the box.

File permissions:

Website CJ drwxrwr-x 777
-Gallery3 CJ drwxrwr-x 777
--var CJ drwxrwr-x 777
---thumbs CJ drwxrwr-x 777
----Album1 CJ drwxrwr-x 777
----Album2 www-data drwxr-xr-x 755
-----all files inside www-data drwxr-xr-x 755

So.. I work it where I'm creating albums from gallery3 (obviously) and those are the permissions that have come out from the system.
If I putty in and change the permissions to Album2 (make it CJ) and all the files inside, I can manually create a thumbnail and re-upload it and make the thumb work.

My question is... how to I force gallery use my CJ username?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2013-10-29 22:45

Why?
i would think that the www-data user on the box would be better. Just give that user permissions for the website directory.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
CJ00TA

Joined: 2010-03-31
Posts: 34
Posted: Tue, 2013-10-29 22:50

It appears that gallery doesn't have enough permissions to do what it wants to do with the www-data user?

When I shell in and change the folders that are being created as www-data to the CJ user, things work fine...

Currently, my website folder - /var/www/domain.com is cj / cj (owner, group)

 
CJ00TA

Joined: 2010-03-31
Posts: 34
Posted: Tue, 2013-10-29 22:53

I could move *everything* recursively over to www-data and try... but I don't think that will work.

thoughts?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2013-10-29 23:06
Quote:
thoughts?

Nothing from me. I would think that the www-data user should have permissions to the /var/www/domain.com directory.

Quote:
gallery doesn't have enough permissions to do what it wants to do with the www-data user?

Gallery is just PHP so whatever the php user runs as should work.

This is more of a question to the server experts in the community and chroot jails.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
CJ00TA

Joined: 2010-03-31
Posts: 34
Posted: Tue, 2013-10-29 23:29

So, I moved everything over to www-data...

Still seems to be working... except it's still not creating album thumbs. All I get is the default gallery image

http://www.2000transam.com/gallery3/var/thumbs/CTS-V/Test5/.album.jpg?m=1383089311

 
CJ00TA

Joined: 2010-03-31
Posts: 34
Posted: Tue, 2013-10-29 23:13

No errors in the log files about not being able to create or read the files that I uploaded to a new folder...

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2013-10-30 02:14

You need apache to run under your username - still

-s
________________________________
All New jQuery Minislideshow for G2/G3