[Typo3-linux] Problems using ImageMagick at the german provider greatnet

Arne Brombach arne.brombach at gmxpro.de
Sun Jun 22 23:08:14 CEST 2003


Hello,

the german provider greatnet (http://www.greatnet.de/) provides a package
named "plus", which has all the prerequisits for typo3 at a cost of EUR 3,09
per month. I was very curious about this, because most of the providers I
know want at least 10 Euro per month for this.

I tried. Most of the things (apache, php4 and mysql) worked immediatly, but
ImageMagick was not working as expected (A well known problem). Together
with greatnet support I found three issues, one was allready reported on the
list, the other one seams to be new (as far as I have searched the archive
of this list) and one is still not solved:

1. ImageMagick is not installed in the open_basedir

The open_basedir at greatnet is set to the document root of the account
(/home/www/web265 in my case), but ImageMagick is installed in /usr/bin/.
Line 1424 in module t3lib/class.t3lib_install.php tries to find ImageMagick
with the file_exists()-function, but it does not seem to check, if the given
path could be outside open_basedir. I applied a workaround for this and
changed line 1424 to:

if ($this->_checkImageMagick_getVersion($v.$filename.$isExt) > 0)

This was allready posted for a swiss hoster and it worked here, too. Perhaps
this could be changed in future revisions of the system.

2. Safe mode _not_ set

Something is strange about the safe_mode. At greatnet in phpinfo(), the
"local value" is "off", but the "master value" is "on". The install tool
says:

      >Safe mode turned on
      >safe_mode=off


I can execute binaries from any locations, so it seems to be off. But since
typo3 believes, the safe_mode is turned on, ImageMagick is not found and
executed in part 3 of the install module. I had to change line 603 of
t3lib/class.t3lib_install.php and put the path, where ImageMagick resides:

$paths=array(ini_get("safe_mode_exec_dir"),"/usr/bin/");

I did not dig much more into the safe_mode-problem after it was solved, but
I think, the behaviour of typo3 or php is not correct in this case?

ImageMagick is running now, but

3. Composite is not working as expected

Greatnet runs composite 5.3.8, but it does not seem to combine the images.
For example in test number 4 (combining Jesus) when runnig this test:

>/usr/bin/composite -compose over
>/home/www/web265/html/freesite/typo3/ext/install/imgs/greenback.gif
>/home/www/web265/html/freesite/typo3/ext/install/imgs/jesus.jpg
>/home/www/web265/html/freesite/typo3/ext/install/imgs/blackwhite_mask.gif
>/home/www/web265/html/freesite/typo3temp/install_44f1273ab1.jpg

the resulting image is simply green. Changing the flags im_negate_ and
im_imvMask in any combination does not help. Because composite is not
working correctly, all the dynamic menu-generations do not work.

Any ideas about this?

The debug-information:

### DEBUG SYSTEM INFORMATION - START ###
HTTP_HOST           : www.arne-brombach.de
TYPO3_HOST_ONLY     : www.arne-brombach.de
TYPO3_PORT          :
PATH_INFO           :
QUERY_STRING        : TYPO3_INSTALL[type]=phpinfo
REQUEST_URI         :
/freesite/typo3/install/index.php?TYPO3_INSTALL[type]=phpinfo
HTTP_REFERER        :
http://www.arne-brombach.de/freesite/typo3/install/index.php?TYPO3_INSTALL[type]=about
TYPO3_REQUEST_HOST  : http://www.arne-brombach.de
TYPO3_REQUEST_URL   :
http://www.arne-brombach.de/freesite/typo3/install/index.php?TYPO3_INSTALL[type]=phpinfo
TYPO3_REQUEST_SCRIPT:
http://www.arne-brombach.de/freesite/typo3/install/index.php
TYPO3_REQUEST_DIR   : http://www.arne-brombach.de/freesite/typo3/install/
TYPO3_SITE_URL      : http://www.arne-brombach.de/freesite/
SCRIPT_NAME         : /freesite/typo3/install/index.php
TYPO3_DOCUMENT_ROOT : /home/www/web265/html
SCRIPT_FILENAME     : /home/www/web265/html/freesite/typo3/install/index.php
REMOTE_ADDR         : 217.235.17.40
REMOTE_HOST         :
HTTP_USER_AGENT     : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
HTTP_ACCEPT_LANGUAGE: de
CONST: PHP_OS       : Linux
CONST: TYPO3_OS     :
CONST: PATH_thisScri: /home/www/web265/html/freesite/typo3/install/index.php
CONST: php_sapi_name: apache
OTHER: TYPO3_VERSION: 3.5.0
OTHER: PHP_VERSION  : 4.3.1
imagecreatefromgif(): 1
imagecreatefrompng(): 1
imagecreatefromjpeg(: 1
imagegif()          :
imagepng()          : 1
imagejpeg()         : 1
imagettftext()      : 1
OTHER: IMAGE_TYPES  : 14
OTHER: memory_limit : 8M
SERVER: SERVER_PORT : 80
SERVER: SERVER_SOFTW: Apache/1.3.20 (Linux/SuSE) mod_ssl/2.8.4
OpenSSL/0.9.6b PHP/4.3.1 FrontPage/4.0.4.3
SERVER: GATEWAY_INTE: CGI/1.1
SERVER: SCRIPT_NAME : /freesite/typo3/install/index.php
SERVER: PATH_TRANSLA: /home/www/web265/html/freesite/typo3/install/index.php
T3CV_GFX: image_proc: 1
T3CV_GFX: gdlib     : 1
T3CV_GFX: gdlib_png : 1
T3CV_GFX: gdlib_2   : 1
T3CV_GFX: im        : 1
T3CV_GFX: im_path   : /usr/bin/
T3CV_GFX: im_path_lz:
T3CV_GFX: im_version: 1
T3CV_GFX: im_negate_: 0
T3CV_GFX: im_imvMask: 1
T3CV_GFX: im_combine: composite
### DEBUG SYSTEM INFORMATION - END ###

--
regards
Arne.





More information about the TYPO3-linux mailing list