Problem loading imagick.so in MacOS X Server

Trouble during PacsOne Server installations
Stephan
Posts:34
Joined:Sat Apr 08, 2006 6:22 pm
Problem loading imagick.so in MacOS X Server

Post by Stephan » Sat Jan 19, 2008 10:27 pm

Hi all,

I have a little trouble to install PacsOne in a MacOS X server environment (10.5.1). The imagick.so is not loaded when I start the latest version of xampp for OS X.

The error log in xampp shows the following:

Code: Select all

PHP Warning:  PHP Startup: Unable to load dynamic library '/Applications/xampp/xamppfiles/lib/php/php5/extensions/no-debug-non-zts-20060613/imagick.so' - (null) in Unknown on line 0
I'm really lost on this, I already have other versions of PacsOne running on Linux, but can't solve this little problem in OSX.

Hello.php is working so far, but imagick is not loaded.

Here's the output of Hello.php:



System Darwin server.leopard.gg 9.1.0 Darwin Kernel Version 9.1.0: Wed Oct 31 17:46:22 PDT 2007; root:xnu-1228.0.2~1/RELEASE_I386 i386
Build Date Oct 6 2007 12:05:37
Configure Command './configure' '--prefix=/Applications/xampp/xamppfiles' '--program-suffix=-5.2.4' '--libdir=/Applications/xampp/xamppfiles/lib/php/php5' '--includedir=/Applications/xampp/xamppfiles/include/php/php5' '--with-apxs2=/Applications/xampp/xamppfiles/bin/apxs' '--with-config-file-path=/Applications/xampp/etc' '--with-mysql=/Applications/xampp/xamppfiles' '--disable-debug' '--enable-bcmath' '--enable-calendar' '--enable-ctype' '--enable-dbase' '--enable-discard-path' '--enable-exif' '--enable-filepro' '--enable-force-cgi-redirect' '--enable-ftp' '--enable-gd-imgstrttf' '--enable-gd-native-ttf' '--with-ttf' '--enable-magic-quotes' '--enable-memory-limit' '--enable-safe-mode' '--enable-shmop' '--enable-sigchild' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-wddx' '--enable-yp' '--with-ftp' '--with-ncurses=/Applications/xampp/xamppfiles' '--with-gdbm=/Applications/xampp/xamppfiles' '--with-jpeg-dir=/Applications/xampp/xamppfiles' '--with-png-dir=/Applications/xampp/xamppfiles' '--with-freetype-dir=/Applications/xampp/xamppfiles' '--without-xpm' '--with-zlib=yes' '--with-zlib-dir=/Applications/xampp/xamppfiles' '--with-openssl=/Applications/xampp/xamppfiles' '--with-expat-dir=/Applications/xampp/xamppfiles' '--enable-xslt=/Applications/xampp/xamppfiles' '--with-xsl=/Applications/xampp/xamppfiles' '--with-dom=/Applications/xampp/xamppfiles' '--with-ldap=/Applications/xampp/xamppfiles' '--with-gd=/Applications/xampp/xamppfiles' '--with-mysql-sock=/Applications/xampp/xamppfiles/var/mysql/mysql.sock' '--with-mcrypt=/Applications/xampp/xamppfiles' '--with-mhash=/Applications/xampp/xamppfiles' '--enable-sockets' '--with-curl=/Applications/xampp/xamppfiles' '--enable-mbregex' '--enable-zend-multibyte' '--with-zip=/Applications/xampp/xamppfiles' '--enable-exif' '--with-sqlite' '--with-libxml-dir=/Applications/xampp/xamppfiles' '--enable-soap' '--enable-pcntl' '--enable-dbx' '--with-mysqli=/Applications/xampp/xamppfiles/bin/mysql_config' '--with-bz2=/Applications/xampp/xamppfiles' '--with-ming=shared,/Applications/xampp/xamppfiles' '--with-pear=/Applications/xampp/xamppfiles/lib/php/pear' '--with-mssql=/Applications/xampp/xamppfiles' '--with-imap-dir=/Applications/xampp/xamppfiles' '--with-imap=/Applications/xampp/xamppfiles' '--enable-mbstring=all' '--with-pgsql=shared,/usr' '--with-gettext=/Applications/xampp/xamppfiles' '--with-pdo-mysql=/Applications/xampp/xamppfiles'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /Applications/xampp/etc
Loaded Configuration File /Applications/xampp/etc/php.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 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 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
detect_unicode On On
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 On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 6135 6135
expose_php On On
extension_dir /Applications/xampp/xamppfiles/lib/php/php5/extensions/no-debug-non-zts-20060613 /Applications/xampp/xamppfiles/lib/php/php5/extensions/no-debug-non-zts-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 .:/Applications/xampp/xamppfiles/lib/php:/Applications/xampp/xamppfiles/lib/php/pear .:/Applications/xampp/xamppfiles/lib/php:/Applications/xampp/xamppfiles/lib/php/pear
log_errors Off Off
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 8M 8M
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 On On
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
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.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8e DAV/2 PHP/5.2.4
Apache API Version 20051115
Server Administrator you@example.com
Hostname:Port server.leopard.gg:0
User/Group nobody(-2)/80
Max Requests Per Child: 10000 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 5
Virtual Server No
Server Root /Applications/xampp/xamppfiles
Loaded Modules core prefork http_core mod_so mod_authn_file mod_authn_dbm mod_authn_anon mod_authn_dbd mod_authn_default mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_dbm mod_authz_owner mod_authz_default mod_auth_basic mod_auth_digest mod_file_cache mod_cache mod_disk_cache mod_mem_cache mod_dbd mod_bucketeer mod_dumpio mod_echo mod_case_filter mod_case_filter_in mod_ext_filter mod_include mod_filter mod_charset_lite mod_deflate mod_log_config mod_logio mod_env mod_mime_magic mod_cern_meta mod_expires mod_headers mod_ident mod_usertrack mod_unique_id mod_setenvif mod_proxy mod_proxy_connect mod_proxy_ftp mod_proxy_http mod_proxy_ajp mod_proxy_balancer mod_ssl mod_mime mod_dav mod_status mod_autoindex mod_asis mod_info mod_suexec mod_cgi mod_cgid mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_imagemap mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_php5

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

Apache Environment

Variable Value
UNIQUE_ID t1ss7H8AAAEAAF7DxnUAAAAE
HTTP_USER_AGENT Mozilla/5.0 (Macintosh; U; Intel Mac OS X; de-de) AppleWebKit/523.10.6 (KHTML, like Gecko) Version/3.0.4 Safari/523.10.6
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 de-de
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_COOKIE PHPSESSID=a7967df309f6913f4a3e9358ee30c939
HTTP_CONNECTION keep-alive
HTTP_HOST 192.168.0.123
PATH /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
SERVER_SIGNATURE no value
SERVER_SOFTWARE Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8e DAV/2 PHP/5.2.4
SERVER_NAME 192.168.0.123
SERVER_ADDR 192.168.0.123
SERVER_PORT 80
REMOTE_ADDR 10.178.243.14
DOCUMENT_ROOT /Applications/xampp/xamppfiles/htdocs
SERVER_ADMIN you@example.com
SCRIPT_FILENAME /PACSSoftware/pacsone/php/Hello.php
REMOTE_PORT 51498
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; de-de) AppleWebKit/523.10.6 (KHTML, like Gecko) Version/3.0.4 Safari/523.10.6
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 de-de
Accept-Encoding gzip, deflate
Cookie PHPSESSID=a7967df309f6913f4a3e9358ee30c939
Connection keep-alive
Host 192.168.0.123
HTTP Response Headers
X-Powered-By PHP/5.2.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=5, 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.3, 15-Feb-2005

calendar

Calendar support enabled

ctype

ctype functions enabled

curl

cURL support enabled
cURL Information libcurl/7.16.4 OpenSSL/0.9.8e zlib/1.2.3

date

date/time support enabled
"Olson" Timezone Database Version 2007.6
Timezone Database internal
Default timezone Europe/Berlin

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 gdbm cdb cdb_make inifile flatfile

