Ubuntu x86_64 - ImageMagick Issue

Trouble during PacsOne Server installations
Post Reply
receptiveit
Posts:4
Joined:Fri Jan 16, 2009 12:07 am
Ubuntu x86_64 - ImageMagick Issue

Post by receptiveit » Fri Jan 16, 2009 12:38 am

I have just downloaded and installed the 64bit version of PacsOne. For anyone else reading this post looking for answers, I will list the issues that I had, and have solved.

1) libtool checking - Even though I installed the version of libtool from the Ubuntu repository, the install.sh file tries to use "test -a", which doesn't work. I knew that I had it installed, so I commented out the test.

2) symlink - Ubuntu starts in runlevel 2, and stops in runlevel 6. I created the S01pacsone and K99pacsone symlink in their respecitve directories.

3) apache - I made the mistake of making a symlink from the apache document root to the php directory of pacsone. I have since used an alias, as documented in the install document, and all is well.

All in all, it was trouble free until this point.

I am using the version of imagemagick included in the pacsone tar, but when I go to the login page, I get the following error.

Fatal error: imagick_readimage(): after ReadImage(), image is empty in /data/pacsone/php/login.php on line 62

Line 62 in login.php is where the antispam.jpg file is loaded. I have confirmed that the file exists, and is readable by the web server.

root@vet-1:/tmp# ls -al /data/pacsone/php/antispam.jpg
-rwxrwxrwx 1 root root 998 2004-03-27 13:37 /data/pacsone/php/antispam.jpg
root@vet-1:/tmp# find / -name jpeg.so -print
/data/pacsone/ImageMagick/ImageMagick-5.5.6-Q16/modules/coders/.libs/jpeg.so
/usr/local/lib/ImageMagick-5.5.6-Q16/modules/coders/.libs/jpeg.so
/usr/local/lib/ImageMagick-5.5.6-Q16/modules/coders/jpeg.so

I am guessing that imagemagick is choking on the jpeg file, and returning a null value to php, which causes the login.php to stop.

It would probably be a good idea to make some sticky posts regarding common issues, and possibly installation on common distributions. I would be glad to help.

Below is the output from Hello.php

PHP Version 5.2.4-2ubuntu5.4


System Linux vet-1 2.6.24-17-server #1 SMP Thu May 1 14:28:06 UTC 2008 x86_64
Build Date Nov 25 2008 23:29:57
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php5/apache2
Loaded Configuration File /etc/php5/apache2/php.ini
Scan this dir for additional .ini files /etc/php5/apache2/conf.d
additional .ini files parsed /etc/php5/apache2/conf.d/gd.ini, /etc/php5/apache2/conf.d/imagick-pacsone.ini, /etc/php5/apache2/conf.d/mysql.ini, /etc/php5/apache2/conf.d/mysqli.ini, /etc/php5/apache2/conf.d/pdo.ini, /etc/php5/apache2/conf.d/pdo_mysql.ini
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams zip, php, file, data, http, ftp, compress.bzip2, compress.zlib, https, ftps
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*

This server is protected with the Suhosin Patch 0.9.6.2
Copyright (c) 2006 Hardened-PHP Project

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

PHP Credits

Configuration

PHP Core

Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
allow_url_include Off Off
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl Off Off
error_append_string no value no value
error_log syslog syslog
error_prepend_string no value no value
error_reporting 6135 6135
expose_php On On
extension_dir /usr/lib/php5/20060613 /usr/lib/php5/20060613
file_uploads On On
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/share/php:/usr/share/pear .:/usr/share/php:/usr/share/pear
log_errors On On
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters no value no value
max_execution_time 30 30
max_input_nesting_level 64 64
max_input_time 60 60
memory_limit 128M 128M
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 8M 8M
precision 12 12
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv On On
register_globals Off Off
register_long_arrays On On
report_memleaks On On
report_zend_debug On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
suhosin.log.phpscript 0 0
suhosin.log.phpscript.is_safe Off Off
suhosin.log.phpscript.name no value no value
suhosin.log.sapi no value no value
suhosin.log.script no value no value
suhosin.log.script.name no value no value
suhosin.log.syslog no value no value
suhosin.log.syslog.facility no value no value
suhosin.log.syslog.priority no value no value
suhosin.log.use-x-forwarded-for Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.ze1_compatibility_mode Off Off

apache2handler

Apache Version Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.4 with Suhosin-Patch
Apache API Version 20051115
Server Administrator webmaster@localhost
Hostname:Port vet-1.canberravet:0
User/Group www-data(33)/33
Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 15
Virtual Server Yes
Server Root /etc/apache2
Loaded Modules core mod_log_config mod_logio prefork http_core mod_so mod_alias mod_auth_basic mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_dir mod_env mod_mime mod_negotiation mod_php5 mod_setenvif mod_status

Directive Local Value Master Value
engine 1 1
last_modified 0 0
xbithack 0 0

Apache Environment

Variable Value
HTTP_USER_AGENT Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1
HTTP_ACCEPT text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_LANGUAGE en-us
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_COOKIE __utmz=9975207.1232056387.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=9975207.56978189320922440.1232056387.1232056387.1232056387.1; __utmc=9975207; PHPSESSID=82981384c6d92896dc00e545e9d3fbe6
HTTP_CONNECTION keep-alive
HTTP_HOST ns1.canberravet.com.au
PATH /usr/local/bin:/usr/bin:/bin
SERVER_SIGNATURE <address>Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.4 with Suhosin-Patch Server at ns1.canberravet.com.au Port 80</address>
SERVER_SOFTWARE Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.4 with Suhosin-Patch
SERVER_NAME ns1.canberravet.com.au
SERVER_ADDR 192.168.1.18
SERVER_PORT 80
REMOTE_ADDR 202.173.134.75
DOCUMENT_ROOT /var/www/intranet/
SERVER_ADMIN webmaster@localhost
SCRIPT_FILENAME /data/pacsone/php/Hello.php
REMOTE_PORT 65259
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /pacsone/Hello.php
SCRIPT_NAME /pacsone/Hello.php

HTTP Headers Information

HTTP Request Headers
HTTP Request GET /pacsone/Hello.php HTTP/1.1
User-Agent Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1
Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language en-us
Accept-Encoding gzip, deflate
Cookie __utmz=9975207.1232056387.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=9975207.56978189320922440.1232056387.1232056387.1232056387.1; __utmc=9975207; PHPSESSID=82981384c6d92896dc00e545e9d3fbe6
Connection keep-alive
Host ns1.canberravet.com.au
HTTP Response Headers
X-Powered-By PHP/5.2.4-2ubuntu5.4
Expires Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma no-cache
Keep-Alive timeout=15, max=100
Connection Keep-Alive
Transfer-Encoding chunked
Content-Type text/html

bcmath

BCMath support enabled

bz2

BZip2 Support Enabled
Stream Wrapper support compress.bz2://
Stream Filter support bzip2.decompress, bzip2.compress
BZip2 Version 1.0.4, 20-Dec-2006

calendar

Calendar support enabled

ctype

ctype functions enabled

date

date/time support enabled
"Olson" Timezone Database Version 0.system
Timezone Database internal
Default timezone Australia/Melbourne

Directive Local Value Master Value
date.default_latitude 31.7667 31.7667
date.default_longitude 35.2333 35.2333
date.sunrise_zenith 90.583333 90.583333
date.sunset_zenith 90.583333 90.583333
date.timezone no value no value

dba

DBA support enabled
Supported handlers cdb cdb_make db4 inifile flatfile

dom

DOM/XML enabled
DOM/XML API Version 20031129
libxml Version 2.6.31
HTML Support enabled
XPath Support enabled
XPointer Support enabled
Schema Support enabled
RelaxNG Support enabled

exif

EXIF Support enabled
EXIF Version 1.4 $Id: exif.c,v 1.173.2.5.2.20 2007/06/10 20:12:45 iliaa Exp $
Supported EXIF Version 0220
Supported filetypes JPEG,TIFF

filter

Input Validation and Filtering enabled
Revision $Revision: 1.52.2.39 $

Directive Local Value Master Value
filter.default unsafe_raw unsafe_raw
filter.default_flags no value no value

ftp

FTP support enabled

gd

GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.5
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled

gettext

GetText Support enabled

hash

hash support enabled
Hashing Engines md2 md4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5

iconv

iconv support enabled
iconv implementation glibc
iconv library version 2.7

Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1

imagick

ImageMagick support enabled
Magick Backend ImageMagick
ImageMagick version 5.5.6
PHP imagick version 0.9.11
MaxRGB 65535
Supported image formats IMPLICIT
Font Family - Name AvantGarde - AvantGarde-Book
Font Family - Name AvantGarde - AvantGarde-BookOblique
Font Family - Name AvantGarde - AvantGarde-Demi
Font Family - Name AvantGarde - AvantGarde-DemiOblique
Font Family - Name Bookman - Bookman-Demi
Font Family - Name Bookman - Bookman-DemiItalic
Font Family - Name Bookman - Bookman-Light
Font Family - Name Bookman - Bookman-LightItalic
Font Family - Name Courier - Courier
Font Family - Name Courier - Courier-Bold
Font Family - Name Courier - Courier-Oblique
Font Family - Name Courier - Courier-BoldOblique
Font Family - Name Helvetica - Helvetica
Font Family - Name Helvetica - Helvetica-Bold
Font Family - Name Helvetica - Helvetica-Oblique
Font Family - Name Helvetica - Helvetica-BoldOblique
Font Family - Name Helvetica Narrow - Helvetica-Narrow
Font Family - Name Helvetica Narrow - Helvetica-Narrow-Oblique
Font Family - Name Helvetica Narrow - Helvetica-Narrow-Bold
Font Family - Name Helvetica Narrow - Helvetica-Narrow-BoldOblique
Font Family - Name NewCenturySchlbk - NewCenturySchlbk-Roman
Font Family - Name NewCenturySchlbk - NewCenturySchlbk-Italic
Font Family - Name NewCenturySchlbk - NewCenturySchlbk-Bold
Font Family - Name NewCenturySchlbk - NewCenturySchlbk-BoldItalic
Font Family - Name Palatino - Palatino-Roman
Font Family - Name Palatino - Palatino-Italic
Font Family - Name Palatino - Palatino-Bold
Font Family - Name Palatino - Palatino-BoldItalic
Font Family - Name Times - Times-Roman
Font Family - Name Times - Times-Bold
Font Family - Name Times - Times-Italic
Font Family - Name Times - Times-BoldItalic
Font Family - Name Symbol - Symbol

json

json support enabled
json version 1.2.1

libxml

libXML support active
libXML Version 2.6.31
libXML streams enabled

mbstring

Multibyte Support enabled
Multibyte string engine libmbfl
Multibyte (japanese) regex support enabled
Multibyte regex (oniguruma) version 4.4.4
Multibyte regex (oniguruma) backtrack check On

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Directive Local Value Master Value
mbstring.detect_order no value no value
mbstring.encoding_translation Off Off
mbstring.func_overload 0 0
mbstring.http_input pass pass
mbstring.http_output pass pass
mbstring.internal_encoding no value no value
mbstring.language neutral neutral
mbstring.strict_detection Off Off
mbstring.substitute_character no value no value

mcrypt

mcrypt support enabled
Version 2.5.7
Api No 20021217
Supported ciphers cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes
Supported modes cbc cfb ctr ecb ncfb nofb ofb stream

Directive Local Value Master Value
mcrypt.algorithms_dir no value no value
mcrypt.modes_dir no value no value

mime_magic

mime_magic support invalid magic file, disabled

Directive Local Value Master Value
mime_magic.debug Off Off
mime_magic.magicfile /usr/share/file/magic.mime /usr/share/file/magic.mime

mysql

MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 5.0.51a
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient

Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off

mysqli

MysqlI Support enabled
Client API library version 5.0.51a
Client API header version 5.0.51a
MYSQLI_SOCKET /var/run/mysqld/mysqld.sock

Directive Local Value Master Value
mysqli.default_host no value no value
mysqli.default_port 3306 3306
mysqli.default_pw no value no value
mysqli.default_socket no value no value
mysqli.default_user no value no value
mysqli.max_links Unlimited Unlimited
mysqli.reconnect Off Off

openssl

OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.8g 19 Oct 2007

pcre

PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 7.4 2007-09-21

Directive Local Value Master Value
pcre.backtrack_limit 100000 100000
pcre.recursion_limit 100000 100000

PDO

PDO support enabled
PDO drivers mysql

pdo_mysql

PDO Driver for MySQL, client library version 5.0.51a

posix

Revision $Revision: 1.70.2.3.2.16 $

Reflection

Reflection enabled
Version $Id: php_reflection.c,v 1.164.2.33.2.45 2007/08/20 17:01:22 sebastian Exp $

session

Session Support enabled
Registered save handlers files user
Registered serializer handlers php php_binary wddx

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_httponly Off Off
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 0 0
session.hash_bits_per_character 4 4
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid 0 0

shmop

shmop support enabled

SimpleXML

Simplexml support enabled
Revision $Revision: 1.151.2.22.2.35 $
Schema support enabled

soap

Soap Client enabled
Soap Server enabled

Directive Local Value Master Value
soap.wsdl_cache 1 1
soap.wsdl_cache_dir /tmp /tmp
soap.wsdl_cache_enabled 1 1
soap.wsdl_cache_limit 5 5
soap.wsdl_cache_ttl 86400 86400

sockets

Sockets Support enabled

SPL

SPL support enabled
Interfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RegexIterator, RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException

standard

Regex Library Bundled library enabled
Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i

Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,input=src,form=,fieldset= a=href,area=href,frame=src,input=src,form=,fieldset=
user_agent no value no value

sysvmsg

sysvmsg support enabled
Revision $Revision: 1.20.2.3.2.6 $

tokenizer

Tokenizer Support enabled

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Fri Jan 16, 2009 3:11 am

Check if any of the dependent libraries for jpeg.so is missing:

Code: Select all

# ldd /usr/local/lib/ImageMagick-5.5.6-Q16/modules/coders/jpeg.so

receptiveit
Posts:4
Joined:Fri Jan 16, 2009 12:07 am

Post by receptiveit » Fri Jan 16, 2009 3:16 am

All appears to be fine there.

root@vet-1:/tmp# ldd /usr/local/lib/ImageMagick-5.5.6-Q16/modules/coders/jpeg.so
linux-vdso.so.1 => (0x00007fffbe7fe000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007fe8b61a9000)
libMagick-5.5.6-Q16.so.0 => /usr/local/lib/libMagick-5.5.6-Q16.so.0 (0x00007fe8b5e52000)
libc.so.6 => /lib/libc.so.6 (0x00007fe8b5aef000)
libz.so.1 => /usr/lib/libz.so.1 (0x00007fe8b58d8000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00007fe8b56c7000)
libSM.so.6 => /usr/lib/libSM.so.6 (0x00007fe8b54be000)
libICE.so.6 => /usr/lib/libICE.so.6 (0x00007fe8b52a3000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fe8b4fa0000)
libbz2.so.1 => /lib/libbz2.so.1 (0x00007fe8b4d8f000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fe8b4b73000)
libm.so.6 => /lib/libm.so.6 (0x00007fe8b48f2000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fe8b46ed000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe8b665c000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fe8b44eb000)
libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0x00007fe8b42ea000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fe8b40ce000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fe8b3ec9000)

receptiveit
Posts:4
Joined:Fri Jan 16, 2009 12:07 am

Post by receptiveit » Fri Jan 16, 2009 3:42 am

I just did an strace of apache2. It clearly shows the correct version of ImageMagick opened, and the jpeg.so library. I thought this might be interesting.

26828 access("/data/pacsone/php/largeLogo.jpg", F_OK) = 0
26828 stat("/data/pacsone/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
26828 open("/data/pacsone/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|0x80000) = 13
26828 fstat(13, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
26828 getdents(13, /* 29 entries */, 4096) = 920
26828 lstat("/data/pacsone/.", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
26828 lstat("/data/pacsone/..", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
26828 lstat("/data/pacsone/ImageMagick", {st_mode=S_IFDIR|0755, st_size=48, ...}) = 0
26828 lstat("/data/pacsone/OpenJPEG", {st_mode=S_IFDIR|0775, st_size=8, ...}) = 0
26828 lstat("/data/pacsone/PacsOne.exe", {st_mode=S_IFREG|0755, st_size=3840024, ...}) = 0
26828 lstat("/data/pacsone/PacsOneHL7.exe", {st_mode=S_IFREG|0755, st_size=1765648, ...}) = 0
26828 lstat("/data/pacsone/PacsOneSrv.exe", {st_mode=S_IFREG|0755, st_size=1304000, ...}) = 0
26828 lstat("/data/pacsone/Setup.exe", {st_mode=S_IFREG|0755, st_size=1345128, ...}) = 0
26828 lstat("/data/pacsone/Vet1.ini", {st_mode=S_IFREG|0644, st_size=816, ...}) = 0
26828 lstat("/data", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
26828 lstat("/data/pacsone", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
26828 lstat("/data/pacsone/Vet1.ini", {st_mode=S_IFREG|0644, st_size=816, ...}) = 0
26828 open("/data/pacsone/Vet1.ini", O_RDONLY) = 14
26828 fstat(14, {st_mode=S_IFREG|0644, st_size=816, ...}) = 0
26828 lseek(14, 0, SEEK_CUR) = 0
26828 fstat(14, {st_mode=S_IFREG|0644, st_size=816, ...}) = 0
26828 mmap(NULL, 816, PROT_READ, MAP_SHARED, 14, 0) = 0x7f27ad492000
26828 munmap(0x7f27ad492000, 816) = 0
26828 close(14) = 0
26828 lstat("/data/pacsone/cd", {st_mode=S_IFDIR|0775, st_size=1, ...}) = 0
26828 lstat("/data/pacsone/conformance.txt", {st_mode=S_IFREG|0644, st_size=46855, ...}) = 0
26828 lstat("/data/pacsone/db_schema", {st_mode=S_IFREG|0644, st_size=40420, ...}) = 0
26828 lstat("/data/pacsone/dvd", {st_mode=S_IFDIR|0775, st_size=1, ...}) = 0
26828 lstat("/data/pacsone/export", {st_mode=S_IFDIR|0775, st_size=1, ...}) = 0
26828 lstat("/data/pacsone/ffmpeg", {st_mode=S_IFDIR|0775, st_size=8, ...}) = 0
26828 lstat("/data/pacsone/import", {st_mode=S_IFDIR|0775, st_size=1, ...}) = 0
26828 lstat("/data/pacsone/install.sh", {st_mode=S_IFREG|0755, st_size=4674, ...}) = 0
26828 lstat("/data/pacsone/license.dat", {st_mode=S_IFREG|0644, st_size=256, ...}) = 0
26828 lstat("/data/pacsone/license.expire", {st_mode=S_IFREG|0644, st_size=27, ...}) = 0
26828 lstat("/data/pacsone/license.txt", {st_mode=S_IFREG|0644, st_size=1400, ...}) = 0
26828 lstat("/data/pacsone/log", {st_mode=S_IFDIR|0755, st_size=32, ...}) = 0
26828 lstat("/data/pacsone/mysql", {st_mode=S_IFDIR|0755, st_size=16, ...}) = 0
26828 lstat("/data/pacsone/pacsone", {st_mode=S_IFREG|0755, st_size=2691, ...}) = 0
26828 lstat("/data/pacsone/pacsone.base", {st_mode=S_IFREG|0644, st_size=2290, ...}) = 0
26828 lstat("/data/pacsone/pacsone.pid", {st_mode=S_IFREG|0644, st_size=6, ...}) = 0
26828 lstat("/data/pacsone/php", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
26828 lstat("/data/pacsone/readme.txt", {st_mode=S_IFREG|0644, st_size=17832, ...}) = 0
26828 lstat("/data/pacsone/uninstall.sh", {st_mode=S_IFREG|0755, st_size=1066, ...}) = 0
26828 lstat("/data/pacsone/upgrade_schema", {st_mode=S_IFREG|0644, st_size=43857, ...}) = 0
26828 getdents(13, /* 0 entries */, 4096) = 0
26828 close(13) = 0
26828 access("/data/pacsone/no.antispam.code", F_OK) = -1 ENOENT (No such file or directory)
26828 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
26828 open("/proc/meminfo", O_RDONLY) = 13
26828 fstat(13, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
26828 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f27ad492000
26828 read(13, "MemTotal: 3976304 kB\nMemFre"..., 1024) = 748
26828 close(13) = 0
26828 munmap(0x7f27ad492000, 4096) = 0
26828 open("/usr/local/lib/ImageMagick-5.5.6-Q16/log.mgk", O_RDONLY) = 13
26828 lseek(13, 0, SEEK_END) = 232
26828 mmap(NULL, 232, PROT_READ, MAP_PRIVATE, 13, 0) = 0x7f27ad492000
26828 munmap(0x7f27ad492000, 232) = 0
26828 close(13) = 0
26828 times({tms_utime=0, tms_stime=1, tms_cutime=0, tms_cstime=0}) = 5335332191
26828 times({tms_utime=0, tms_stime=1, tms_cutime=0, tms_cstime=0}) = 5335332191
26828 stat("/usr/local/lib/ImageMagick-5.5.6-Q16/modules/coders/modules.mgk", {st_mode=S_IFREG|0644, st_size=2744, ...}) = 0
26828 open("/usr/local/lib/ImageMagick-5.5.6-Q16/modules/coders/modules.mgk", O_RDONLY) = 13
26828 lseek(13, 0, SEEK_END) = 2744
26828 mmap(NULL, 2744, PROT_READ, MAP_PRIVATE, 13, 0) = 0x7f27ad492000
26828 munmap(0x7f27ad492000, 2744) = 0
26828 close(13) = 0
26828 times({tms_utime=0, tms_stime=1, tms_cutime=0, tms_cstime=0}) = 5335332191
26828 times({tms_utime=0, tms_stime=1, tms_cutime=0, tms_cstime=0}) = 5335332191
26828 open("/data/pacsone/php/antispam.jpg", O_RDONLY) = 13
26828 fstat(13, {st_mode=S_IFREG|0777, st_size=998, ...}) = 0
26828 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f27ad492000
26828 read(13, "\377\330\377\340\0\20JFIF\0\1\1\0\0\1\0\1\0\0\377\333\0"..., 4096) = 998
26828 read(13, "", 4096) = 0
26828 lseek(13, 0, SEEK_SET) = 0
26828 open("/usr/local/lib/ImageMagick-5.5.6-Q16/modules/coders/jpeg.la", O_RDONLY) = 14
26828 fstat(14, {st_mode=S_IFREG|0755, st_size=764, ...}) = 0
26828 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f27ad491000
26828 read(14, "# jpeg.la - a libtool library fi"..., 4096) = 764
26828 read(14, "", 4096) = 0
26828 close(14) = 0
26828 munmap(0x7f27ad491000, 4096) = 0
26828 open("/usr/local/lib/ImageMagick-5.5.6-Q16/modules/coders/jpeg.so", O_RDONLY) = 14
26828 read(14, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340G\0\0"..., 832) = 832
26828 fstat(14, {st_mode=S_IFREG|0755, st_size=197935, ...}) = 0
26828 mmap(NULL, 2268448, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 14, 0) = 0x7f27a1bef000
26828 mprotect(0x7f27a1c19000, 2093056, PROT_NONE) = 0
26828 mmap(0x7f27a1e18000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 14, 0x29000) = 0x7f27a1e18000
26828 close(14) = 0
26828 fstat(13, {st_mode=S_IFREG|0777, st_size=998, ...}) = 0
26828 fstat(13, {st_mode=S_IFREG|0777, st_size=998, ...}) = 0
26828 read(13, "\377\330\377\340\0\20JFIF\0\1\1\0\0\1\0\1\0\0\377\333\0"..., 4096) = 998
26828 read(13, "", 4096) = 0
26828 fstat(13, {st_mode=S_IFREG|0777, st_size=998, ...}) = 0
26828 close(13) = 0
26828 munmap(0x7f27ad492000, 4096) = 0
26828 futex(0xa041c0, 0x81 /* FUTEX_??? */, 1) = 0
26828 futex(0xa041c0, 0x81 /* FUTEX_??? */, 1) = 0
26828 futex(0xa04180, 0x81 /* FUTEX_??? */, 1) = 0
26828 stat("/usr/local/lib/ImageMagick-5.5.6-Q16/magic.mgk", {st_mode=S_IFREG|0644, st_size=4452, ...}) = 0
26828 open("/usr/local/lib/ImageMagick-5.5.6-Q16/magic.mgk", O_RDONLY) = 13
26828 lseek(13, 0, SEEK_END) = 4452
26828 mmap(NULL, 4452, PROT_READ, MAP_PRIVATE, 13, 0) = 0x7f27ad491000
26828 munmap(0x7f27ad491000, 4452) = 0
26828 close(13) = 0
26828 brk(0xa88000) = 0xa88000
26828 brk(0xaa9000) = 0xaa9000
26828 times({tms_utime=0, tms_stime=1, tms_cutime=0, tms_cstime=0}) = 5335332192
26828 times({tms_utime=0, tms_stime=1, tms_cutime=0, tms_cstime=0}) = 5335332192
26828 open("/data/pacsone/php/antispam.jpg", O_RDONLY) = 13
26828 fstat(13, {st_mode=S_IFREG|0777, st_size=998, ...}) = 0
26828 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f27ad492000
26828 read(13, "\377\330\377\340\0\20JFIF\0\1\1\0\0\1\0\1\0\0\377\333\0"..., 4096) = 998
26828 read(13, "", 4096) = 0
26828 lseek(13, 0, SEEK_SET) = 0
26828 fstat(13, {st_mode=S_IFREG|0777, st_size=998, ...}) = 0
26828 fstat(13, {st_mode=S_IFREG|0777, st_size=998, ...}) = 0
26828 brk(0xaca000) = 0xaca000
26828 futex(0xa50e40, 0x81 /* FUTEX_??? */, 1) = 0
26828 futex(0xa50e40, 0x81 /* FUTEX_??? */, 1) = 0
26828 futex(0xa50e00, 0x81 /* FUTEX_??? */, 1) = 0
26828 chdir("/") = 0
26828 umask(022) = 022
26828 lseek(12, 0, SEEK_SET) = 0
26828 write(12, "antispamcode|i:1191;", 20) = 20
26828 close(12) = 0
26828 munmap(0x7f27a1bef000, 2268448) = 0
26828 open("/dev/urandom", O_RDONLY) = 12
26828 read(12, "\344U\201_`6H+", 8) = 8
26828 close(12) = 0
26828 open("/dev/urandom", O_RDONLY) = 12
26828 read(12, "\247\322\264\255SS\37\237", 8) = 8
26828 close(12) = 0
26828 open("/dev/urandom", O_RDONLY) = 12
26828 read(12, ")\253\320\366\253\267K\367", 8) = 8
26826 futex(0xa041c0, 0x81 /* FUTEX_??? */, 1) = 0
26826 futex(0xa041c0, 0x81 /* FUTEX_??? */, 1) = 0
26826 futex(0xa04180, 0x81 /* FUTEX_??? */, 1) = 0
26826 stat("/usr/local/lib/ImageMagick-5.5.6-Q16/magic.mgk", {st_mode=S_IFREG|0644, st_size=4452, ...}) = 0
26826 open("/usr/local/lib/ImageMagick-5.5.6-Q16/magic.mgk", O_RDONLY) = 13
26826 lseek(13, 0, SEEK_END) = 4452
26826 mmap(NULL, 4452, PROT_READ, MAP_PRIVATE, 13, 0) = 0x7f27ad491000
26826 munmap(0x7f27ad491000, 4452) = 0
26826 close(13) = 0
26826 brk(0xa88000) = 0xa88000
26826 brk(0xaa9000) = 0xaa9000
26826 times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 5335324795
26826 times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 5335324795
26826 open("/data/pacsone/php/antispam.jpg", O_RDONLY) = 13
26826 fstat(13, {st_mode=S_IFREG|0777, st_size=998, ...}) = 0
26826 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f27ad492000
26826 read(13, "\377\330\377\340\0\20JFIF\0\1\1\0\0\1\0\1\0\0\377\333\0"..., 4096) = 998
26826 read(13, "", 4096) = 0
26826 lseek(13, 0, SEEK_SET) = 0
26826 fstat(13, {st_mode=S_IFREG|0777, st_size=998, ...}) = 0
26826 fstat(13, {st_mode=S_IFREG|0777, st_size=998, ...}) = 0
26826 brk(0xaca000) = 0xaca000
26826 futex(0xa50e40, 0x81 /* FUTEX_??? */, 1) = 0
26826 futex(0xa50e40, 0x81 /* FUTEX_??? */, 1) = 0
26826 futex(0xa50e00, 0x81 /* FUTEX_??? */, 1) = 0
26826 chdir("/") = 0
26826 umask(022) = 022
26826 lseek(12, 0, SEEK_SET) = 0
26826 write(12, "antispamcode|i:1153;", 20) = 20
26826 close(12) = 0
26826 munmap(0x7f27a1bef000, 2268448) = 0
26826 open("/dev/urandom", O_RDONLY) = 12
26826 read(12, "U?fK\350Z\0079", 8) = 8
26826 close(12) = 0
26826 open("/dev/urandom", O_RDONLY) = 12
26826 read(12, "\257\356\314\311\270c(\326", 8) = 8
26826 close(12) = 0
26826 open("/dev/urandom", O_RDONLY) = 12
26826 read(12, "~s\374\341f<\247n", 8) = 8
26826 close(12) = 0
26826 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
26826 writev(11, [{"HTTP/1.1 200 OK\r\nDate: Fri, 16 J"..., 403}, {"<html>\n<head><title>Login</title"..., 784}], 2) = 1187
26826 read(11, 0x9f9a18, 8000) = -1 EAGAIN (Resource temporarily unavailable)
26826 write(8, "202.173.134.75 - - [16/Jan/2009:"..., 258) = 258
26826 poll([{fd=11, events=POLLIN, revents=POLLIN}], 1, 15000) = 1
26826 read(11, "GET /favicon.ico HTTP/1.1\r\nUser-"..., 8000) = 625
26826 stat("/var/www/intranet/favicon.ico", 0x7fffb5496ae0) = -1 ENOENT (No such file or directory)
26826 lstat("/var", {st_mode=S_IFDIR|0755, st_size=96, ...}) = 0
26826 lstat("/var/www", {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0
26826 lstat("/var/www/intranet", {st_mode=S_IFDIR|0755, st_size=64, ...}) = 0
26826 lstat("/var/www/intranet/favicon.ico", 0x7fffb5496ae0) = -1 ENOENT (No such file or directory)
26826 open("/var/www/intranet/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|0x80000) = 12
26826 fstat(12, {st_mode=S_IFDIR|0755, st_size=64, ...}) = 0
26826 getdents(12, /* 7 entries */, 4096) = 216
26826 getdents(12, /* 0 entries */, 4096) = 0
26826 close(12) = 0
26826 write(2, "[Fri Jan 16 14:23:49 2009] [erro"..., 202) = 202
26826 writev(11, [{"HTTP/1.1 404 Not Found\r\nDate: Fr"..., 256}, {"<!DOCTYPE HTML PUBLIC \"-//IETF//"..., 336}], 2) = 592
26826 read(11, 0x9f7a08, 8000) = -1 EAGAIN (Resource temporarily unavailable)
26826 write(8, "202.173.134.75 - - [16/Jan/2009:"..., 298) = 298
26826 poll( <unfinished ...>

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Fri Jan 16, 2009 6:12 am

Can you check the imagick.so as well?

Code: Select all

# ldd /usr/lib/php5/20060613/imagick.so
Also, check if this Apache build is 32-bit or 64-bit, since the ImageMagick PHP extension included with the 64-bit PacsOne Server package was built as 64-bit module, so it may not work with 32-bit builds of Apache/PHP.

receptiveit
Posts:4
Joined:Fri Jan 16, 2009 12:07 am

Post by receptiveit » Fri Jan 16, 2009 9:01 am

All looks good there too.

root@vet-1:/tmp# ldd /usr/lib/php5/20060613/imagick.so
linux-vdso.so.1 => (0x00007fff8bffe000)
libMagick-5.5.6-Q16.so.0 => /usr/local/lib/libMagick-5.5.6-Q16.so.0 (0x00007f9583a29000)
libbz2.so.1 => /lib/libbz2.so.1 (0x00007f958380f000)
libm.so.6 => /lib/libm.so.6 (0x00007f958358d000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f9583310000)
libc.so.6 => /lib/libc.so.6 (0x00007f9582fae000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f9582d9c000)
libSM.so.6 => /usr/lib/libSM.so.6 (0x00007f9582b94000)
libICE.so.6 => /usr/lib/libICE.so.6 (0x00007f9582979000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f9582675000)
libz.so.1 => /usr/lib/libz.so.1 (0x00007f958245e000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007f9582242000)
libdl.so.2 => /lib/libdl.so.2 (0x00007f958203d000)
/lib64/ld-linux-x86-64.so.2 (0x00007f9583e96000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f9581e3b000)
libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0x00007f9581c39000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f9581a1e000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f9581819000)

Apache is 64 bit.

root@vet-1:/tmp# ldd /usr/sbin/apache2
linux-vdso.so.1 => (0x00007fffc21fe000)
libpcre.so.3 => /usr/lib/libpcre.so.3 (0x00007fd8b9c40000)
libaprutil-1.so.0 => /usr/lib/libaprutil-1.so.0 (0x00007fd8b9a22000)
libapr-1.so.0 => /usr/lib/libapr-1.so.0 (0x00007fd8b97f9000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fd8b95dd000)
libc.so.6 => /lib/libc.so.6 (0x00007fd8b927b000)
libldap_r-2.4.so.2 => /usr/lib/libldap_r-2.4.so.2 (0x00007fd8b9036000)
liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0x00007fd8b8e28000)
libdb-4.6.so => /usr/lib/libdb-4.6.so (0x00007fd8b8af3000)
libpq.so.5 => /usr/lib/libpq.so.5 (0x00007fd8b88cf000)
libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x00007fd8b8663000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007fd8b843f000)
libuuid.so.1 => /lib/libuuid.so.1 (0x00007fd8b823b000)
librt.so.1 => /lib/librt.so.1 (0x00007fd8b8032000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007fd8b7dfa000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fd8b7bf6000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd8b9e66000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00007fd8b79e0000)
libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00007fd8b77c7000)
libgnutls.so.13 => /usr/lib/libgnutls.so.13 (0x00007fd8b7543000)
libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x00007fd8b72f9000)
libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0x00007fd8b6f79000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00007fd8b6ce2000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x00007fd8b6ae0000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00007fd8b68b5000)
libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0x00007fd8b66a5000)
libz.so.1 => /usr/lib/libz.so.1 (0x00007fd8b648e000)
libgcrypt.so.11 => /lib/libgcrypt.so.11 (0x00007fd8b6240000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00007fd8b601c000)
libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00007fd8b5e15000)
libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x00007fd8b5c13000)
libgpg-error.so.0 => /lib/libgpg-error.so.0 (0x00007fd8b5a10000)

PHP is also 64 bit.

root@vet-1:/tmp# ldd /usr/lib/apache2/modules/libphp5.so
linux-vdso.so.1 => (0x00007fff541fe000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007f944b713000)
libz.so.1 => /usr/lib/libz.so.1 (0x00007f944b4fc000)
libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x00007f944b2b1000)
libdb-4.6.so => /usr/lib/libdb-4.6.so (0x00007f944af7c000)
libbz2.so.1.0 => /lib/libbz2.so.1.0 (0x00007f944ad6c000)
libpcre.so.3 => /usr/lib/libpcre.so.3 (0x00007f944ab45000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00007f944a92f000)
libm.so.6 => /lib/libm.so.6 (0x00007f944a6ae000)
libdl.so.2 => /lib/libdl.so.2 (0x00007f944a4a9000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00007f944a290000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00007f944a065000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00007f9449dcd000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00007f9449ba9000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x00007f94499a7000)
libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00007f944965f000)
libc.so.6 => /lib/libc.so.6 (0x00007f94492fd000)
libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0x00007f9448f7d000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007f9448d60000)
/lib64/ld-linux-x86-64.so.2 (0x00007f944c12a000)
libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00007f9448b59000)
libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x00007f9448957000)

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Fri Jan 16, 2009 3:12 pm

Try disabling the gd PHP extension, as it also uses a JPEG library which may interface with the jpeg.so being loaded by the ImageMagick PHP extension.

oneilt
Posts:1
Joined:Fri Feb 13, 2009 4:23 pm

Simular issue with image.so

Post by oneilt » Fri Feb 13, 2009 4:41 pm

# ldd /usr/lib/php5/20060613/imagick.so yields nothing. I'm suspecting I'm missing a library?

I've pacsone installed on a fresh Ubuntu 8.10 32 bit with distro:
PHP 5.2.6-2ubuntu4 with Suhosin-Patch 0.9.6.2
Server version: Apache/2.2.9 (Ubuntu)
Server version: 5.0.67-0ubuntu6

-tom

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Fri Feb 13, 2009 5:14 pm

The imagick.so library should be copied to wherever the directory is currently set as the PHP extension_dir variable configured in your PHP.INI file. So you can first check the output of the test page:

http://localhost/pacsone/Hello.php

Find out what directory is currently configured as the extension_dir variable, then copied the correct imagick.so file based on the version of PHP you've installed into that directory. For example, if you've installed PHP 5.2, then you should copy the php5.2/imagick.so under the directory where PacsOne is installed into the directory currently configured as the PHP extension_dir variable.

Also make sure you are actually loading the ImageMagick extension in your PHP.INI file:

Code: Select all

extension=imagick.so
After saving the PHP.INI configuration file and restarting Apache, you should check if the ImageMagick extension is loaded successfully from the output of the test page:

http://localhost/pacsone/Hello.php

Post Reply