MedDream for dcm4chee Quick Install (Windows and Linux) WINDOWS INSTALL: 1. Copy meddream folder to APACHE_HTDOCS_DIR (so that the result is APACHE_HTDOCS_DIR/meddream; for example, in our machines it usually is C:\xampplite\htdocs\meddream.) If you are updating an older version of MedDream: a) Please back up the old version (so you can go back any time). b) Please do not replace files you changed in last version. You must carefully synchronize the new version 2. From APACHE_HTDOCS_DIR\meddream copy php5.2_meddream.dll to \php\ext (if you are using PHP 5.2.x) copy php5.3_meddream.dll to \php\ext (if you are using PHP 5.3.x) 3. Add extension=php5.2_meddream.dll to php.ini file (if you are using PHP 5.2.x) Add extension=php5.3_meddream.dll to php.ini file (if you are using PHP 5.3.x) 4. We recommend you to specify date.timezone in php.ini: [Date] ; Defines the default timezone used by the date functions date.timezone = "America/Chicago" (the list of possible values is at http://www.php.net/manual/en/timezones.php) 5. Edit APACHE_HTDOCS_DIR/meddream/config.php file. Follow instructions inside the file. 6. Restart Apache 7. Navigate to http://127.0.0.1/meddream/home.php (use database accounts or dcm4chee accounts to log in). LINUX INSTALL: 1. Copy the "meddream" directory to APACHE_HTDOCS_DIR (so that the result is APACHE_HTDOCS_DIR/meddream; for example, in our machines it usually is /var/www/meddream.) Adjust permissions: no less than 0777 for APACHE_HTDOCS_DIR/meddream 0777 for APACHE_HTDOCS_DIR/meddream/log 0777 for APACHE_HTDOCS_DIR/meddream/temp If you are updating an older version of MedDream: a) Please back up the old version (so you can go back any time). b) Please do not replace files you changed in last version. You must carefully synchronize the new version 2. From APACHE_HTDOCS_DIR/meddream copy php5.2_meddream.so to /usr/lib/php/modules (if you are using PHP 5.2.x) copy php5.3_meddream.so to /usr/lib/php/modules (if you are using PHP 5.3.x) copy php5.2_meddream-x86_64.so to /usr/lib64/php/modules (if you are using PHP 5.2.* under a 64-bit OS) copy php5.3_meddream-x86_64.so to /usr/lib64/php/modules (if you are using PHP 5.3.* under a 64-bit OS) 3. Add to /etc/php.ini file "extension=php5.2_meddream.so" (if you are using PHP 5.2.x) "extension=php5.3_meddream.so" (if you are using PHP 5.3.x) "extension=php5.2_meddream-x86_64.so" (if you are using PHP 5.2.x under a 64-bit OS) "extension=php5.3_meddream-x86_64.so" (if you are using PHP 5.3.x under a 64-bit OS) 4. We recommend you to specify date.timezone in php.ini: [Date] ; Defines the default timezone used by the date functions date.timezone = "America/Chicago" (the list of possible values is at http://www.php.net/manual/en/timezones.php) 5. Edit APACHE_HTDOCS_DIR/meddream/config.php file. Follow instructions inside the file. 6. Restart Apache 7. Navigate to http://127.0.0.1/meddream/home.php (use database accounts or dcm4chee accounts to log in). 8. The FreeImage library is strongly recommended for performance reasons. It will be accessed via a symbolic link /usr/lib/libfreeimage.so.3 ; you may need to create or update it, for example, cd /usr/lib ln -s -f libfreeimage-3.13.0.so libfreeimage.so.3 It is also recommended to get a recent version, at least 3.13. For example, Fedora Core 12 contains only 3.10 which basically works but is harder to troubleshoot. In that case it should be possible to compile it from source ("make && make install" was enough for us). 9. ffmpeg is required in order to display thumbnails of MPEG2 DICOM files. (Display of the video itself is still being ported, however you can already see the thumbnail.) It is expected at /usr/bin/ffmpeg . Not every distribution has it. Sometimes it is possible to download separate dependencies from sites like rpmfind.net and install these manually.