dom

DOM/XML enabled
DOM/XML API Version 20031129
libxml Version 2.6.29
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
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 libiconv
iconv library version 1.11

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

imap

IMAP c-Client Version 2004

json

json support enabled
json version 1.2.1

ldap

LDAP Support enabled
RCS Version $Id: ldap.c,v 1.161.2.3.2.11 2007/07/17 09:09:42 jani Exp $
Total Links 0/unlimited
API Version 3001
Vendor Name OpenLDAP
Vendor Version 20336

libxml

libXML support active
libXML Version 2.6.29
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 ISO-8859-1 no value
mbstring.language neutral neutral
mbstring.script_encoding no value no value
mbstring.strict_detection Off Off
mbstring.substitute_character no value no value

mcrypt

mcrypt support enabled
Version 2.5.8
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

mhash

MHASH support Enabled
MHASH API Version 20060101

ming

Ming SWF output library enabled
Version 0.3.0

mssql

MSSQL Support enabled
Active Persistent Links 0
Active Links 0
Library version FreeTDS

Directive Local Value Master Value
mssql.allow_persistent On On
mssql.batchsize 0 0
mssql.charset no value no value
mssql.compatability_mode Off Off
mssql.connect_timeout 5 5
mssql.datetimeconvert On On
mssql.max_links Unlimited Unlimited
mssql.max_persistent Unlimited Unlimited
mssql.max_procs Unlimited Unlimited
mssql.min_error_severity 10 10
mssql.min_message_severity 10 10
mssql.secure_connection Off Off
mssql.textlimit Server default Server default
mssql.textsize Server default Server default
mssql.timeout 60 60

mysql

MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 5.0.45
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /Applications/xampp/xamppfiles/var/mysql/mysql.sock
MYSQL_INCLUDE -I/Applications/xampp/xamppfiles/include/mysql
MYSQL_LIBS -L/Applications/xampp/xamppfiles/lib/mysql -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.45
Client API header version 5.0.45
MYSQLI_SOCKET /Applications/xampp/xamppfiles/var/mysql/mysql.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.8e 23 Feb 2007

pcre

PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 7.2 2007-06-19

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

PDO

PDO support enabled
PDO drivers sqlite2, sqlite, mysql

pdo_mysql

PDO Driver for MySQL, client library version 5.0.45

pdo_sqlite

PDO Driver for SQLite 3.x enabled
PECL Module version (bundled) 1.0.1 $Id: pdo_sqlite.c,v 1.10.2.6.2.2 2007/03/23 14:30:00 wez Exp $
SQLite Library 3.3.17

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 sqlite
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 1 1
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

SQLite

SQLite support enabled
PECL Module version 2.0-dev $Id: sqlite.c,v 1.166.2.13.2.9 2007/05/19 17:58:22 iliaa Exp $
SQLite Library 2.8.17
SQLite Encoding iso8859

Directive Local Value Master Value
sqlite.assoc_case 0 0

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

tokenizer

Tokenizer Support enabled

wddx

WDDX Support enabled
WDDX Session Serializer enabled

xml

XML Support active
XML Namespace Support active
libxml2 Version 2.6.29

xmlreader

XMLReader enabled

xmlwriter

XMLWriter enabled

xsl

XSL enabled
libxslt Version 1.1.21
libxslt compiled against libxml Version 2.6.29
EXSLT enabled
libexslt Version 1.1.21

zlib

ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3

Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value

Additional Modules

Module Name
dbase
sysvsem
sysvshm

Environment

Variable Value
MANPATH /usr/share/man:/usr/local/share/man:/usr/X11/man
TERM_PROGRAM Apple_Terminal
TERM xterm-color
SHELL /bin/sh
TMPDIR /var/folders/cF/cFBvHBeRGLWDxTt3jlTD8U+++TI/-Tmp-/
Apple_PubSub_Socket_Render /tmp/launch-yLLoBh/Render
TERM_PROGRAM_VERSION 237
USER edvwartung
LD_LIBRARY_PATH /Applications/xampp/xamppfiles/lib
COMMAND_MODE legacy
SSH_AUTH_SOCK /tmp/launch-iVWPKP/Listeners
__CF_USER_TEXT_ENCODING 0x0:0:3
PATH /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
PWD /Applications/xampp/logs
LANG de_DE.UTF-8
SHLVL 5
HOME /var/root
LOGNAME edvwartung
DISPLAY /tmp/launch-CRY8ek/:0
SECURITYSESSIONID b12580
_ /Applications/xampp/xamppfiles/bin/httpd

PHP Variables

Variable Value
PHP_SELF /pacsone/Hello.php
_REQUEST["PHPSESSID"] a7967df309f6913f4a3e9358ee30c939
_COOKIE["PHPSESSID"] a7967df309f6913f4a3e9358ee30c939
_SERVER["UNIQUE_ID"] t1ss7H8AAAEAAF7DxnUAAAAE
_SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (Macintosh; U; Intel Mac OS X; de-de) AppleWebKit/523.10.6 (KHTML, like Gecko) Version/3.0.4 Safari/523.10.6
_SERVER["HTTP_ACCEPT"] text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
_SERVER["HTTP_ACCEPT_LANGUAGE"] de-de
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
_SERVER["HTTP_COOKIE"] PHPSESSID=a7967df309f6913f4a3e9358ee30c939
_SERVER["HTTP_CONNECTION"] keep-alive
_SERVER["HTTP_HOST"] 192.168.0.123
_SERVER["PATH"] /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
_SERVER["SERVER_SIGNATURE"] no value
_SERVER["SERVER_SOFTWARE"] Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8e DAV/2 PHP/5.2.4
_SERVER["SERVER_NAME"] 192.168.0.123
_SERVER["SERVER_ADDR"] 192.168.0.123
_SERVER["SERVER_PORT"] 80
_SERVER["REMOTE_ADDR"] 10.178.243.14
_SERVER["DOCUMENT_ROOT"] /Applications/xampp/xamppfiles/htdocs
_SERVER["SERVER_ADMIN"] you@example.com
_SERVER["SCRIPT_FILENAME"] /PACSSoftware/pacsone/php/Hello.php
_SERVER["REMOTE_PORT"] 51498
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /pacsone/Hello.php
_SERVER["SCRIPT_NAME"] /pacsone/Hello.php
_SERVER["PHP_SELF"] /pacsone/Hello.php
_SERVER["REQUEST_TIME"] 1200781442
_SERVER["argv"]
Array
(
)
_SERVER["argc"] 0
_ENV["MANPATH"] /usr/share/man:/usr/local/share/man:/usr/X11/man
_ENV["TERM_PROGRAM"] Apple_Terminal
_ENV["TERM"] xterm-color
_ENV["SHELL"] /bin/sh
_ENV["TMPDIR"] /var/folders/cF/cFBvHBeRGLWDxTt3jlTD8U+++TI/-Tmp-/
_ENV["Apple_PubSub_Socket_Render"] /tmp/launch-yLLoBh/Render
_ENV["TERM_PROGRAM_VERSION"] 237
_ENV["USER"] edvwartung
_ENV["LD_LIBRARY_PATH"] /Applications/xampp/xamppfiles/lib
_ENV["COMMAND_MODE"] legacy
_ENV["SSH_AUTH_SOCK"] /tmp/launch-iVWPKP/Listeners
_ENV["__CF_USER_TEXT_ENCODING"] 0x0:0:3
_ENV["PATH"] /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
_ENV["PWD"] /Applications/xampp/logs
_ENV["LANG"] de_DE.UTF-8
_ENV["SHLVL"] 5
_ENV["HOME"] /var/root
_ENV["LOGNAME"] edvwartung
_ENV["DISPLAY"] /tmp/launch-CRY8ek/:0
_ENV["SECURITYSESSIONID"] b12580
_ENV["_"] /Applications/xampp/xamppfiles/bin/httpd




Any help or suggestion is appreciated.
- Stephan

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

Post by pacsone » Sun Jan 20, 2008 7:42 am

Can you check if any of the dependent shared libraries is missing for the imagick.so PHP extension library?

Code: Select all

$ otool -L imagick.so

Stephan
Posts:34
Joined:Sat Apr 08, 2006 6:22 pm

Post by Stephan » Mon Jan 21, 2008 8:03 pm

Now this is where it gets really confusing...

Code: Select all

sh-3.2# pwd
/Applications/xampp/xamppfiles/lib/php/php5/extensions/no-debug-non-zts-20060613
sh-3.2# otool -L imagick.so
imagick.so: is not an object file
sh-3.2# 
Could this be an incompatibility issue between 10.5 server (64-bit) and imagick.so?
- Stephan

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

Post by pacsone » Tue Jan 22, 2008 12:22 am

Looks like it, as the current MacOS version of PacsOne Server is 32-bit only, so you should try the 32-bit version of the MacOS X 10.5 with PacsOne Server instead.

Or you can run all 32-bit versions of MySQL, Apache and PHP on this server, which should work in theory if the 64-bit version of Mac OS 10.5 is truly compatible with existing 32-bit applications.

Stephan
Posts:34
Joined:Sat Apr 08, 2006 6:22 pm

Post by Stephan » Tue Jan 22, 2008 8:23 pm

I wasn't aware there is way to install Leopard as a 32-bit version on Intel platforms. I'm also not quite sure on how to start the xampp apps (Apache, PHP, MySQL) as 32-bit apps, since they will automatically start as 64-bit apps when the OS allows it.

I know there's a way to make the Leopard internal Apache start as 32-bit, but since I'm not using it I'll have to look into this. I'll do a couple of more tests (maybe with PHP4) and may even try the versions of Apache and PHP that come with the OS. I'm a little busy with other things right now, but I plan to have the new server up and running next month. I'll post a solution for this problem, as soon as I've solved the mysteries of 10.5 aka Leopard.
- Stephan

Antw1
Posts:80
Joined:Mon Nov 01, 2004 1:29 pm

Post by Antw1 » Thu Mar 06, 2008 11:15 am

I have the same issue on a Mac Mini (32-bit).
From my web searching, it seems as if the pre-installed Apache/PHP packages are compiled for 64-bit architecture, while running on either processor.

So, unless imagick.so is compiled as a 64-bit module, it is bound to clash with the Mac 10.5-provided Apache/PHP and Stefan is out-of-luck.

It seems that my other option (since I have a 32-bit CPU) would be to recompile Apache and PHP to be compatible with imagick.so and be done with the pre-installed packages.

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

Post by pacsone » Thu Mar 06, 2008 5:57 pm

Antw1 wrote:I have the same issue on a Mac Mini (32-bit).
This should not be an issue in your case since your hardware platform is 32-bit, therefore Leopard (10.5) can only be installed as 32-bit on the 32-bit hardware platform, which will be compatible with the 32-bit ImageMagick PHP extension included with the PacsOne Server MacOS X installation package.

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

Post by pacsone » Sat Mar 08, 2008 5:49 pm

Looks like there is a mix up in the installation package for MacOS X, as the imagick.so module included in the package was for the Linux x86_64 platform instead of MacOS X. This bug has been fixed and you can download the correct imagick.so module from our website:

http://www.rainbowfishsoftware.com/MacOS/imagick.so

Stephan
Posts:34
Joined:Sat Apr 08, 2006 6:22 pm

Post by Stephan » Sun Mar 09, 2008 1:03 am

That's what I call perfect timing. :wink:

I tried to get this going with my installation of 10.5 server and had no luck. Tried everything possible, different Apache and php versions, 64- and 32-bit and nothing worked. I was ready to install Tiger again on monday. To make a long story short, the "imagick.so" you posted works perfectly for me as well in 64-bit as it seems.

But it looks like there are some other little bugs, there also in no "pacsone.php" file coming with the installation. Using "login.php" instead works though. I'll have to run a few more tests on monday and see if everything else works. If it does, I'll contact you via mail to purchase a license and more info I need for our other PacsOne systems (Linux) which need an update from version 3.x.

As far as Apache in Leopard goes, it's not pre-compiled for 64-bit only, both versions (64- and 32bit) are coming with Leopard. If more info is needed, please shout, I'll dig up the info on how Apache and PHP can be started in 32-bit mode (even on a 64 bit system). I think using the build in Apache and PHP is a bit more complicated than using the XAMPP package for OS X, but both should work.

I'll report back on monday if I was able to get everything going.
- Stephan

Antw1
Posts:80
Joined:Mon Nov 01, 2004 1:29 pm

Post by Antw1 » Sun Mar 09, 2008 3:27 pm

I second that.
Following Stephan's recommendations, I abandonned the stock Apache/PHP and installed XAMPP instead.
The install was a breeze in comparison, and the Image Magick extension loaded immediately.

I have a question for Stephan, though:
How do you get XAMPP to start at boot with 10.5?

I've read posts about using launchd as Apple now recommends not to use StartupItems anymore, but I have no clue...

Stephan
Posts:34
Joined:Sat Apr 08, 2006 6:22 pm

Post by Stephan » Sun Mar 09, 2008 5:34 pm

Antw1 wrote: I have a question for Stephan, though:
How do you get XAMPP to start at boot with 10.5?

I've read posts about using launchd as Apple now recommends not to use StartupItems anymore, but I have no clue...

While Apple may recommend to use launch daemons instead of startup items, both still work with Leopard. At least that's my personal experience.

Startup items are located in "/Library/StartupItems/" and launch daemons in "/Library/LaunchDaemons/".

There are several advantages coming with launchd, such as starting, stopping or reloading without affecting other jobs. This can come in handy, but in my opinion it's not necessary for mySQL, PHP and Apache. But if you run something else on the server besides PacsOne, this could be of some help.

Another option would be to use "/etc/rc" which can launch jobs at startup, similar to the Load-key in launchd.

There is a free software with a GUI that can create launch daemons files, I'll dig it up on monday in the office. I forgot the name, something with Lion... I believe.

Personally, I usually use what works best for me and what gets the job done. I think that's the easiest way and as long as there are no negative side effects, it should be fine.

But I'll also ask a friend who works at Apple what he thinks is best to use. But given he's one of the software engineers that helped creating 10.5, I think he's a little bit biased and will recommend launchd.
- Stephan

Antw1
Posts:80
Joined:Mon Nov 01, 2004 1:29 pm

Post by Antw1 » Mon Mar 10, 2008 12:20 pm

Definitely let us know.
XAMPP is the way to go to install PacsOne with minimum fuss.

Stephan
Posts:34
Joined:Sat Apr 08, 2006 6:22 pm

Post by Stephan » Mon Mar 10, 2008 10:52 pm

Hey folks,

everthing seems to run fine now with the correct version of "imagick.so". I've already dropped a mail to Xiaohui regarding the full license. :)

As far as OS X goes, Lingon is the software that should help with creating launch daemons. Not sure if it will help in this case but it's a start.

But in general, the configuration/installation of Apache/MySQL/PHP is not as straight forward in Leopard as it should be. That's why I decided to create a little installation guide for the required services running on Leopard.

I'll use the regular (non-server) version of Leopard for this, the server version shouldn't be much different, but I'll check again. Give me another week and I'll have this up with instructions on how to install both versions (XAMPP and the versions coming with Leopard).

If there are any further questions in the meantime, just shout. Always happy to help.
- Stephan

Antw1
Posts:80
Joined:Mon Nov 01, 2004 1:29 pm

Post by Antw1 » Wed Mar 12, 2008 2:14 am

My installation of Xampp shows MySQL as deactivated.
I did run the security check, and set a password for root.

I tried to launch MySQL from terminal, but it still won't start.
Someone suggested it might be permission-related.

Any advice there?

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

Post by pacsone » Wed Mar 12, 2008 3:26 am

Did you check the MySQL error logs?

Post Reply