PDA

View Full Version : Installing Gallery 1.2.5 ???


komik
4-4-02, 05:01 PM
I am looking to install Gallery 1.2.5 on my website. I have been running the Slooze gallery but have found that I need more options. Has anyone set this up? If so are there any pitfalls or common problems installing this on Powweb. Also the thumbnail creation uses netpbm is this installed or can it be installed by me?

See Requirements @
Gallery 1.2.5 (http://www.menalto.com/projects/gallery/modules.php?op=modload&name=News&file=index)

komik
4-18-02, 06:28 PM
Just wanted everyone to know that it is possible to install Gallery 1.2.5 on Powweb. It has a been a bit of chore for me due to the lack of knowledge I have when it comes to installing programs. Anyways the site is almost done but the most part the gallery is installed and ready to start uploading pictures. If anyone is interested I have put together some notes on how to install this product on Powweb.

see if you like it......

My Photo Gallery (http://mwsandracing.com/gallery)

Mark

Beavis
4-29-02, 04:12 AM
This looks like something that I would use, and the configuratin looks a bit challenging.

Yes, please share the information with me. Either publicly here or send it to my e-mail address... matt@almgren.net

Thx

komik
5-1-02, 02:13 PM
I am working on a guide to installing the Gallery 1.2.5 on Powweb. Please be patient. I have currently overloaded my maximum capacity of things to do. I expect to have it completed by the 13th of May....

Thank
Mark

Beavis
5-28-02, 06:41 AM
Is it past May 13th yet ??

How's the guide coming ?

komik
5-28-02, 12:15 PM
Sorry for the delay. Just had a recent relative pass away and have not been able to work on it. I will try and finish it as soon as possible.

Mark

komik
5-30-02, 06:42 PM
I just threw my notes together to create a down an dirty guide. This may do for most. I was going to create a web page with graphics and the whole nine yards but just have not had the time to even come close to that. So I hope this helps those who are interested in this. I will address any question on how to install but as for how it works you guess is as good as mine.


Again Sorry for the DELAY.......

komik
5-30-02, 07:28 PM
Forgot to include the attachment.....I also have the file in htm format or doc format.....if this one is hard to read.. ....but I will need your emails since this does not allow anything but text files.

Beavis
6-6-02, 02:25 PM
Hey that looks great. I am in the process of configuring it locally, then will try it with PowWeb. One concern I have is: Once I get the local site configured, can I just upload the entire directory to PowWeb ? It seems that it will not work, as I have to add that PHP path to every PHP file.

What about if I make a copy of the gallery and Album directory on my local server, then change the properties of all the files in the dupe directories, then upload the dupe directories to the powweb servers. Will that work and still keep my existing pics and configuration?

I guess I just don't want to have to build the site locally, and then have to rebuild it after I upload it. Gallery is a bit time consuming uploading the pics... the gallery drag-n-drop tool works good, but I'm not sure how that will work on the powweb servers.

Any ideas ? Does that make sense what I am trying to do ?

komik
6-6-02, 02:36 PM
I first built the gallery locally on my computer at home first. But when you upload it has to have the #!/usr/local/bin/php at the top of each of the files I listed. Once you upload the php files and set the rights the rest is done through the web interface.

As for uploading the Albums and so forth I am not sure how Gallery knows where things are since there isn't a MYSQL database. All the information about the albums and galleries has to be stored in a flat file somewhere so I would imagine if you upload that too it should work. You may have to set the rights but other than that I don't see why you couldn't do that.

I get what your asking but not sure if this is the right answer. But I don't see why that wouldn't work. I have done all of my work on the powweb server. Which is not the best since it takes up a lot of your bandwidth when doing so.

If this work please post your results

Mark

Beavis
6-6-02, 05:13 PM
Ok, I will try that.

This is actually my first attempt at working wth PHP, so I have a question or two....

This line:
#!/usr/local/bin/php

Where in the name.php file does it go ??
It does not look like there is anything in any name.php file that has any path similar to that. Do I just search and replace those PHP files and place that line at the very top ??

For instance... in the following file:

<?
/*
* Gallery - a web based photo album viewer and editor
* Copyright (C) 2000-2002 Bharat Mediratta
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
?>
<?
// Hack prevention.
if (!empty($HTTP_GET_VARS["GALLERY_BASEDIR"]) ||
!empty($HTTP_POST_VARS["GALLERY_BASEDIR"]) ||
!empty($HTTP_COOKIE_VARS["GALLERY_BASEDIR"])) {
print "Security violation\n";
exit;
}
?>
<? require($GALLERY_BASEDIR . "init.php"); ?>
<?
// Hack check
if (!$gallery->user->canDeleteAlbum($gallery->album)) {
exit;
}

if ($confirm) {
$gallery->album->delete();
dismissAndReload();
return;
}

if ($gallery->album) {
?>

<html>
<head>
<title>Delete Album</title>
<?= getStyleSheetLink() ?>
</head>
<body>

<center>
<span class="popuphead">Delete Album</span>
<br><br>
Do you really want to delete this album?
<br>
<b><?= $gallery->album->fields["title"] ?></b>
<p>
<?= makeFormIntro("delete_album.php"); ?>
<input type=submit name=confirm value="Delete">
<input type=submit value="Cancel" onclick='parent.close()'>
</form>
<p>
<?
if ($gallery->album->numPhotos(1)) {
echo $gallery->album->getThumbnailTag($gallery->album->getHighlight());
}
} else {
error("no album specified");
}
?>

</body>
</html>



Do I just add that line to the very top, like this:


#!/usr/local/bin/php
<?
/*
* Gallery - a web based photo album viewer and editor
* Copyright (C) 2000-2002 Bharat Mediratta
*
* This program is free software; you can redistribute it and/or modify



or does it go someplace else in the code ?

thx - Matt

komik
6-6-02, 05:20 PM
Just add that to the top of each like the second one

<Do I just add that line to the very top, like this:


PHP:--------------------------------------------------------------------------------

#!/usr/local/bin/php
<?

Beavis
6-7-02, 12:10 AM
ok...we are making progress...I think

I added that line to the required files, removed 'myalbums.php' from those 3 files (1-1-3)

I am still getting the Error 500

But I did not understand this line:


******************************
**Uploading files to POWWEB **
******************************

The files to be uploaded are the entire gallery folder and the netpbm files.

Doesn't PowWeb already have the netpbm files? If not, where do I get them and where/how do I install them ?


Thx for helping out... I think we're almost there.

komik
6-7-02, 12:44 PM
Make sure that all the php files are set to 755 rights or you will get that error. Also make sure the files are loaded up as ASCII and not Binary this causes problems sometimes.

NO powweb does not have the netpbm libraries needed to run this gallery. You can get those files at the locations I listed in the help file.

netpbm files (http://sourceforge.net/project/showfiles.php?group_id=7130)

download the freebsd version to your hard drive. unzip it on your local disk and upload into your htdoc directory. If it does not create a netpbm folder create one on powweb and upload the binaries in 'Binary' mode.

Then when you run the configuration select that folder

Beavis
6-13-02, 03:27 AM
Not sure if you got my PMs....

I got it up and running, however I have one small problem. I need to get rid of those PHP path statements. What files do I edit to remove them. I don't have them in the 4 that you mentioned before.

- Matt

Take a look...
www.almgren.net/gallery

komik
6-13-02, 12:43 PM
I see that you downloaded version 1.3.....so they may have solved this problem..... I would just start removing the #!/usr/local/bin/php one at a time from the php files until they are all gone. If they don't cause that dreaded 505 error then your good to go......This was a huge trial and error thing for me. But mine is calling some extra php that is outside the program so mine guide is probably a little off.....Sorry about that

Mark

Beavis
6-18-02, 01:33 PM
OK, I figured out the problem (well, actually my roommate did.) There are some CSS files that were calling that path statement.

ALL IS WORKING NOW!!

Except...that gallery remote program. I am still trying to get that to work.

Thx for your help, Komik.

- Matt

komik
6-18-02, 02:01 PM
Hey no problem hope I actually was a help. I never got the Remote gallery working either. I should try and install it now but just haven't had the time.

TakeIT2
6-19-02, 02:30 AM
Hi,

I have tried, but no luck. I am trying to include it in PostNuke .714 install. I have seen it working, but no good documentation. I am going to retry it, so any hints or tips would be great.
(Some encouragement would be cool too:) )

Paul

komik
6-19-02, 01:41 PM
This should be easier now since the !#/usr/local/bin/php is no longer needed on the files.....not sure how it installs on the post nuke stuff....but sure it isn't that hard to do....The documentation from Gallery is actually very good. Just follow the instructions and I am sure you will have it up and running in no time.

Beavis
6-21-02, 04:39 AM
Well, I wouldn't say "no longer needed on the files" cause I did not remove it from the ALL the PHP files, just the ones that were being called by init.php (at least according to my roommate, that is how he fixed it.)

But by following Komik's instructions (to the T) and the setup instructions on Gallery's web site - you should not have too many problems.... there are people here that can help too.

Thx Again

Matt

komik
6-25-02, 01:26 PM
I haven't tried this yet but without the #!/usr/local/bin/php being required by powweb on the php files this should work. You should be able to just download the Gallery and netpbm unchanged to powweb now. The reason for the changes was because the albums.php was being called from another php script so if you had the #!/usr/local/bin/php in the header it would show up. But there were other areas of the program that linked to the albums.php and the #!/usr/local/bin/php was required so in order to not get the 500 error I had it link back to the index.php file. The reason for the deletion of album.php in some of the files.

So in theory you should be able to use the Installation instruction as supplied by Gallery.

Mark

Wade
12-21-02, 08:26 AM
I'm blue I have tried to install Gallery the lastest version as of today 12-20-2002. I have even read all the other posts on installing this program and still get the dreaded error 500. Does it have anything to do with the server? I am on io. I also downloaded the netpbm but since I get the error 500 from the get go....................
:(

What else can be tried? I really like the looks of Gallery and I'm to bullheaded to let this deter me :p

komik
12-21-02, 02:12 PM
check the directories and make sure they are all set to 755, and all the files.

Make sure you uploaded the files in the correct modes ASCII for text and Binary for other stuff like images.

Make sure the gallery is at the root level.


Other than that without seeing it I would just be taking a guess

Wade
12-22-02, 05:20 PM
I uploaded Gallery yet again. It is ver. 1.2.5 I found a site with older versions. Wanted to see if I could get at least this one running. I get to the "Start the Configuration Wizard" then upon clicking that I get the 500 message. :( It is in its own folder in htdocs. www.rettangel.com/gallery

komik
12-22-02, 05:57 PM
Make sure that all the files and folder have the 755 rights. This is the most common reason for the 500 error.

Wade
12-22-02, 06:45 PM
Yeah, I have everything set to 755. Also Gallery calls out for the empty config.php and empty .htaccess both set to 777. Still get the 500 error

komik
12-22-02, 08:56 PM
Have you checked the error log to see what the error is that it is throwing. Also where it say set setup to 0. Don't. Set it to 700. If you have already done so you need to contact an admin to correct it cause you can't.

Try putting the #!/usr/local/bin/php at the top of php file. We aren't supposed to need that anymore but the server your on might still need it.

macmankev
12-28-02, 10:06 PM
Okay. Thanks for the help with that little quide. I managed to set things up, BUT, when I try to load it still says that I'm in an insecure mode. I changed all the chmod settings and it still doesn't work. Is there something I did wrong? My gallery is at thekev.org/gallery (http://thekev.org/gallery) .

macmankev
12-28-02, 10:48 PM
I fixed everything. I went through all the chmod settings again and found my problem. My gallery works now. Thanks again for the installing guide.

komik
12-31-02, 04:43 PM
Glad that you got it working finally. Sorry that I wasn't much of a help. Hardly have time to get on here.


What exactly was the problem. That way other know what to look for.

Wade
12-31-02, 05:44 PM
Got my Gallery working finally too. I don't know what it was, but one night I'm getting the error 500 and the next morning it went thru with no problem. Unless my e mail to customer support about not being able to turn on my frontpage extensions fixed it. Kudos to Powweb support for the fast fix on that by the way:). Didn't expect my frontpage problem to be fixed that fast.

But monday morning my gallery installation worked. Now to get the pictures to load by ftp. It finds the pictures but when I try the upload it comes back as "can't open the url" more or less. Also when I try to install my pictures from my hard drive I get the box with the little red "x" everyonce in a while. Anything I'm doing wrong there?

cmschool
1-6-03, 02:52 PM
Anyone willing to help me install Gallery on my site? I can handle the configuration after it's installed, but I'm having trouble actually getting it on my server and setup. :(

Wade
1-7-03, 06:00 AM
I used SmartFTP to upload all the files. Also use ASCII mod for everything but the images folder use binary for that. CHMOD everything to 755. Don't forget to make the empty .htaccess and empty config.php as stated in the directions for Gallery. CHMOD those two to 777. I had to play with mine for awhile as I kept getting error500. Finally one day it worked, not sure what I did now to get rid of the error500. Hope this helps enough to get you started.

cmschool
1-7-03, 08:09 AM
There wasn't a tar file or something to load on the server and have it unzip there? I have to individually upload all these files?? :( That sucks. :P

cmschool
1-9-03, 01:40 PM
Ok, I got the latest version of Gallery uploaded and chmod. I set all the files and folders to 755 except for the .htaccess and config.php. I tried to chmod all the files in the setup folder, but they won't retain their permissions. I can get to the Welcome to the configuration page but it won't let me configure it. Please help! :(

cmschool
1-9-03, 02:08 PM
I don't know if it was the smartest thing to do, but I deleted the .htaccess from the setup folder and everything went smoothly after that. Now the fun job of filling the album in. :P Does anyone know how to skin gallery? or where I can download skins?