Hello, I was wondering if there is anyway to install multiple gallery's onto my server. I host multiple sites and a few of them want it. Is there a way to give them all there own individual gallery? Oh, and does anyone know if there are any gallery2 .deb packages?
Thanks!
----
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): astonia.arctichosts.com/gallery
Gallery version: 1.*
Apache version: 1.*
PHP version (don't just say PHP 4, please): PHP 4
Graphics Toolkit:
Operating system: Debian Linux
Web browser/version (if applicable):
Posts: 3236
You can put a copy of the /gallery/ directory in everyone's virtual host. You will also need to give them all their own /albums/ directory as well of course.
Posts: 13451
And there are no G2 .deb packages (yet). It's still in Alpha you know
Posts: 19
You mean just make a gallery directive in my apache.conf for each virtualhost? and then create a directory called albums in each users web direcotry?
Posts: 8194
There is no Gallery "directive" Just use a separate copy of Gallery, and a separate albums directory, for each user.
Posts: 13451
alindeman, there is in Debian.
Yeah, copy that part to the vhost config, if not all calls to /gallery, no matter which vhost, will redirect to the first installation from the debian packages.
Posts: 8194
Weird stuff!
Posts: 19
Right, thats what im getting now and its annoying... Do you know the what the directives are for debian by chance?
Posts: 13451
I don't know anything about Debian, really, but came across this on IRC last night
Posts: 19
so then all i need to do is amke a folder called albums in each users directory?
Posts: 13451
n3o_X, no, you will need to install the "official" gallery tarball from this site, in every users webdir.
Posts: 19
ok, then y do ineed to add the directive for /gallery/>?
Posts: 13451
You need it in each vhosts config, if not the one in httpd.conf overrides it and redirects all calls to /gallery to the debian install.
You also need to set the correct path in each vhosts config.
Posts: 19
Ok, this is what i have as my directives in my httpd.conf file:
ScriptAlias /gallery /usr/share/gallery
<Directory /usr/share/gallery>
and then I put the .tar.gz of gallery into the folder i wanted and decompressed. When i go to the gallery site that i have set up though, it still directs me to the main one i have.
Any Idea?
Posts: 13451
Sure, you need to add it to the vhosts too, or remove that redirect. Frankly, the best way to run multiple Gallery installs on a debian box, seems to be to not install it from the debian package in the first place.
Posts: 19
well, the scripalias stuff i posted above, is in the virtualhosts
Posts: 3236
The guy whos name I don't remember as I am typing this is dead to rights. Uninstall that debian package and remove any references to the /gallery dir from apache's config files or vhost files.
Once your vhosts are working properly, just untar a copy of the /gallery dir in EVERY single vhost and give EVERY single vhost its own /albums dir. This is the simplest way and requires no special configuration of directives, conf files or aliases.
Posts: 13451
fryfrog, that awful h0bbel guy?
Posts: 19
Lol, alright... another small quesiton... Im working on the /skel/ directory now, can i untar gallery there.. and whenever i create a new web user.. it will just move gallery to there folder? or will it mess it up?
Posts: 13451
if you move it, you move it. You can copy it, and re-run the config and then enter the correct paths in the config.
Posts: 19
Ok, so ive done all of this.... But im getting these errors:
Warning: Unknown(): open(/var/lib/php4/sess_2a751f841f8de107ba90a0c728ff756e, O_RDWR) failed: Permission denied (13) in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php4) in Unknown on line 0
Are these gallery errors or my php setup errors?
Posts: 19
Ok, sorry, got taht problem fixed.
Now, Another client wants gallery.... I only have one setup now and i just untarred the file into the first clients www folder. When i did the same to my other client and go to there website, im getting the other clients gallery....
?
Posts: 13451
And you still have the aliases and the debian package? That would explain it, I guess. Start from scratch with the tarball package from this site (you can keep already made albums)
Posts: 19
I did, no debian package ever touched this machine at all... its all tarball
Posts: 13451
Then something must be wrong either your vhost setup, or you didn't reconfigure the copied Gallery with the new URLs and paths.
Posts: 19
what do i need to add to the <virtualhost> settings in my httpd.conf?
Posts: 13451
The apache settings for that vhost. Mine looks like this:
Posts: 19
Yes, i have that.. my vhost looks like this:
<VirtualHost *:80>
DocumentRoot /home/kgirdler/www
ServerName kgdesigns.arctichosts.com
<Directory /home/arctichosts/www/cgi-bin>
Options ExecCGI -Indexes
SetHandler cgi-script
AddHandler cgi-script pl
</Directory>
ScriptAlias /cgi-bin /home/arctichosts/www/cgi-bin
</VirtualHost>
Now do i need to put a directive for gallery in there?
Posts: 19
Ok, it works now.. here is what i have now:
<VirtualHost *:80>
DocumentRoot /home/kgirdler/www
ServerName kgdesigns.arctichosts.com
<Directory /home/arctichosts/www/cgi-bin>
Options ExecCGI -Indexes
SetHandler cgi-script
AddHandler cgi-script pl
</Directory>
ScriptAlias /cgi-bin /home/arctichosts/www/cgi-bin
<Directory /home/chronic/www/gallery>
AllowOverride Options FileInfo
</Directory>
ScriptAlias /gallery /home/chronic/www/gallery
</VirtualHost>
Thanks for all the help!
Posts: 13451
Cool!