The last few posts on this string really discuss how to install OEMR on an OSX system, and whether an install of the Linux tar.gz package might preserve more permissions and avoid some glitches down the line. Maybe all this should be on a different thread under that subject heading. I don’t know how to make that change.
But here I’ll summarize what I’ve done that worked on my setup on a new OEMR installation (not an upgrade from 4.2.2) of XAMPP 5.6.30-0 for OSX, with openemr-5.0.0 on a mac running OSX 10.11.6 (“El Capitan”), following the instructions at http://www.open-emr.org/wiki/index.php/XAMPP_and_OpenEMR_Installation_in_OS_X
Installing the windows zip package, the installation process runs well (as long as I turn off my browser and 1Password’s “ask whether to save a new password” function, which glitches the installation at the end of the password setup page).
But once up and running, efforts to perform the external data upload of ICD-10 do not work well, producing an error message: “Error: Unable to copy the file.” This error also occurred in the 4.2.2 windows install, but a workaround that solved the problem in 4.2.2 doesn’t seem to work with 5.0.0
The install lists non-existent locations for Temp files in the OEMR globals/miscellaneous settings. But even when I point them to the more logical options of "C:XAMPP/xamppfiles/temp, the error in data upload persists. This problem with ICD-10 upload seems to be the main glitch with the OSX XAMPP install of OEMR.
Receiving the suggestion that since OSX is based on Unix, installing the Linux tarball package might work better, since Linux uses similar permissions and the tar package preserves these permissions.
The effort to install the Linux tar.gz package of 5.0.0 hit some initial permission problems. But I was able to achieve a clean installation process with this package after running the following commands in terminal:
sudo chmod 666 /Applications/XAMPP/xamppfiles/htdocs/openemr/sites/default/sqlconf.php
sudo chmod 666 /Applications/XAMPP/xamppfiles/htdocs/openemr/sites/default/sqlconf.php
sudo chmod 666 /Applications/XAMPP/xamppfiles/htdocs/openemr/interface/modules/zend_modules/config/application.config.php
sudo chown -R daemon /Applications/XAMPP/xamppfiles/htdocs/openemr
Once this was done, I launched the XAMPP Application Manager, and started up both the Apache web server and the MySQL database (if the latter isn’t running, you can start the OEMR install but you’ll get odd errors late in the installation process).
Then when I logged onto localhost/openemr/ the installation process went smoothly.
However, once OpenEMR was up and running, and I’d re-labeled the temp directory as “C:XAMPP/xamppfiles/temp”, I got the same error message in the attempt to upload ICD-10 codes.
I modified the php.ini file to assign the temp file: upload_tmp_dir="/Applications/XAMPP/xamppfiles/temp/" and pointed to this file in the Global/Miscellaneous settings. Still get the error message.
Following Brady Miller’s suggestion, I then ran this terminal command:
sudo chmod -R a+w /Applications/XAMPP/xamppfiles/temp
After restarting the Application manager and the apache and MySQL services and logging onto OEMR again, running the external data upload gives the same error message.
Note that I’ve modified php.ini as advised, with max_execution_time=180, and max_input_time=180, so I don’t think that timing out is the issue with the ICD-10 upload.
To summarize this verbose post regarding installation of OEMR on the Mac OSX platform:
XAMPP for OSX installs smoothly.
The openemr-5.0.0.zip windows package installs in XAMPP for OSX smoothly, if it isn’t interrupted by other programs while in process. But once installed, locations of temp files are listed as for a windows file system, not OSX, pointing to locations that don’t exist, and External Date Upload of ICD-10 doesn’t work.
The openemr-5.0.0.tar.gz package can also be installed in a XAMPP for OSX setup, after running terminal commands to change some permissions issues. But the same temp file locations issues occur, and the same failure in ICD-10 upload occurs.
For Mac users in the USA, this difficulty with ICD-10 upload is a serious problem, of course. It is a critical part of the installation.
====
Some things I don’t know:
I don’t know whether there is any advantage to doing the Linux install, since it made the installation process a bit more complex, and it didn’t solve the ICD-10 problem.
I don’t know if the terminal commands executed during the linux tar.gz install create more of a security problem.
The temp directory /Applications/XAMPP/xamppfiles/temp does exist, it is created during the XAMPP install. And at the end of the installation process it has some files in it.
But I don’t know if the syntax I’ve used to point to it is acceptable to OEMR, or if the location I’ve pointed to is acceptable to OEMR for use in the External Data Upload process.
I don’t know if the 5.0.0 system is actually using a different temp directory for Data Upload than the one that I’ve pointed to in php.ini and in Globals/Miscellaneous with my edits.
I don’t know if the ICD-10 upload problem is due to some sort of permissions issue, that requires a different setting in the actual temp folder than any applied so far.
I don’t have the expertise needed to figure out the answers to any of these questions.