Change data directory
SOGJC
Joined: 2013-11-07
Posts: 3 |
![]() |
Hello Everyone Thanks |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
http://codex.galleryproject.org/Gallery3:FAQ#I_want_to_move_my_.2Fvar_directory Dave |
|
SOGJC
Joined: 2013-11-07
Posts: 3 |
![]() |
Thanks for reply, |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Perhaps it is a server setting preventing it from working. One one of my hosts I was not able to do it either. I did not pursue seeing waht the issue was as I have enough space on this host and location. Dave |
|
SOGJC
Joined: 2013-11-07
Posts: 3 |
![]() |
Yes i install gallery first, then change the var/ path to the directory i want but it just get stuck like a new installation. Thanks |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
I looked at this last night and I think there is more to change to make it work. I will investigate a bit more this weekend. Dave |
|
robert12
Joined: 2014-01-02
Posts: 2 |
![]() |
Be sure to give the respective permissions to the folder, give 777 permission to the folder if it does not work well then contact support your hosting provider to help resolve this, another good idea is to also seek help elsewhere or look youtube tutorials where on many occasions to explain how to solve this problem |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
In addition to the index.php change from the FAQ you need to edit a couple of functions in the items model. Edit gallery3/modules/gallery/models/item.php public function file_url($full_uri=false) { $relative_path = "var/albums/" . $this->relative_path(); and change var/albums/ as needed. find: public function thumb_url($full_uri=false) { $cache_buster = $this->_cache_buster($this->thumb_path()); $relative_path = "var/thumbs/" . $this->relative_path(); and change var/thumbs/ as needed. find: public function resize_url($full_uri=false) { $relative_path = "var/resizes/" . $this->relative_path(); and change var/resizes/ as needed. Dave |
|