[ansel] Help with Ansel Install

Michael Rubinsky mrubinsk at horde.org
Thu Dec 31 15:09:38 UTC 2009


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: PGP Digital Signature
URL: <http://lists.horde.org/archives/ansel/attachments/20091231/9c606c3e/attachment.bin>


More information about the ansel mailing list