netpbm pnmcomp pamcomp unzip problems

beretgascon

Joined: 2012-01-04
Posts: 16
Posted: Wed, 2012-01-04 18:41

I have searched this forum extensively and I simply cannot find the answer to this question. Apologies if it has been answered, I am tearing my hair out here:

I have installed the following three netpbm collections

netpbm included with Gallery 2
netpbm1.1-gallery1.0-linux2.2-redhat6.2-intel.tgz
netpbm-10.35.83 from sourceforge

every time I try to install netpbm I get an error, the most common being

Quote:
pnmcomp or pamcomp
Failed
Error messages:

File does not exist

none of the packages I have found contain these files, and netpbm refuses to install without them! i found an installation that had a file called pnmcomp.c in it, but that didn't work. please can somebody either point me to a download location of these files or even just email them to me, i don't understand why this has to be so difficult :(

I have read posts where people say " you don't need those files, just disable watermarking and netpbm should install" - but where do I disable watermarking? I cannot find this feature, i'm sorry, i am sooo frustrated. i cannot save settings for netpbm because of this - it refuses, i assume, because pnmcomp/pamcomp failed

also, I am unable to use gallery remote because no thumbnails are created OR solid black thumbnails are created!!) even though it says i have GD installed and working

i cannot "Archive Upload", upload a zip file, because it says I don't have unzip installed and the only help about unzip I can find is that it should be in the path /usr/bin but when I enter that it says

Quote:
The path you entered isn't a valid path to an unzip binary.

Please can some knowledgeable person help me out? it seems you have to be a unix guru to get this thing to work, yet I have seen plenty of Gallery galleries out there so it must be possible!


Gallery version = 2.3.1 core 1.3.0.1
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 4.3.9 apache2handler
Webserver = Apache/2.0.52 (CentOS)
Database = mysqlt 4.1.20, lock.system=flock
Toolkits = Exif, Gd
Acceleration = none, none
Operating system = Linux 2.6.9-67.0.22.ELsmp #1 SMP Wed Jul 23 17:30:51 EDT 2008 i686
Default theme = siriux
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (Windows NT 6.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
Rows in GalleryAccessMap table = 12
Rows in GalleryAccessSubscriberMap table = 26
Rows in GalleryUser table = 3
Rows in GalleryItem table = 26
Rows in GalleryAlbumItem table = 4
Rows in GalleryCacheMap table = 0

 
beretgascon

Joined: 2012-01-04
Posts: 16
Posted: Thu, 2012-01-05 13:44

Please, does anybody have any assistance or guidance? Anybody who has installed Gallery and had a similar issue(s)?

Looking for any kind of pointers in the right direction, please

Many thanks in advance

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2012-01-05 14:20

is this your server? or shared hosting?
Imagemagick is far superior and if you have access I'd install that instead.

To disable watermarking head to gallery admin -> plugins -> uninstall watermark module

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Thu, 2012-01-05 16:59

Please try to use imagemagick, if available, instead as stated.

The advantage of netpbm used to be that you could put the binaries under your webroot but most hosts block this feature, for good reason.

I think though, that you can essentially consider it not to be supported on G2 any longer.

--
dakanji.com

 
beretgascon

Joined: 2012-01-04
Posts: 16
Posted: Thu, 2012-01-05 20:17

Hello and thank you both for your replies.

I tried to install imagemagick but I couldn't do it, and realised in the end that was because I was trying to put it in the same web directory as G2. I do have root access to the server but i'm, frankly, pretty much a complete unix noob. I would need idiot-proof instructions to get it installed

I also cannot find the path to unzip, how do I find that?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2012-01-05 22:21

What distribution of Linux are you running?

Debian or Ubuntu based?

apt-get install imagemagick

apt-get install unzip

or apt-get install imagemagick unzip
____________________________________________
Like Gallery? Like the support? Donate now!

 
beretgascon

Joined: 2012-01-04
Posts: 16
Posted: Fri, 2012-01-06 09:48

Hello Nivekiam, thank you for replying

This is my Linux version: 2.6.9-67.0.22.ELsmp

I don't have apt-get, but whereis and which and both confirm that unzip is in /usr/bin (yes, google is my friend). I enter /usr/bin or /usr/bin/ or /usr/bin/unzip in the "Path to unzip" field and every time it returns The path you entered isn't a valid path to an unzip binary. :banghead:

Imagemagick isn't installed, I checked.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2012-01-06 14:56

Well, find out which distribution you are running and find out how to use it's repository and install that stuff from their repository. 2.6.9-67.0.22.ELsmp is the kernel version, but not the distribution like Debian, Ubuntu, Fedora, Red Hat, Suse, etc

Here are more names of distributions, but it's still a very small list:
http://www.linode.com/faq.cfm#which-distributions-do-you-offer

I seriously doubt your server was created from scratch, if it was, dump that host, find a different host/vps/what ever you are using who uses standard distributions, preferably Debian, Ubuntu or Fedora for a noob as there are TONS of tutorials, instructions and forums to help you, if you deviate from those distros then you'll have a much harder time as a noob getting things working.

____________________________________________
Like Gallery? Like the support? Donate now!

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sat, 2012-01-07 00:22

Strange that you should not even know which operating system you are running.

Luckily, you put the info requested for posts and it says "Webserver = Apache/2.0.52 (CentOS)". CentOS is a nice, rock solid distro and a favourite of web hosts for good reason.

You can use the YUM package manager by running yum install ImageMagick from the command line. Actually, you can also run yum install netpbm.

The install paths can be determined by whereis ImageMagick or whereis netpbm.

Yum should be pre-installed on CentOS although some strip it out.

One problem though is PHP version = 4.3.9 apache2handler. That is an ancient and insecure version of PHP.

Run cat /etc/redhat-release on the command line and post the output.

--
dakanji.com

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2012-01-07 06:58

Thanks Dayo! I missed that (obviously)
____________________________________________
Like Gallery? Like the support? Donate now!

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sat, 2012-01-07 11:12

It's so rare for people to put the info up.
I only caught that he had at the last moment and had to revise my answer.

BTW, the "EL" in "ELsmp" stands for "Enterprise Linux" ... i.e., Redhat Enterprise Linux (RHEL).
RHEL is designed for enterprise environments and comes with paid support.
CentOS is the community clone of RHEL. They basically take RHEL and strip out the Redhat branding. The stability from RHEL is why many web hosts like it since they reckon they can live without the paid support.
Fedora is the bleeding edge community version. Supported by Redhat as a test bed for stuff that will go into RHEL, and on into CentOS (and other similar community clones such as Scientific Linux - used by many researchers in science ... again looking for stability), if/when they are proven stable. Fedora thus has relatively frequent releases and is sometimes considered to more of a desktop distro rather than as a server distro ... as with Ubuntu. Ubuntu tries to get the best of both worlds by having the LTS versions.
Basically, Ubuntu and Debian have a similar relationship as Fedora and RHEL, and its clones, have.

The "smp" has to do with multithreading.

Are we off topic yet lol?
--
dakanji.com

 
beretgascon

Joined: 2012-01-04
Posts: 16
Posted: Sat, 2012-01-07 13:21

Thank you so much for your answers. I will try your suggestions and I will get back to you with my results, I promise!

:)

 
beretgascon

Joined: 2012-01-04
Posts: 16
Posted: Sat, 2012-01-07 16:59
Dayo wrote:
Strange that you should not even know which operating system you are running.

Luckily, you put the info requested for posts and it says "Webserver = Apache/2.0.52 (CentOS)". CentOS is a nice, rock solid distro and a favourite of web hosts for good reason.

You can use the YUM package manager by running yum install ImageMagick from the command line. Actually, you can also run yum install netpbm.

The install paths can be determined by whereis ImageMagick or whereis netpbm.

Yum should be pre-installed on CentOS although some strip it out.

One problem though is PHP version = 4.3.9 apache2handler. That is an ancient and insecure version of PHP.

Run cat /etc/redhat-release on the command line and post the output.

--
dakanji.com

OK, some answers:

1. CentOS release 4.6 (Final)

2. yum did work and I now have a path for ImageMagick /usr/share/man/man1/ImageMagick.1.gz although it doesn't appear it is installed

3. I'm scared of upgrading php to 5 (which is know is vastly preferable) in case it breaks something I can't fix - is there a risk, especially to sites that have some php in them?

Many thanks for your persistence with me

 
beretgascon

Joined: 2012-01-04
Posts: 16
Posted: Sat, 2012-01-07 17:03
Dayo wrote:
Strange that you should not even know which operating system you are running.

Not really. This is a server an ex business partner set up. I am a designer, he was a unix-head. I'm kind of left holding the baby doing what I can with people such as yourselves helping me :)

I'd love to employ a server admin but I simply don't make enough money to do so

Anyway, can somebody explain why, if unzip is clearly installed and working, G2 doesn't recognise it as a valid path?

 
beretgascon

Joined: 2012-01-04
Posts: 16
Posted: Sat, 2012-01-07 17:14

No sure if this will help at all, but I guess more info is better than less...

yum install ImageMagick
Loading "protectbase" plugin
Loading "fastestmirror" plugin
Setting up Install Process
Setting up repositories
4PSA                      100% |=========================| 1.1 kB    00:00     
update                    100% |=========================|  951 B    00:00     
base                      100% |=========================| 1.1 kB    00:00     
addons                    100% |=========================|  951 B    00:00     
extras                    100% |=========================| 1.1 kB    00:00     
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
primary.xml.gz            100% |=========================|  36 kB    00:00     
sqlite cache needs updating, reading in metadata
4PSA      : ################################################## 99/99
25 packages excluded due to repository protections
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package ImageMagick.i386 0:6.0.7.1-20.el4_8.1 set to be updated
--> Running transaction check
--> Processing Dependency: ImageMagick = 6.0.7.1-17.el4_6.1 for package: ImageMagick-perl
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package ImageMagick-perl.i386 0:6.0.7.1-20.el4_8.1 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Updating:
 ImageMagick             i386       6.0.7.1-20.el4_8.1  update            2.4 M
Updating for dependencies:
 ImageMagick-perl        i386       6.0.7.1-20.el4_8.1  update             80 k

Transaction Summary
=============================================================================
Install      0 Package(s)         
Update       2 Package(s)         
Remove       0 Package(s)         
Total download size: 2.4 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): ImageMagick-6.0.7. 100% |=========================| 2.4 MB    00:00     
(2/2): ImageMagick-perl-6 100% |=========================|  80 kB    00:00     
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating  : ImageMagick                  ######################### [1/4] 
  Updating  : ImageMagick-perl             ######################### [2/4] 
  Cleanup   : ImageMagick                  ######################### [3/4]
  Cleanup   : ImageMagick-perl             ######################### [4/4]

Updated: ImageMagick.i386 0:6.0.7.1-20.el4_8.1
Dependency Updated: ImageMagick-perl.i386 0:6.0.7.1-20.el4_8.1
Complete!

Many thanks once again for your assistance :)

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sat, 2012-01-07 21:32

Hi.

whereis ImageMagick was wrong. Do not use that .gz path or even touch it at all. You needed whereis convert. Anyway, yum will install ImageMagick components into "/usr/bin". Use that as the path in G2.

ImageMagick 6.0.7 is a bit old though but I'll at least try getting that to work. You can download and manually compile IM as well (it will install into "/usr/local/bin") but I stick with yum in your case.

Since you have root access all you need to do is do change one flag in your php.ini file for any PHP 4 script to work on PHP 5.3. In any case, only really old ones will need this and you you are up to date with your applications, then there should be no issue.

Since you are on CentOS 4 however, your best bet may be to move to a new server with CentOS 6 and then move your sites over. You can overlap the two servers for a month, assuming you pay monthly, and then cancel the old one when done.

You can also hire one of several reputable server admins on webhostingtalk.com for $20/month and keep them for the one month to help manage the transfer. I suppose this is not a pressing item.

BTW run "yum upgrade" periodically to update the installed items on the server.

--
dakanji.com

 
beretgascon

Joined: 2012-01-04
Posts: 16
Posted: Mon, 2012-01-09 17:41

Oh christ, I just did a yum upgrade and I'm now just scared:

=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Installing:
 compat-dapl             i386       2.0.15-1.el4     base               98 k
     replacing  dapl.i386 1.2.1.1-7

 kernel                  i686       2.6.9-103.EL     update             13 M
 kernel-smp              i686       2.6.9-103.EL     update             12 M
Updating:
 NetworkManager          i386       0.3.1-5.el4      base               87 k
 OpenIPMI                i386       1.4.14-25.el4_8.1  update            196 k
 OpenIPMI-libs           i386       1.4.14-25.el4_8.1  update            385 k
 acl                     i386       2.2.23-5.4.el4   base               59 k
 acpid                   i386       1.0.3-2.el4_7.1  update             20 k
 apr                     i386       0.9.4-26.el4     update             94 k
 apr-util                i386       0.9.4-22.el4_8.3  update             52 k
 ash                     i386       0.3.8-20.el4_7.1  base              332 k
 at                      i386       3.1.8-82.el4     base               54 k
 audit                   i386       1.0.16-4.el4_8.1  update            202 k
 audit-libs              i386       1.0.16-4.el4_8.1  update             39 k
 authconfig              i386       4.6.10-7.el4     base              289 k
 autofs                  i386       1:4.1.3-240      update            297 k
 bash                    i386       3.0-27.el4       update            1.7 M
 bind                    i386       20:9.2.4-38.el4  update            583 k
 bind-libs               i386       20:9.2.4-38.el4  update            570 k
 bind-utils              i386       20:9.2.4-38.el4  update            143 k
 binutils                i386       2.15.92.0.2-25   base              2.9 M
 bluez-utils             i386       2.10-5.el4       base              150 k
 boost                   i386       1.32.0-7.rhel4   base              758 k
 bzip2                   i386       1.0.2-16.el4_8   update             48 k
 bzip2-libs              i386       1.0.2-16.el4_8   update             34 k
 centos-release          i386       6:4-9.1          update             23 k
 comps                   i386       2:4.8CENTOS-0.20090804  base              9.7 M
 coreutils               i386       5.2.1-37.el4     update            2.9 M
 cpio                    i386       2.5-16.el4_8.1   update             47 k
 crash                   i386       4.0-5.0.0.2      base              1.4 M
 cryptsetup              i386       0.1-6            base              441 k
 cups                    i386       1:1.1.22-0.rc1.9.32.el4.10  update            1.5 M
 cups-libs               i386       1:1.1.22-0.rc1.9.32.el4.10  update            115 k
 curl                    i386       7.12.1-17.el4    update            231 k
 device-mapper           i386       1.02.28-3.el4    update            578 k
 dhclient                i386       7:3.0.1-68.el4   update            228 k
 dhcpv6_client           i386       0.10-24_EL4      base               71 k
 diffutils               i386       2.8.1-12.1.el4   base              204 k
 diskdumputils           i386       1.4.1-7          base              111 k
 dmraid                  i386       1.0.0.rc14-9_RHEL4_U7.el4  base              692 k
 dos2unix                i386       3.1-21.3         update             13 k
 dosfstools              i386       2.8-20           update             64 k
 dump                    i386       0.4b39-5.el4_8   update            816 k
 ed                      i386       0.2-36.el4_7.1   base               42 k
 expat                   i386       1.95.7-4.el4_8.3  update             69 k
 file                    i386       4.10-9.el4       update            259 k
 freetype                i386       2.1.9-21.el4     update            767 k
 ftp                     i386       0.17-25.el4      update             49 k
 gd                      i386       2.0.28-5.4E.el4_8.1  update            120 k
 gnupg                   i386       1.2.6-9.el4_8.1  update            1.6 M
 grep                    i386       2.5.1-32.4.el4   base              170 k
 gzip                    i386       1.3.3-18.el4_8.1  update             88 k
 hal                     i386       0.4.2-9.el4_8    update            153 k
 hotplug                 i386       3:2004_04_01-7.10  base               62 k
 httpd                   i386       2.0.52-49.ent.centos4  update            907 k
 httpd-suexec            i386       2.0.52-49.ent.centos4  update             32 k
 hwdata                  noarch     0.146.33.EL-19   update            537 k
 initscripts             i386       7.93.35-1.centos4  update            1.3 M
 iproute                 i386       2.6.9-4.el4      base              683 k
 ipsec-tools             i386       0.3.3-7.el4_7    base              221 k
 iptables                i386       1.2.11-3.3.el4_8  update            171 k
 iputils                 i386       20020927-22.el4_8.2  update            106 k
 isdn4k-utils            i386       3.2-19.el4       base              3.6 M
 jwhois                  i386       3.2.2-17.el4_8   update             78 k
 kernel-utils            i386       1:2.4-23.el4     update            1.4 M
 krb5-libs               i386       1.3.4-65.el4     update            488 k
 krb5-workstation        i386       1.3.4-65.el4     update            827 k
 kudzu                   i386       1.1.95.26-1      base              333 k
 lftp                    i386       3.0.6-8.el4      base              706 k
 libacl                  i386       2.2.23-5.4.el4   base               16 k
 libibverbs              i386       1.1.2-1.el4      base               39 k
 libmthca                i386       1.0.5-1.el4      base               31 k
 libpng                  i386       2:1.2.7-8.el4    update            156 k
 librdmacm               i386       1.0.8-1.el4      base               20 k
 libsdp                  i386       1:1.1.99-11.el4  base               36 k
 libstdc++               i386       3.4.6-11.el4_8.1  update            283 k
 libtiff                 i386       3.6.1-18.el4     update            256 k
 libtool-libs            i386       1.5.6-5.el4_8    update             23 k
 libuser                 i386       0.52.5-1.1.el4_8.1  update            326 k
 libxml2                 i386       2.6.16-12.8      update            622 k
 libxml2-python          i386       2.6.16-12.8      update            441 k
 libxslt                 i386       1.1.11-1.el4_7.2  base              436 k
 logrotate               i386       3.7.1-11.RHEL4   update             36 k
 logwatch                noarch     5.2.2-4.el4      base              133 k
 lvm2                    i386       2.02.42-11.el4   update            2.2 M
 lynx                    i386       2.8.5-18.2.el4_7.1  base              1.8 M
 mailman                 i386       3:2.1.5.1-34.rhel4.7  update            7.1 M
 make                    i386       1:3.80-7.EL4     base              336 k
 man-pages               noarch     1.67-17.el4      base              3.9 M
 mgetty                  i386       1.1.31-14.el4    base              428 k
 mkinitrd                i386       4.2.1.13-4.el4_8.1  update             96 k
 mod_ssl                 i386       1:2.0.52-49.ent.centos4  update            102 k
 module-init-tools       i386       3.1-0.pre5.3.11  base              357 k
 mysql                   i386       4.1.22-2.el4_8.4  update            3.1 M
 mysql-server            i386       4.1.22-2.el4_8.4  update            9.9 M
 net-snmp                i386       5.1.2-22.el4     update            509 k
 net-snmp-libs           i386       5.1.2-22.el4     update            1.8 M
 net-snmp-utils          i386       5.1.2-22.el4     update            161 k
 net-tools               i386       1.60-40.el4      update            342 k
 netconfig               i386       0.8.21-1.2       base               68 k
 netdump                 i386       0.7.16-15        base               16 k
 netpbm                  i386       10.35.58-8.el4   update            817 k
 netpbm-progs            i386       10.35.58-8.el4   update            1.9 M
 newt                    i386       0.51.6-10.el4_8.1  update             82 k
 nfs-utils               i386       1.0.6-94.EL4     update            194 k
 nfs-utils-lib           i386       1.0.6-10.el4     base               49 k
 nscd                    i386       2.3.4-2.54       update            142 k
 nss_ldap                i386       253-16.el4       update            1.1 M
 ntp                     i386       4.2.0.a.20040617-12.el4  update            1.2 M
 numactl                 i386       0.6.4-1.44       update             40 k
 openib                  i386       1.4-1.el4        base               16 k
 openldap                i386       2.2.13-12.el4_8.4  update            238 k
 openssh                 i386       3.9p1-11.el4_8.1  update            326 k
 openssh-clients         i386       3.9p1-11.el4_8.1  update            349 k
 openssh-server          i386       3.9p1-11.el4_8.1  update            212 k
 openssl                 i686       0.9.7a-43.17.el4_8.6  update            1.1 M
 pam                     i386       0.77-66.26.el4_8.2  update            1.9 M
 pam_krb5                i386       2.1.17-12.el4    update            101 k
 parted                  i386       1.6.19-23.EL.1   update            490 k
 perl                    i386       3:5.8.5-57.el4   update             12 M
 perl-Archive-Tar        noarch     1.39.1-1.el4_8.2  update             52 k
 perl-DBI                i386       1.40-9           base              466 k
 perl-HTML-Parser        i386       3.55-1.el4       base               91 k
 php                     i386       4.3.9-3.31       update            1.3 M
 php-domxml              i386       4.3.9-3.31       update             53 k
 php-gd                  i386       4.3.9-3.31       update            101 k
 php-imap                i386       4.3.9-3.31       update             53 k
 php-mbstring            i386       4.3.9-3.31       update            923 k
 php-mysql               i386       4.3.9-3.31       update             38 k
 php-pear                i386       4.3.9-3.31       update            483 k
 popt                    i386       1.9.1-35_nonptl.el4_8  update             62 k
 prelink                 i386       0.3.3-1.EL4      base              945 k
 procps                  i386       3.2.3-8.21       update            191 k
 python                  i386       2.3.4-14.10.el4  update            4.8 M
 quota                   i386       1:3.12-9.el4     update            304 k
 rhnlib                  noarch     2.1.4-17.el4_8.1  update             65 k
 rhpl                    i386       0.148.6-2        update            291 k
 rmt                     i386       0.4b39-5.el4_8   update            210 k
 rpm                     i386       4.3.3-35_nonptl.el4_8  update            652 k
 rpm-libs                i386       4.3.3-35_nonptl.el4_8  update            785 k
 rpm-python              i386       4.3.3-35_nonptl.el4_8  update             82 k
 rpmdb-CentOS            i386       2:4.8-0.20090804  base               30 M
 rsh                     i386       0.17-25.6.el4    update             40 k
 samba                   i386       3.0.33-0.34.el4  update             16 M
 samba-common            i386       3.0.33-0.34.el4  update            7.6 M
 sed                     i386       4.1.2-7.el4      base              167 k
 selinux-policy-targeted  noarch     1.17.30-2.152.el4  base              126 k
 selinux-policy-targeted-sources  noarch     1.17.30-2.152.el4  base              170 k
 sendmail                i386       8.13.1-6.el4     update            578 k
 setup                   noarch     2.5.37-4.el4_8.1  update             32 k
 shadow-utils            i386       2:4.0.3-66.el4_8.3  update            595 k
 sos                     noarch     1.7-9.35.el4     base              118 k
 spamassassin            i386       3.2.4-1.el4.1    base              1.0 M
 specspo                 noarch     9.0.92-3         base              4.3 M
 sudo                    i386       1.6.7p5-30.1.5   base              162 k
 sysklogd                i386       1.4.1-30.el4     update             69 k
 syslinux                i386       2.11-2           update            102 k
 system-config-network-tui  noarch     1.3.22.0.EL.4.6-4.el4  update            1.4 M
 tar                     i386       1.14-13.el4_8.1  update            334 k
 tcl                     i386       8.4.7-4.el4      base              898 k
 tcp_wrappers            i386       7.6-37.9.el4     base               98 k
 tcsh                    i386       6.13-10.el4_8.1  update            586 k
 tmpwatch                i386       2.9.1-1.el4.2    update             16 k
 traceroute              i386       1.4a12-27.EL4.1  base               25 k
 tzdata                  noarch     2011l-4.el4      update            466 k
 udev                    i386       039-10.31.el4    update            855 k
 unix2dos                i386       2.2-24.2         update             12 k
 unzip                   i386       5.51-10.el4      base              142 k
 up2date                 i386       4.9.1-29.el4.centos  update            2.0 M
 usermode                i386       1.74-2.el4.1     base              138 k
 util-linux              i386       2.12a-28.el4     update            1.5 M
 vim-minimal             i386       1:6.3.046-2.el4.1  base              252 k
 vixie-cron              i386       4:4.1-58.el4     update             85 k
 wget                    i386       1.10.2-1.el4_8.1  update            568 k
 xinetd                  i386       2:2.3.13-4.5.el4  base              128 k
 xmlsec1                 i386       1.2.6-3.2        update            147 k
 xmlsec1-openssl         i386       1.2.6-3.2        update             58 k
 xorg-x11-Mesa-libGL     i386       6.8.2-1.EL.70    update            390 k
 xorg-x11-deprecated-libs  i386       6.8.2-1.EL.70    update            278 k
 xorg-x11-libs           i386       6.8.2-1.EL.70    update            2.7 M
 ypbind                  i386       3:1.17.2-17.el4_8  update             34 k
 zip                     i386       2.3-29.EL4       base              114 k
