Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Running two galleries on different servers with same albums

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 1 Integration View previous topicPrinter friendly versionView next topic
Author Message
dthiessen

Beginner
Beginner


Joined: May 17, 2003
Posts: 16
Location: Strathmore, Alberta, Canada

PostPosted: Tue Aug 05, 2003 12:41 pm    Post subject: Running two galleries on different servers with same albums Reply with quote

Alright, I have two webservers running. The first one just hosts my photo gallery and is on my windows box. It runs on port 81. The second box (the main one) runs the entire website (nuke 6.7) and runs Redhat 9. I want the same gallery to run on both machines but I don't want to have to mirror all my pictures (around 5000 that are all very high quality).

What I have done is to share out my albums folder from my windows box and then i map it using samba on my linux box. Keep in mind that the only thing i'm mapping out is my albums. Everything else is still seperate for both machines. After this i set up my config file and everything and this is where i run into problem #1. First the wizard tells me that I don't have Read/Write permissions set on my albums folder. So I go and telnet in and check and I have full Read/Write permissions. I figured that this is just a glitch in the wizard considering i'm mapping from a windows box, so I went in and manually configured the config.php and secured it. Now..i can see my gallery from linux box and everything seems to be working ok but I get an error.

Code: › Warning: fopen(/var/www/html/albums/Jean/photos.dat.0): failed to open stream: Permission denied in /var/www/html/modules/gallery/platform/fs_unix.php on line 53


It seems that I only get this error the very first time I go into an album...but that's about where i'm at right now. If I could get this working it would be really neat. Any help would be appreciated. If i'm lacking any info just tell me and I will post it. I think it's a permission issue though.
----
http://thehub.sytes.net/modules/gallery [sytes.net] (deactivated in nuke right now)
Gallery version:1.3.4-pl1
Apache version:2.0.46
PHP version (don't just say PHP 4, please):4.3.2
Graphics Toolkit:ImageMagik
Operating system:Linux Redhat9/Windows 2K Adv. Srv.
Web browser/version (if applicable): IE6[/code]
Back to top
Offline View user's profile Send private message Visit poster's website MSN Messenger
AdBot
   Post subject: Running two galleries on different servers with same albums  

Back to top
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6276
Location: Washington Township, NJ, USA

PostPosted: Tue Aug 05, 2003 1:04 pm    Post subject: Re: Running two galleries on different servers with same alb Reply with quote

hmm....i'd double check the permissions on the samba shared folder and on the windows folder that it points to (ie, make sure it isn't read-only, and, if possible, enable write permissions for everyone) . this is an interesting setup that i've not come across before. please post the results here.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
dthiessen

Beginner
Beginner


Joined: May 17, 2003
Posts: 16
Location: Strathmore, Alberta, Canada

PostPosted: Tue Aug 05, 2003 6:54 pm    Post subject: Re: Running two galleries on different servers with same alb Reply with quote

Well I was using this command to map out the share but I might be doing something wrong. I'll double check my permissions though.

Code: › mount -t smbfs -o username=webserver,password=*****,rw //server/albums /var/www/html/albums


I'm pretty sure that should give me write permissions but i could be wrong. I did try to chmod the share from linux but all i got was a bunch of garbage errors. Does anyone know where I can find a good forum to post questions about Samba in.

BTW thanks for setting up this great site.
Back to top
Offline View user's profile Send private message Visit poster's website MSN Messenger
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6276
Location: Washington Township, NJ, USA

PostPosted: Tue Aug 05, 2003 7:39 pm    Post subject: Reply with quote

you can check the Gentoo forums at forums.gentoo.org . they'll be more than happy to help you out (even if you do use redhat Wink )...
but before you post, make sure you search their forums first.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
dthiessen

Beginner
Beginner


Joined: May 17, 2003
Posts: 16
Location: Strathmore, Alberta, Canada

PostPosted: Tue Aug 05, 2003 7:58 pm    Post subject: Re: Running two galleries on different servers with same alb Reply with quote

Alright, I just got everything working. It seems that only root had read/write access and not any other account. I quickly fixed it using the FMASK argument in Samba. Thanks for the help. The only thing I noticed is that there is a difference in speed on my linux box. Now all I have to do is install some of the excellent blocks from this site.

Code: › mount -t smbfs -o username=dthiessen,password=*****,fmask=777,rw //server/albums /vaar/www/html/albums


Hope someone finds this info helpful in the future.

btw my website is http://thehub.sytes.net [sytes.net] if you want to take a look at the gallery running on port 80 and http://hubgallery.sytes.net [sytes.net] is the gallery running on port 81 on a different server.
Back to top
Offline View user's profile Send private message Visit poster's website MSN Messenger
dthiessen

Beginner
Beginner


Joined: May 17, 2003
Posts: 16
Location: Strathmore, Alberta, Canada

PostPosted: Tue Aug 05, 2003 9:56 pm    Post subject: Re: Running two galleries on different servers with same alb Reply with quote

And just when I thought everything was working good a error pops up. So close too...

I get the error when I try to search for something in my gallery but it only doesn't work on the linux server. On my windows one it works fine.

Code: › Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 43 bytes) in /var/www/html/modules/gallery/classes/Album.php on line 436


It works here: http://hubgallery.sytes.net [sytes.net]
It doesn't work here: http://thehub.sytes.net/modules.php?name=gallery [sytes.net]
Back to top
Offline View user's profile Send private message Visit poster's website MSN Messenger
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6276
Location: Washington Township, NJ, USA

PostPosted: Wed Aug 06, 2003 7:18 am    Post subject: Re: Running two galleries on different servers with same alb Reply with quote

could be the MAXFILESIZE arguement (or something along those lines) in PHP. i think it maxes out at 8MB, but you can tweak it to allow more. the gallery forums may have more insight into this issue. (we're trying to get a dump of their nuke forum over here for users to search).
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
dthiessen

Beginner
Beginner


Joined: May 17, 2003
Posts: 16
Location: Strathmore, Alberta, Canada

PostPosted: Wed Aug 06, 2003 3:48 pm    Post subject: Re: Running two galleries on different servers with same alb Reply with quote

It is the Maxfilesize variable but even if I bump it up it still won't work. I think the gallery is just a bit too large to be searching through a network. I set the variable to double the default and still the same thing so I just diabled the search. It's not that big of a deal.
Back to top
Offline View user's profile Send private message Visit poster's website MSN Messenger
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6276
Location: Washington Township, NJ, USA

PostPosted: Wed Aug 06, 2003 3:58 pm    Post subject: Reply with quote

this is interesting though, and you may want to post it over on the gallery forums for them to take a look at.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
dthiessen

Beginner
Beginner


Joined: May 17, 2003
Posts: 16
Location: Strathmore, Alberta, Canada

PostPosted: Wed Aug 06, 2003 7:04 pm    Post subject: Re: Running two galleries on different servers with same alb Reply with quote

Well it's not a gallery problem really...the program is not made to read all the album data off a mapped drive on another computer. Especially when the gallery is several thousand pictures.
Back to top
Offline View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 1 Integration View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

6th year online! 2003-2008
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia