Koozali.org: home of the SME Server

Yappa

Stephen

Yappa
« on: July 10, 2002, 12:43:09 PM »
Has anyone managed to get YAPPA working recently? I was running it quite successfully some time ago but suffered a hard drive crash. Luckily I didn't lose much data and took the opotunity to upgrade. I installed 5.1.2 in server only mode with a few other bits and pieces. I installed Yappa 1.7 in accordance with the how to from the web site and now it doesn't work! I have posted messages in some older threads but not had any responce. It seems the problem is recognised but no solution has worked for me. The code that produces resized images is not functioning. This has previously been put down to an error in a php update. Anyone got any suggestions? Would it help to upgrade to 5.5? I'll probably do that anyway.
Steve

Nathan Fowler

Re: Yappa
« Reply #1 on: July 10, 2002, 06:33:44 PM »
Do you have libpng installed?

Nathan

Holger

Re: Yappa
« Reply #2 on: July 11, 2002, 12:33:59 AM »
You need to install ImageMagick as well...
And that can be a pain since it depends on X11 libraries :(
Yappa uses 'convert' from ImageMagick to scale pictures.

Holger

Rick Evans

Re: Yappa
« Reply #3 on: July 11, 2002, 07:51:06 AM »
I had the same problem for a while but messed around and got it working.

As the previous posters said, you have to get ImageMagik installed, there is an old post that explains which rpms (& versions) you need to install, make sure that is up and running.

If you still have a problem here is what I did:

Edit the 'config.inc' file and look for the line that says

/* cache resized images? */

Make the cache folder point to the folder where your pictures are installed, like this:

/* cache resized images? */
"resize_cache" => true,
"cache_root" => '/home/e-smith/files/ibays/pictures/files',

As soon as I did this, everything worked out fine. I don't know if this is the correct way to get it to work, but it seemed to work for me :)

http://theevansfamily.com/pictures/

Sure hope this helps, I know how frustrating is was for me trying to get it to work.

Seeeeeeeeeeee ya,
Rick

Trampas

Re: Yappa
« Reply #4 on: July 11, 2002, 11:32:10 PM »
I would love a server blade for Yappa!

Trampas

Re: Yappa
« Reply #5 on: July 11, 2002, 11:34:53 PM »
I Don't know if Yappa does this but it would be nice to password protect the pictures' web site.

Stephen

Re: Yappa
« Reply #6 on: July 12, 2002, 01:06:25 PM »
Cheers for all the swift responce!
I don't know if I have libpng installed. I have followed instructions given in previous threads regarding installing Image Magick and all the rpm's needed for it to run with no success. One thing I noticed was that the line in the config file that specifies the exact path to the convert file was pointing to nowhere useful. Anyone know where it should point? As I understand it Yappa can be configured to use Image Magick or 'gd' as its image resizing tool, is that the case or is it only possible to use Image magick? Either way I have tried both!
Rick; I checked out your page, grrrrrrr! It all looks so nice when it works! I'll try your cache tip. You say to make sure Image Magick is up and running but how do I do that?
I would love a Blade for Yappa as well! Maybe in another lifetime I'll be skilled enough to write one!
Steve

Rick Evans

Re: Yappa
« Reply #7 on: July 12, 2002, 05:01:18 PM »
>path to the convert file was pointing to nowhere useful. Anyone know where it >should point?

/* full path to ImageMagick's convert program */
"convert_path" => '/usr/X11R6/bin/convert',

This is where I have it pointing anyway.

I origianlly tried to get it to work with gd, no luck, I went back to struggling with ImageMagik.


>I don't know if I have libpng installed.
To check if you have libpng installed, login to the server as root and type "rpm -q libpng." The response should be pretty descriptive as to whether you have it or not.


> You say to make sure Image Magick is up and running but how do I do that?
I guess I meant get ImageMagik installed succesfully. Sorry I was a little confusing there.

I don't know if this will help here is a copy of my entire config.inc.php file:


-------------Start File-------------
/*
 * YAPPA, main configuration
 */

$config = array(

/* title of your collection */
"title" => "The Evans Family Picture Album",

/* directory where album dirs are stored */
"photo_root" => "/home/e-smith/files/ibays/pictures/files",

/* image module: magick, gd */
"image_module" => 'magick',

/* full path to ImageMagick's convert program */
"convert_path" => '/usr/X11R6/bin/convert',

/* thumbnails width and height */
"thumb_width" => 100,
"thumb_height" => 100,

/* thumbnails per row in thumbnails view */
"thumbs_per_row" => 3,

/* total thumbnails rows per page */
"thumbs_rows" => 4,

/* albums per row in homepage */
"albums_per_row" => 4,

/* available sizes */
"resize_options" => array( "640x640", "800x800", "original" ),

/* cache resized images? */
"resize_cache" => true,
"cache_root" => '/home/e-smith/files/ibays/pictures/files',

/* jpeg quality for resized images */
"resize_quality" => 60,

/* default size when viewing an image */
"resize_default" => "640x640",

/* news filename */
"news_filename" => "news.html",

/* album info filename */
"info_filename" => "info.txt",

/* image captions filename */
"captions_filename" => "captions.txt",

/* hits counter log filename */
"log_filename" => "hits.log",

/* sort by none, name, mtime */
"sort_by" => "name",
"album_sort_by" => "name",

/* sort order (a)scending or (d)escending, not used when 'sort_by' is 'none' */
"sort_order" => "a",

/* date format used when printing dates, refer to PHP's date format documentation */
"date_format" => "Y/m/d H:i:s",

/* size of the pages navbar in thumbnail mode (must be multiple of 2) */
"navlink_pages" => 10,

);

?>
-------------End File-------------

BTW, I got all the YAPPA stuff in the html directory of my ibay and all my pictures in the files directory of an ibay.

Hope all this helps.

Seeeeeeeeeeee ya,
Rick

Stephen

Re: Yappa
« Reply #8 on: July 13, 2002, 02:00:51 AM »
Sorry to keep bothering you with these questions but you are the only person who seems to have a working Yappa installation!
Well I tried everything and nothing seems to be working! I even tried creating a pictures ibay and pasting in your config file in case I had mistyped anything.
It seems most likely that I have screwed something in my server during my random tweaking! Well I don't have anything too important on my box so think I'll reformat. Just to be sure here is what I have done:

Followed the instructions from the YAPPA how to i.e.
installed the following rpms (using the GUI rpm installer)
freetype-2.0.3-7.i386.rpm
gd-1.8.4-4.i386.rpm
created in ibay called photos, allowed access from the local network and cgi scripting.
Downloaded and extracted Yappa 1.7 directly into the html folder.
(I also tried yappa 1.5 with even less success!)
Created a folder for my photos and edited the config.inc.php file to point at it.
That didn't work so having read the forums I did the following:
Installed the following rpms (using the GUI rpm installer)
libtiff-3.5.5-10.i386.rpm
libjpeg6a-6a-7.i386.rpm
libungif-4.1.0-7.i386.rpm, which requires:
XFree86-libs-4.0.3-5.i386.rpm
Installed ImageMagick-5.2.7-2.i386.rpm
Edited the config.inc.php file to use 'magick' instead of 'gd', changed the path to the convert file to /usr/X11R6/bin/convert.
Changed, "cache_root" => '/home/e-smith/files/ibays/photos/html/photos
Still no luck :-(
Any of this different to that which you have done?
Anyone else see any glaringly obvious errors?
All critisism gladly taken!
Steve

Rick Evans

Re: Yappa
« Reply #9 on: July 13, 2002, 02:29:19 AM »
Seems like you have done everything that I did. There is one thing that seemed pretty important.

There was a change mode comand that had to be run on the directory where the pictures are going to reside.

I think the command was "chmod -R a+r" or maybe it was a+w; not suer which one. You might want to hunt around and do a little looking.

Try this site: http://sourceforge.net/projects/yappa/

I remember I found a lot of good information there while trouble shooting my problems trying to get it to work. Look on the "Public Area" under "bugs" there are 3-4 threads that deal with this behavior specifically.

Here is a link to the bugs:
http://sourceforge.net/tracker/?atid=388177&group_id=26751&func=browse

I hope this helps.

Let me know, now that I have some time invested in it.

BTW, You probably did not do your system a lot of hard if you used the correct rpm's and did not use the --force option. At the most you should be able to just delete the iBay and start again with a new installation.

Good luck, let me know if there is anything I can offer in the way of help.

Seeeeeeeeeeee ya,
Rick

Stephen

Re: Yappa
« Reply #10 on: July 13, 2002, 02:46:17 AM »
Cheers for all your help,
I seem to have cracked it! Although it could have been one of three things:
First after reading the documentation on sourceforge I created a new folder called cache for convert to store the resized images in. It appears that the original cache folder is not readable by appache, at least under SME 5.1.2. No doubt if I was a Linux guru this sort of error would be obvious!
Second I changed the permisions on the ibay to read/write everyone. I changed it back to administrator after it started working and it still works?
Thirdly and probably most importantly I created a few folders inside the photos directory and put a few test pics in them. Previously I had just put pics directly inside the photos folder. I noticed I was not getting a folder listing at the 'home' screen and I therefore didn't have the icons showing so created some folders just to test the icons. Suddenly it all started working! At first I didn't realise because the thumbnails didn't appear due the picture being 2048 X 1536 and hence taking an age to convert the first time. I'm slightly disapointed by this given that I'm running in server only mode on a Celeron 400 128MB ram. Still it's great to have it all up and running.
Thanks again for all your help. I'm still putting up some photos but when I'm done check out my efforts at area51.jellybaby.net/photos
Steve

Rick Evans

Re: Yappa
« Reply #11 on: July 13, 2002, 04:57:39 AM »
Glad to see you got it working!

I checked out the site, very nice.

Seeeeeeeeeeee ya,
Rick

Dave

Re: Yappa
« Reply #12 on: July 15, 2002, 01:45:30 AM »
while trying to install ImageMagick I got the following error.
no acceptable C compiler found in $PATH
I downloaded the file ImageMagick-5.4.7-1.tar.gz
gzip -dc ImageMagick-5.4.7-1.tar.gz | tar xvf -
cd to ImageMagick and was ./configure -prefix=/usr/local when I got the error

What am I doing wrong.

Stephen

Re: Yappa
« Reply #13 on: July 17, 2002, 03:19:38 PM »
Hi Dave,
First off your using a different version of Image Magick to the rest of us. I'm using ImageMagick-5.2.7-2.i386.
Secondly, why aren't you using the RPM? If you have the GUI RPM installer on your SME box then you can eliminate typing errors that can cause no end of greif!
Steve

dave

Re: Yappa
« Reply #14 on: July 18, 2002, 11:40:52 AM »
> Hi Dave,
> First off your using a different version of Image Magick to the rest of us.
> I'm using ImageMagick-5.2.7-2.i386.
> Secondly, why aren't you using the RPM? If you have the GUI RPM installer on
> your SME box then you can eliminate typing errors that can cause no end of
> greif!
> Steve
Thanks Steve
I installed the GUI RPM and I found ImageMagick-5.2.7-2i386, BUT I can not find all the dependancies.
I found some at rpmfind
Dave