Installing 4.1.1 on OS X - issue with iconv

Author Message

Jani Tarvainen

Sunday 10 May 2009 1:08:04 pm

eZ Publish 4.1.1 requires iconv support to be enabled in PHP. Normally installation is a snap, but Idiscovered that it is quite tricky to get iconv support to work on OS X (at least using PHP built from source and iconv from Ports installed). And to just to be clear - this is not an issue with eZ Publish, just the platform :)

Just incase you hit the same issue - here are the steps that worked for me (OS X 10.5.6, PHP 5.2.9):

- get PHP source, extract, etc., have your current configure command available (from phpinfo(), for example)
- run configure: ./configure --with-apxs2
- run make
- reconfigure with your current configure command (remove "--with-apxs2" and make sure you use: --with-iconv=/opt/local)
- make
- make install
- restart apache

More info: http://bugs.php.net/bug.php?id=43189

--
http://ezpublish.fi/

Ɓukasz Serwatka

Monday 11 May 2009 12:14:00 am

Hi,

Thanks for sharing your experience. Another easy way is to just install PHP via MacPorts[1] where the iconv is enabled by default. Works great in my environment.

Using MAMP[2] should be easy as well, it has iconv enabled too.

[1] http://www.macports.org/
[2] http://www.mamp.info/en/index.html

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Jani Tarvainen

Thursday 14 May 2009 9:01:31 pm

If I would do a clean install I would install the PHP package from entropy.ch. It has pretty much everything built in and installation is a snap: http://www.entropy.ch/phpbb2/viewtopic.php?t=3937&sid=a96908f62deacc8232d36b36438ffcb7

--
http://ezpublish.fi/

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 30 2025 19:46:49
Script start
Timing: Jan 30 2025 19:46:49
Module start 'layout'
Timing: Jan 30 2025 19:46:49
Module start 'content'
Timing: Jan 30 2025 19:46:49
Module end 'content'
Timing: Jan 30 2025 19:46:49
Script end

Main resources:

Total runtime0.0383 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0096 588.3672151.2266
Module start 'layout' 0.00960.0048 739.5938220.7188
Module start 'content' 0.01440.0222 960.3125997.8672
Module end 'content' 0.03660.0016 1,958.179733.9922
Script end 0.0382  1,992.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.004712.2496140.0003
Check MTime0.00133.3050140.0001
Mysql Total
Database connection0.00071.745710.0007
Mysqli_queries0.00379.794730.0012
Looping result0.00000.036810.0000
Template Total0.00102.610.0010
Template load0.00082.013010.0008
Template processing0.00020.619510.0002
Override
Cache load0.00051.404110.0005
General
dbfile0.004812.505180.0006
String conversion0.00000.023140.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