Installing for dependencies:
 VFlib2                  i386       2.25.6-25        base              271 k
 chkfontpath             i386       1.10.0-2         base               13 k
 fonts-xorg-base         noarch     6.8.2-1.EL       base              7.3 M
 ghostscript             i386       7.07-33.11.el4   base              7.6 M
 ghostscript-fonts       noarch     5.50-13          base              808 k
 ttmkfdir                i386       3.0.9-20.el4     base               44 k
 urw-fonts               noarch     2.2-6.1          base              4.5 M
 xorg-x11-font-utils     i386       6.8.2-1.EL.70    update            314 k
 xorg-x11-xfs            i386       6.8.2-1.EL.70    update            327 k

Transaction Summary
=============================================================================
Install     12 Package(s)         
Update     179 Package(s)         
Remove       0 Package(s)         
Total download size: 231 M
Is this ok [y/N]: 

and ImageMagick is still not installed :(

 
beretgascon

Joined: 2012-01-04
Posts: 16
Posted: Mon, 2012-01-09 17:40

I guess I could at least update gd on php :(

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Mon, 2012-01-09 17:58
beretgascon wrote:
ImageMagick is still not installed

That obviously isn't correct since you installed it yourself earlier and posted the evidence to boot.

The G2 ImageMagick module (not the same thing as ImageMagick itself, just a module that allows the use of ImageMagick) now needs to be linked to your ImageMagick installation.

Go into the module admin page, enter the path to the ImageMagick binaries, which should be "/usr/bin" with a CentOS yum installation, and go from there.

--
dakanji.com

 
beretgascon

Joined: 2012-01-04
Posts: 16
Posted: Mon, 2012-01-09 18:35

This is why I am so confused. I did a cd in /usr/bin and IM is definitely not there.

I tried entering the path in the module admin page and it came up (unsurprisingly considering the above) The path you entered is not a valid directory or is not accessible.

I did a whereis and a which ImageMagick and it did not come up with the path to the binaries, only the archive

Once again, many thanks for your persistence :)

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Mon, 2012-01-09 19:05

I'll be very worried if I looked into my /usr/bin directory and found a binary called IM there as IM is simply a collection of utilities none of which is actually named IM. This is why I wrote "whereis ImageMagick was wrong" earlier.

One of the utilities is called convert and running "which convert" will point to the location.

The reason for your issue is most likely that your PHP is configured to operate only within specific directories as a security feature and it is blind to any directory outside this, including /usr/bin/. This feature is known as the open_basedir restriction.

Solutions: http://gallery.menalto.com/node/86348

--
dakanji.com

 
beretgascon

Joined: 2012-01-04
Posts: 16
Posted: Mon, 2012-01-09 19:36

Ok, I did a which convert and it did indeed come up with the file

I checked my php.ini file and ;open_basedir =, i.e. commented out?

 
beretgascon

Joined: 2012-01-04
Posts: 16
Posted: Mon, 2012-01-09 20:32

unzip is definitely in /usr/bin and G2 also doesn't recognise that - do these files have to be chmod'd 755 or even the directory?

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Mon, 2012-01-09 21:41
Quote:
The reason for your issue is most likely that your PHP is configured to operate only within specific directories as a security feature and it is blind to any directory outside this, including /usr/bin/.

Solutions: http://gallery.menalto.com/node/86348

--
dakanji.com

 
beretgascon

Joined: 2012-01-04
Posts: 16
Posted: Tue, 2012-01-10 14:05

Ok, since it looks like a general open_basedir problem:

I tried editing GalleryPlatform.class

	function _isRestrictedByOpenBaseDir($path, $separator, $caseSensitive) {
	return false; 

but Gallery still doesn't see the binaries directory (trying with unzip and ImageMagick).

So, I then followed your links to here: http://wiki.mediatemple.net/w/%28dv%29_4.0:Set_the_path_for_open_basedir

I added

<Directory /var/www/vhosts/domain.com/httpdocs >
php_admin_value open_basedir "/var/www/vhosts/domain.com/httpdocs:/tmp:/usr/bin"
</Directory>

to the domain's vhost.conf and restarted apache

I restored the saved original of GalleryPlatform.class (because I don't like superfluous edited files) and restarted apache.

Lo and behold, ImageMagick and Archive upload are now installed and activated! :D

I haven't tried Gallery Remote yet, but I am now more optimistic about it, so thank you so much for pointing me in the right direction and for sticking with me in this. I have learnt a little more and am a little less afraid of unix!

Many thanks!

:)

 
beretgascon

Joined: 2012-01-04
Posts: 16
Posted: Tue, 2012-01-10 17:24

Oh dear, from one frustrating experience to another. I am incredibly disappointed because I have been for years a happy G1 user. It's just that Gallery 1 was old and clunky although it did what I wanted.

Now that ImageMagick and Archive are nominally working, I have tried to upload a gallery of photos. I tried the following download options:
• From Web Browser
• From Web Page
• From Local Server
• Gallery Remote
• Upload Applet Windows

1) Uploading individual photos using the web browser is both tedious and impractical so it's a non-starter as a solution.
2) From web page did work but assumes I have my images elsewhere on the web which I haven't, they are on my hard drive.
3) From Local Server did work. I set up a remote directory called "zip" and uploaded a 61mb zip file and used this option to create an album of photos. However, 7 of 20 photos did not have either a thumbnail nor a resized image. Recreating the thumbnails from that album's home page or from my gallery's home did not resolve the problem and the thumbnails and image remain broken images.
4) Using Gallery Remote didn't work - it refuses to see my Gallery URL even though I have the URL open in my browser :( However, it did work earlier but just as in 3) above, a large proportion of the thumbs and images were broken.
5) The Upload Applet did work as well, but just as in 3) above, a large proportion of the thumbs and images were broken.

