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
Posts: 16
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
Posts: 8339
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
Posts: 1642
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
Posts: 16
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?
Posts: 16504
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!
Posts: 16
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.
Posts: 16504
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!
Posts: 1642
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 runyum install netpbm
.The install paths can be determined by
whereis ImageMagick
orwhereis 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
Posts: 16504
Thanks Dayo! I missed that (obviously)
____________________________________________
Like Gallery? Like the support? Donate now!
Posts: 1642
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
Posts: 16
Thank you so much for your answers. I will try your suggestions and I will get back to you with my results, I promise!
Posts: 16
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 installed3. 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
Posts: 16
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?
Posts: 16
No sure if this will help at all, but I guess more info is better than less...
Many thanks once again for your assistance
Posts: 1642
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
Posts: 16
Oh christ, I just did a yum upgrade and I'm now just scared:
and ImageMagick is still not installed
Posts: 16
I guess I could at least update gd on php
Posts: 1642
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
Posts: 16
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
Posts: 1642
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
Posts: 16
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?Posts: 16
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?
Posts: 1642
--
dakanji.com
Posts: 16
Ok, since it looks like a general open_basedir problem:
I tried editing GalleryPlatform.class
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
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!
Posts: 16
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.
Posts: 1642
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
Posts: 16
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
Posts: 1642
Good luck with your chosen path.
--
dakanji.com
Posts: 1
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 /.