How do I customize NetPBM or ImageMagick?

danmaher

Joined: 2007-01-23
Posts: 20
Posted: Tue, 2011-03-08 04:52

Someone hacked my gallery so I:
- copied out the config.php file
- reinstalled Gallery2 over top of the old install
- exported the database tables
- created a new database/user
- imported the database tables
- modified config.php to point to the new database with the old database tables
- site looks just like it did before it got hacked

My gallery works great except I can't create any thumbnails so adding images fails at the point where it creates the reduced image sizes. And when I click on any images that I added, it gives me a broken thumbnail image. The GD toolkit is just not working.

Now ImageMagick and NetPBM are installed by default with the new Gallery2 install but once I changed the config.php to point back to my old database tables, I had to reconfigure both of these extra toolkits. Finally, here's my question. What's the path I put into the configuration for either of these to get them to work? They must be there somewhere because they were working fine on the new Gallery2 install before I messed with the config.php file.

Thanks.

 
danmaher

Joined: 2007-01-23
Posts: 20
Posted: Tue, 2011-03-08 05:38

Got it, the NetPBM configuration is /usr/bin/

 
personaltouch

Joined: 2011-08-18
Posts: 1
Posted: Thu, 2011-08-18 10:01

My gallery was also recently hacked. i did as you did; removed and all files, removed the hacked files and reuplaoded everything. Everything works great except for when I went to adda new gallery no thumbnails were generated.

When I go to Add items for a new sub gallery I get "You don't have any Graphics Toolkit activated that can handle JPEG images. If you add images, you will probably not have any thumbnails. Visit the Modules page to activate a Graphics Toolkit."

So when i visit the Modules Page to activate a Graphics Tool Kit it shows that none are activated. I'd like to use NetBPM which seems to be configured but not activated. When I click activate I receive the following [img]error message: [/img]

Error (ERROR_BAD_PATH) : "/usr/bin/" is not a directory or is not specified in open_basedir.

* in modules/netpbm/classes/NetPbmToolkitHelper.class at line 230 (GalleryCoreApi::error)
* in modules/netpbm/classes/NetPbmToolkitHelper.class at line 52 (NetPbmToolkitHelper::testBinaries)
* in modules/netpbm/module.inc at line 211 (NetPbmToolkitHelper::getOperationsAndProperties)
* in modules/core/PluginCallback.inc at line 180 (NetPbmModule::activate)
* in modules/core/PluginCallback.inc at line 67 (PluginCallbackView::handleCallback)
* in main.php at line 450 (PluginCallbackView::renderImmediate)
* in main.php at line 104
* in main.php at line 88

System Information
Gallery version 2.3
PHP version 5.2.17 cgi-fcgi
Webserver Apache/2.0.54
Database mysqlt 4.1.25-Debian_mt1-log
Toolkits Thumbnail
Operating system Linux cl35 2.6.39.3mtv7 #1 SMP Wed Jul 27 12:12:27 UTC 2011 i686
Browser Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.20) Gecko/20110803 Firefox/3.6.20

I have no idea how to fix this issue. I can access the netpbm folder through my ftp no problem but am not sure what file I should add/specify the necessary directory. (If that's the issue at all)
Please advise. Thanks.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2011-08-18 12:24

open_basedir is a serverside security setting, not a gallery setting.
There are literally hundreds of comments on the subject in these forums.
http://www.google.com/search?q=open_basedir+restriction+site%3Agallery.menalto.com

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