MedDream for WADO Quick Install (Windows and Linux) GENERAL NOTES: WARNING: support for this configuration was last tested with MedDream 4.03. Starting from 4.04, there are no pre-release tests with $dbms = "WADO". Please contact info@softneta.com if you would like to use this integration mode. MedDream uses the dcmqr utility from dcm4che to make all queries to the target PACS. This way any PACS that talks DICOM protocol is supported. DICOM images, however, are downloaded through WADO interface so the target PACS must support it. Additionally, allow_url_fopen (php.ini) must remain enabled. Java must be installed. Under Windows, do not forget to update either PATH or JAVA_HOME environment variable accordingly. Under Windows, a thread-safe (TS) 32-bit PHP build is required. The DLLs included won't work with a 64-bit PHP, like in 64-bit builds of WampServer. Under Linux, a non-TS PHP build is required. This is related to a more common build of Apache, the "prefork". The "worker" build is incompatible. PHP 5.3 is built for Windows either with VC6 or VC9 runtime. Take note which version you have, and use a corresponding .dll during installation as explained below. Otherwise you'll get an error message like this one: Module compiled with build ID=API20090626,TS,VC6 PHP compiled with build ID=API20090626,TS,VC9 These options need to match Under Linux, the .so file requires glibc 2.5 or later. During an upgrade it's recommended to use the included config.sample-wado.php as a template and then update the resulting config.php according to the old one. This will prevent misunderstandings like variable names which were suddenly changed. The user interface now offers "CD" (740 MB) and "DVD" (4.7 GB) disc sizes. The actual splitting into volumes, however, is implemented only for PacsOne. Other PACSes still have *unlimited* volume size. MedDream is able to automatically include a DICOMDIR viewer in each disc of exported studies. To use that, simply place the viewer files in a subdirectory named "DICOMDIR". You must also ensure that a file named "autorun.inf" exists in that directory, otherwise contents won't be included; an empty autorun.inf is suitable if the viewer somehow doesn't contain it. While still in demo mode, you *must* remove the existing meddream.lic after changing computer's host name (any OS), reinstalling the OS (Windows) or changing the MAC of any network card (Linux). A correct file will be created automatically. Otherwise a commercial license generated from your meddream.lic will not work. This also means that Windows must be activated in advance! 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_INSTALL_DIR\ext (if you are using PHP 5.2.x) copy php5.3_meddream-VC6.dll to PHP_INSTALL_DIR\ext (if you are using PHP 5.3.x, VC6 build) copy php5.3_meddream-VC9.dll to PHP_INSTALL_DIR\ext (if you are using PHP 5.3.x, VC9 build) copy php5.4_meddream.dll to PHP_INSTALL_DIR\ext (if you are using PHP 5.4.x) copy php5.5_meddream.dll to PHP_INSTALL_DIR\ext (if you are using PHP 5.5.x) 3. Add to php.ini file "extension=php5.2_meddream.dll" (if you are using PHP 5.2.x) "extension=php5.3_meddream-VC6.dll" (if you are using PHP 5.3.x, VC6 build) "extension=php5.3_meddream-VC9.dll" (if you are using PHP 5.3.x, VC9 build) "extension=php5.4_meddream.dll" (if you are using PHP 5.4.x) "extension=php5.5_meddream.dll" (if you are using PHP 5.5.x) 4. 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. Use config.sample-wado.php as a template. The file contains basic instructions. 6. Restart Apache 7. Navigate to http://127.0.0.1/meddream/home.php and simply press the "Login" button. There is no password. Any non-empty user name is suitable. 8. Usually the target PACS must be additionally configured to accept queries from the AET named "MEDDREAM". You can assign any port, even the default 104, as dcmqr normally does not bind to a particular port and most PACSes do not require one when accepting a connection. 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 Additionally, chmod a+x APACHE_HTDOCS_DIR/meddream/dcm4che/bin/* 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.4_meddream.so to /usr/lib/php/modules (if you are using PHP 5.4.x) copy php5.5_meddream.so to /usr/lib/php/modules (if you are using PHP 5.5.x) copy php5.2_meddream-x86_64.so to /usr/lib64/php/modules (if you are using PHP 5.2.x under a 64-bit OS) copy php5.3_meddream-x86_64.so to /usr/lib64/php/modules (if you are using PHP 5.3.x under a 64-bit OS) copy php5.4_meddream-x86_64.so to /usr/lib64/php/modules (if you are using PHP 5.4.x under a 64-bit OS) copy php5.5_meddream-x86_64.so to /usr/lib64/php/modules (if you are using PHP 5.5.x 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.4_meddream.so" (if you are using PHP 5.4.x) "extension=php5.5_meddream.so" (if you are using PHP 5.4.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) "extension=php5.4_meddream-x86_64.so" (if you are using PHP 5.4.x under a 64-bit OS) "extension=php5.5_meddream-x86_64.so" (if you are using PHP 5.5.x under a 64-bit OS) 4. 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. Use config.sample-wado.php as a template. The file contains basic instructions. 6. Restart Apache 7. Navigate to http://127.0.0.1/meddream/home.php and simply press the "Login" button. There is no password. Any non-empty user name is suitable. 8. Usually the target PACS must be additionally configured to accept queries from the AET named "MEDDREAM". You can assign any port, even the default 104, as dcmqr normally does not bind to a particular port and most PACSes do not require one when accepting a connection. 9. mkisofs is required for the Export command. If your distribution has only genisoimage, then you need to create a symlink to it named "mkisofs".