MedDream for PacsOne Quick Install (Windows and Linux) WINDOWS INSTALL: 1. Copy meddream folder to C:\Program Files\PacsOne\php (the result: C:\Program Files\PacsOne\php\meddream) If you are updating 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 C:\Program Files\PacsOne\php\meddream Copy and Replace applet.php to C:\Program Files\PacsOne\php 3. From C:\Program Files\PacsOne\php\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) 4. Add to php.ini file "extension=php5.2_meddream.dll" (if you are using PHP 5.2.x) "extension=php5.3_meddream.dll" (if you are using PHP 5.3.x) 5. 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) 6. Edit APACHE_HTDOCS_DIR/meddream/config.php file. Follow instructions inside the file. 7. Restart Apache 8. Navigate to http://127.0.0.1/pacsone/meddream/home.php (use pacsone users to log in) or use "Show" button in PacsOne web interface. LINUX INSTALL: 1. Copy the "meddream" directory to PACSONE_INSTALL_DIR/php (so that the result is PACSONE_INSTALL_DIR/php/meddream; for example, in our machines it usually is /home/pacsone/php/meddream.) Adjust permissions: no less than 0777 for PACSONE_INSTALL_DIR/php/meddream 0777 for PACSONE_INSTALL_DIR/php/meddream/log 0777 for PACSONE_INSTALL_DIR/php/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 PACSONE_INSTALL_DIR/php/meddream Copy and Replace applet.php to PACSONE_INSTALL_DIR/php 3. From PACSONE_INSTALL_DIR/php/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) 4. 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) 5. We recommend you to specify date.timezone into 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) 6. PacsOne and Apache must run as the same user because newer versions of PacsOne create subdirectories with permissions too strict for different users. 7. Edit APACHE_HTDOCS_DIR/meddream/config.php file. Follow instructions inside the file. 8. Restart Apache 9. Navigate to http://127.0.0.1/pacsone/meddream/home.php (use PacsOne users to log in) or use the "Show" button in the PacsOne web system. 10. 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). 11. 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. 12. mkisofs is required for the Export command.