Using the methods that have worked, I have deleted the album and created another using different photos, all taken at the same time using two different cameras. And each time I get a selection of random broken images. Under Graphic Toolkits in the left-hand side, it shows GD but not IM. IM has disappeared from the list of plugins.

I was going to continue listing my problems, because at every turn I encounter another one. But I just can't spend any more on this. Honestly, I have spent hours and hours and hours on this - I don't know if it is my fault or the fault of the application or my server setup or whatever, but I am throwing in the towel.

Something like Gallery should not be this difficult. It should be installable by the average person willing to apply him/herself and willing to learn. I think I qualify as the aforementioned, but I continue to encounter problem after problem after problem. I've reached my pain threshold with this app and am moving on.

I'm going to find another album software, free or not, that simply does what it says on the tin. I am incredibly disappointed.

I will post here what I find.

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Tue, 2012-01-10 18:13
beretgascon wrote:
I'm going to find another album software, free or not, that simply does what it says on the tin. I am incredibly disappointed.

I will post here what I find.

Perhaps one of the mods would consider shutting this thread down since the issue has reached a conclusion and since no one, apart from the OP himself alone perhaps, will be particularly interested in what he ends up using.

--
dakanji.com

 
beretgascon

Joined: 2012-01-04
Posts: 16
Posted: Tue, 2012-01-10 19:13
Dayo wrote:
no one, apart from the OP himself alone perhaps, will be particularly interested in what he ends up using

I doubt that those people who have the same problems as I did will be as indifferent to what I find as you think, hope or wish. I'm sorry you feel the need to snipe at me in that way. It's not your fault Gallery didn't work for me, but it's not my fault either. I thanked you for your assistance and I'm grateful that you, amongst others, tried. But in spite of your best efforts at the time, it hasn't worked out for me.

I chose jAlbum. I downloaded, installed, created an album and uploaded it lock stock and barrel all within 15 minutes with nothing required on the server except a standard ftp account. The ease and user-friendliness of the program is such a breath of fresh air in comparison to my Gallery2 experience (as you know I haven't tried Gallery3). As jAlbum is based on Java technology it runs on a multitude of platforms besides Windows, like Linux, Mac OS, Unix. It really was a breeze. For those who feel Gallery is simply too much hard work, give it a try. They will be pleasantly surprised by how easy it is, and how professional-looking the results are. It is free, with a Pro version priced at just 39€.

http://jalbum.net/en/purchase/license

If I had been able to install Gallery as easy as that, I wouldn't have felt the need to look further afield.

Best wishes to all for a happy and peaceful 2012

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Tue, 2012-01-10 20:41

Good luck with your chosen path.

--
dakanji.com

 
natsuto

Joined: 2012-02-16
Posts: 1
Posted: Fri, 2012-02-17 01:58

The cause of your problem is most likely your PHP is configured only to operate within a specific directory as a security feature, it is the blind outside any directory, / usr / bin /.