error when changing from 777 to 755 and reserve in album
stevefu29
Joined: 2005-03-08
Posts: 3 |
![]() |
Hi Error |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
- did you change this 777->755 in the site admin view or manually in the filesystem without G2? |
|
stevefu29
Joined: 2005-03-08
Posts: 3 |
![]() |
Hi valiant thanks Warning: mkdir(/home/thanhsin/secure_photos/smarty/templates_c/%%755923654): Permission denied in /home/thanhsin/public_html/photos/modules/core/classes/GalleryPlatform.class on line 685 |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
can you check the owner and permissions of g2data, g2data/smarty and g2data/smarty/templates_c and post them here? |
|
stevefu29
Joined: 2005-03-08
Posts: 3 |
![]() |
Here they are g2data/smarty is 755 Even i changed them to 777 i still have the same error. My first installation i got same problem. thanks for your time |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
you provided only the permissions not the owner. who's the owner of these dirs? if you don't know how to get this information... ls -la in the shell if you have shell access |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
also check that every directory up to your g2data dir has an odd last permission (ie if any has 750 or 754 then this could also cause this error) |
|
darkknight
![]()
Joined: 2003-03-01
Posts: 40 |
![]() |
I had a similar problem. in beta 1, just after finishing the install and entering gallery... it seemed gallery failed to create the dir g2data/smarty and g2/data/smarty/templates_c I created them manuall it starts properly |
|
darkknight
![]()
Joined: 2003-03-01
Posts: 40 |
![]() |
seems that then it failed to create the g2data/sessions/ directory as well, i couldnt log in! i created them by hand and it is fine... |
|
darkknight
![]()
Joined: 2003-03-01
Posts: 40 |
![]() |
i feel like im spamming the board now. It seems to happen every time gallery needs to create a dir: Warning: fopen(/home/g2data/locks/0/6/6): failed to open stream: No such file or directory in /usr/local/apache/htdocs/gallery2/modules/core/classes/GalleryPlatform.class on line 341 Warning: Invalid argument supplied for foreach() in /usr/local/apache/htdocs/gallery2/modules/core/classes/FlockLockSystem.class on line 260 ---- |
|
darkknight
![]()
Joined: 2003-03-01
Posts: 40 |
![]() |
Ok, it works now. I re-ran the setup without deleting the g2data dir or dropping the database, and this time it has successfully created all the subdirectories (i think) |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
darkknight, G2 tries to make new directories quite often. So it will probably bomb again on you. However, I think you've got a different issue than the original topic poster so if this does recur, please post it in a new topic and we'll help you sort it out. |
|