Re: Help with Ansel Install
"John H. Bennett III" <[email protected]> Thu, 31 Dec 2009 16:11:06 -0600
| Newsgroups | gmane.comp.horde.ansel |
|---|---|
| Message-ID | <[email protected]> |
Quoting "Michael J. Rubinsky" <[email protected]>: > > Quoting "John H. Bennett III" <[email protected]>: > >> Quoting Michael Rubinsky <[email protected]>: >> >>> Quoting "John H. Bennett III" <[email protected]>: >>> >>>> Quoting "Michael J. Rubinsky" <[email protected]>: >>>> >>>>> >>>>> Quoting "John H. Bennett III" <[email protected]>: >>>>> >>>>>> 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) >>>>> [email protected] >>>>> >>>> >>>> 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) >>> [email protected] >>> >>> "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? > > Yes. The VFS (Virtual File System) is what ansel uses to store the > uploaded, original images, as well as all the server-generated > images used for thumbnails, previews, etc... If you don't want those > to be stored under /tmp then you should change that setting to a > more appropriate place. > > 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. > > If you don't have .horde under the /tmp directory, then there *is* a > problem with the webserver creating a directory and/or file under > /tmp. Possibly a permissions error, or maybe safe_mode or > open_basedir or similar restriction? > >> >> 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 > > Those paths don't look right to me. Those files exist in CVS, not > sure why you have those extra /../ in front of your path. If you > look at /horde/ansel/themes/graphics you should see those images. If > not, you can obtain them from cvs.horde.org or from the tarball. > I put in the extra ... to hide my true path, thinking that it wasn't really needed. Sorry for the confustion. >> 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. > > The 'sort' image is the arrow_switch.png file listed above as not > found, yes, it isn't being displayed since the webserver cannot find > it. You can try changing Horde themes to Silver Surfer or Tango, as > those themes also have separate graphics as well. > >> 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? > > Well, since you asked.... I noticed that you are using GD for image > generation. You will get *much* better looking results by using > either convert (from ImageMagick) or by using the Imagick PHP > extension (which is actually built against the Imagemagick > libraries). Most of the fancy thumbnail effects like drop-shadows, > polaroid looking images and image "stacks" etc... will either not > work at all under GD or not look as good. Just make sure you have > the Imagemagick package installed on your server, then put the path > to the "convert" utility in Horde's "Image Handling" config tab. I will do that and start a new thread if I run into other issues or neeed more assistance. I did change my VFS back to a file location and am now at least getting the .horde/ansel directories created, so there appears to be some permission problems with my /tmp directory. From the things I run on the server, the current permissions only seem to mess up Ansel. > -- > Thanks, > mike > > -- Again thanks, John Bennett -- ansel mailing list - Join the hunt: http://horde.org/bounties/#ansel Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]
(unnamed)
(application/pgp-keys, 1.3 KB) - not displayed