[ansel] Help with Ansel Install

John H. Bennett III bennettj at thebennetthome.com
Thu Dec 31 15:45:42 UTC 2009


Quoting Michael Rubinsky <mrubinsk at horde.org>:

> Quoting "John H. Bennett III" <bennettj at thebennetthome.com>:
>
>> Quoting "Michael J. Rubinsky" <mrubinsk at horde.org>:
>>
>>>
>>> Quoting "John H. Bennett III" <bennettj at thebennetthome.com>:
>>>
>>>> I tried installing Ansel today and have run into some issues   
>>>> trying  to get it to work.  I'm using horde 3.3.6 with ansel 1.1,  
>>>>  and other  current stable horde components.  I have php 4.3.9.    
>>>> This is  running under SME Server which runs on CentOS.
>>>>
>>>> I can get it installed, create a gallery, and upload photos.   
>>>> When   looking at the gallery, I have an image placeholder with a  
>>>> red X.    Looking at my logs, I see a lot of this:
>>>> Dec 30 21:31:32 www HORDE[10553]: [ansel] Unable to open VFS  
>>>> file.   [pid 10553 on line 2257 of    
>>>> "/home/httpd/html/horde/ansel/lib/Ansel.php"]
>>>> Dec 30 21:31:32 www HORDE[10553]: [ansel] Unable to open VFS  
>>>> file.   [pid 10553 on line 2736 of    
>>>> "/home/httpd/html/horde/ansel/lib/Ansel.php"]
>>>> Dec 30 21:31:32 www HORDE[10553]: [ansel] Unable to open VFS  
>>>> file.   [pid 10553 on line 45 of    
>>>> "/home/httpd/html/horde/ansel/img/prettythumb.php"]
>>>> Dec 30 21:31:33 www HORDE[10618]: [ansel] Unable to open VFS  
>>>> file.   [pid 10618 on line 2257 of    
>>>> "/home/httpd/html/horde/ansel/lib/Ansel.php"]
>>>> Dec 30 21:31:33 www HORDE[10618]: [ansel] Unable to open VFS  
>>>> file.   [pid 10618 on line 2736 of    
>>>> "/home/httpd/html/horde/ansel/lib/Ansel.php"]
>>>> Dec 30 21:31:33 www HORDE[10618]: [ansel] Unable to open VFS  
>>>> file.   [pid 10618 on line 45 of    
>>>> "/home/httpd/html/horde/ansel/img/prettythumb.php"]
>>>> Dec 30 21:31:33 www HORDE[10538]: [ansel] Unable to open VFS  
>>>> file.   [pid 10538 on line 2257 of    
>>>> "/home/httpd/html/horde/ansel/lib/Ansel.php"]
>>>> Dec 30 21:31:33 www HORDE[10538]: [ansel] Unable to open VFS  
>>>> file.   [pid 10538 on line 2736 of    
>>>> "/home/httpd/html/horde/ansel/lib/Ansel.php"]
>>>> Dec 30 21:31:33 www HORDE[10538]: [ansel] Unable to open VFS  
>>>> file.   [pid 10538 on line 44 of   
>>>> "/home/httpd/html/horde/ansel/img/mini.php"]
>>>>
>>>>
>>>> So I have missed a step or messed something up.  I used this  
>>>> linke   as my reference,  
>>>> http://www.horde.org/ansel/docs/?f=INSTALL.html.    My test.php  
>>>> info show:
>>>> Ansel Version
>>>> Ansel: H3 (1.1)
>>>> Other Horde Applications
>>>> horde: Yes (Version: 3.3.6)
>>>> agora: No
>>>> Agora provides the ability for users to comment on images.
>>>> PHP Version
>>>> PHP Version: 4.3.9
>>>> PHP Major Version: 4.3
>>>> PHP Minor Version: 9
>>>> PHP Version Classification: release
>>>> You are running a supported version of PHP.
>>>> PHP Module Capabilities
>>>> GD Support: Yes
>>>> Imagick Library: No
>>>> Ansel can make use of the Imagick Library, if it is installed on   
>>>>  your system. It is highly recommended to use either  
>>>> ImageMagick's   convert utility or the Imagick php library for  
>>>> faster results.
>>>> Zip Support: No
>>>> Ansel can make use of PHP's Zip extension for more efficiently    
>>>> processing uploaded ZIP files..
>>>> OpenCV Library: No
>>>> Ansel can make use of the OpenCV PHP extension for automatically   
>>>>  detecting human faces in images. You need either this library or  
>>>>   the one immediately below to detect human faces.
>>>> Facedetect Face Detection Library: No
>>>> Ansel can make use of the Facedetect PHP extension for    
>>>> automatically detecting human faces in images. You need either    
>>>> OpenCV (above) or Facedetect to detect human faces.
>>>> Puzzle Library: No
>>>> Ansel can make use of the libpuzzle PHP extension for finding    
>>>> similar images based on image content.
>>>> Ansel Configuration Files
>>>> config/conf.php: Yes
>>>> config/prefs.php: Yes
>>>> PEAR Modules
>>>> PEAR Search Path (PHP's include_path):     
>>>> /home/httpd/html/horde/lib:/usr/share/pear-addons:/usr/share/pear
>>>> PEAR: Yes
>>>> Recent PEAR: Yes
>>>> MDB2: Yes
>>>>
>>>>
>>>> My conf.php:
>>>> <?php
>>>> /* CONFIG START. DO NOT CHANGE ANYTHING IN OR AFTER THIS LINE. */
>>>> // $Horde: ansel/config/conf.xml,v 1.49.2.11 2009-06-15 17:13:38   
>>>>  mrubinsk Exp $
>>>> $conf['gallery']['downloadzip'] = false;
>>>> $conf['gallery']['customlabel'] = true;
>>>> $conf['menu']['print'] = true;
>>>> $conf['menu']['apps'] = array();
>>>> $conf['images']['type'] = 'horde';
>>>> $conf['vfs']['src'] = 'php';
>>>> $conf['image']['type'] = 'jpeg';
>>>> $conf['image']['autogen'] = '1';
>>>> $conf['image']['prettythumbs'] = true;
>>>> $conf['image']['num_uploads'] = '5';
>>>> $conf['thumbnail']['perpage'] = '30';
>>>> $conf['thumbnail']['width'] = '150';
>>>> $conf['thumbnail']['height'] = '150';
>>>> $conf['screen']['width'] = '800';
>>>> $conf['screen']['height'] = '600';
>>>> $conf['ecard']['enable'] = true;
>>>> $conf['comments']['allow'] = 'never';
>>>> $conf['ansel_cache']['usecache'] = false;
>>>> $conf['tags']['relatedtags'] = false;
>>>> $conf['report_content']['driver'] = false;
>>>> $conf['ages']['limits'] = array();
>>>> $conf['ages']['hook'] = false;
>>>> $conf['faces']['driver'] = 'user';
>>>> $conf['faces']['search'] = '7';
>>>> /* CONFIG END. DO NOT CHANGE ANYTHING IN OR BEFORE THIS LINE. */
>>>
>>>
>>> According to your settings, you've told Ansel to use the same VFS   
>>>  settings that you have setup for Horde overall. What driver did  
>>> you   choose to use for VFS in Horde's config?
>>>
>>> -- 
>>> Thanks,
>>> mike
>>>
>>> --
>>> The Horde Project (www.horde.org)
>>> mrubinsk at horde.org
>>>
>>
>> I have it set to /tmp.
>>
>> horde's conf.php
>> $conf['vfs']['params']['vfsroot'] = '/tmp';
>> $conf['vfs']['type'] = 'file';
>>
>> Thanks,
>> John
>>
>>
>
> Check to be sure that /tmp is readable and writable by the webserver  
>  user. Also, check inside the /tmp directory and see if you can find  
>  /tmp/.horde/ansel/, this should contain lots of numbered  
> directories,  which in turn contain the images.  If that fails,  
> watch the webserver  and/or horde log while you are *uploading* the  
> images to be sure they  are saved correctly.
>
> Thanks,
> mike
>
> --
> The Horde Project (www.horde.org)
> mrubinsk at horde.org
>
> "Time just hates me. That's why it made me an adult." - Josh Joplin
>

Yes, /tmp is writeabe by the webserver user.  I see other files there  
with the webserver users name.  Would /tmp be the place where all of  
my photos would be stored?  If so, I don't think I want that.  I also  
don't have a /tmp/.horde/ansel directory.  I only a directory called  
scheduler.

My webserver logs show:
[Thu Dec 31 09:25:52 2009] [error] [client 10.10.10.125] File does not  
exist: /.../horde/ansel/themes/graphics/arrow_switch.png, referer:  
https://www.thebennetthome2.com/horde/ansel/view.php?gallery=3&view=Gallery&havesearch=0&slug=
[Thu Dec 31 09:25:52 2009] [error] [client 10.10.10.125] File does not  
exist: /.../horde/ansel/themes/graphics/loading.gif, referer:  
https://www.thebennetthome2.com/horde/ansel/view.php?gallery=3&view=Gallery&havesearch=0&slug=

Those two files really don't exist

I just changed the Ansel VFS to SQL and my file upload was successfull  
and I can see my photos, so that will give me the ability to play  
around with this.

The only other thing I see is when I click on my gallery, the sort  
photos button has a red X instead of the icon.

Mike, thanks for taking the time to help me.  I'll have to work out  
the VFS file setting and see if I can get that to work and if that is  
a better solution than using SQL.  Anyother tips, tricks, hints, for  
taking advantage and using Ansel?

Thanks again,

John Bennett

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 1357 bytes
Desc: PGP Public Key
URL: <http://lists.horde.org/archives/ansel/attachments/20091231/8cb71ea7/attachment-0001.bin>


More information about the ansel mailing list