Image problem with ezpubish 3.9 on mac [solved]

Author Message

Gerhard Sletten

Monday 15 January 2007 5:33:07 am

Been messing around trying to install the latest version of ezpublish on my mac at the office. Took me some time to figure it out, so I thought I might share it with others. Most of the problem originated from the fact that my convert shell commmand didn't work, so if you experience that you new 3.9 installation with ezwebin don't show images, please check this. Simply write "convert" into terminal.app.

<b>LAMP requirements:</b>
- Installed latest MYSQL package from http://dev.mysql.com/downloads/mysql/5.0.html
- Downloadet PHP 4.4 source from php.net and followed this recipe http://www.kyngchaos.com/macosx/install/php (more and less, I didn't care of the spesial libs)
- Had to change the etc/php.ini: "mysql.default_socket = /tmp/mysql.sock"

<b>ImageMagick convert command</b>
Think the easiest way to install this is with Fink. Download it from their homepage at http://fink.sourceforge.net/download/
The Fink download include Finkcommander, which you drop into you Application folder. Finkcommander is an GUI interface for Fink, where you can seach for ImageMagick and choose to install it from either source or binary. I went for the binary.

If you open Terminal.app now, convert should work. Run "which convert" and it will inform you where convert is located. Put this information into "settings/override/image.ini.append.php:

<?php /* #?ini charset="iso-8859-1"?

[ImageMagick]
IsEnabled=true
ExecutablePath=/usr/bin/
Executable=convert
*/ ?>

Clear the cache, and it should work!

Gerhard Sletten
www.gersh.no - Software
www.gerhardsletten.no - Blog

Jérôme Vieilledent

Friday 16 November 2007 10:44:22 am

I had a problem with ImageMagick installed with MacPorts and thanks to your post I found out that EZP needs ImageMagick to be installed in /usr/bin.
So for IM to work with EZP, if you install it with MacPorts :

Open the terminal and type :

sudo port install ImageMagick

Then make find where MacPorts installed IM and link the <i>convert</i> bin to /usr/bin :

which convert
--> /opt/local/bin/convert (do not type this line !)
sudo ln -s /opt/local/bin/convert /usr/bin

You'll probably be prompted for your admin password

If you have installed IM with true MacOSX binary (distributed on the IM website), you also should do the link.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 04:36:04
Script start
Timing: Jan 31 2025 04:36:04
Module start 'layout'
Timing: Jan 31 2025 04:36:04
Module start 'content'
Timing: Jan 31 2025 04:36:04
Module end 'content'
Timing: Jan 31 2025 04:36:04
Script end

Main resources:

Total runtime0.0172 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.3828151.2422
Module start 'layout' 0.00550.0032 739.625036.7109
Module start 'content' 0.00880.0069 776.335990.3438
Module end 'content' 0.01560.0015 866.679733.9922
Script end 0.0171  900.6719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002313.6177140.0002
Check MTime0.00116.1775140.0001
Mysql Total
Database connection0.00053.199210.0005
Mysqli_queries0.004124.046030.0014
Looping result0.00000.098610.0000
Template Total0.00106.010.0010
Template load0.00084.713410.0008
Template processing0.00021.269710.0002
Override
Cache load0.00063.333910.0006
General
dbfile0.002112.182880.0003
String conversion0.00000.051440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs