I tried to upload a scanned image to a patients chart and it looked like the upload went fine (no errors ) but when i click on the link in the tree where I uploaded the file to, i’m not seeing the file. It seems that the upload is not working, but no errors are showing to the screen. I checked the documents table and no entry. Anyone have any tips/suggestions on making this work?
I tried looking at the php.ini and some other config files still no luck. Do i have to create any directories under documents? php accepts uploaded files in the ini so i’m not sure what’s up… Please help… i go live next week.
Warning: mkdir(/usr/local/apache2/htdocs/openemr/documents/19/): Permission denied in /usr/local/apache2/htdocs/openemr/controllers/C_Document.class.php on line 78
but I did a chmod apache:apache -R {the whole directory above} and made sure that it has privs plus made it global. does /usr /usr/local etc… need to be givin privs to apache???
Yup… Fixed it… it turned out to be a permission problem like ya’ll said. I had to reboot the machine then do the same command {chown and the chmod } and then it worked. weird… Anyway thanks for ya’lls support.
well it’s back to the same problem… I’m not sure what’s causing it. I reboot the machine and then it doesn’t work, run the chmod and chown on it (not really changing anything new) and it’ll work
i created a small php script file that just has mkdir function in it and this script file works it doesn’t have a problem with permissions. it creates the directory fine in the documents folder.
with openemr i’m not getting any kind of error, it’s just not creating the directory nor is it uploading the file.
After a few mountain dews and some oreo cookies, I was able to narrow it down to the following why it wont’ work.
It had nothing to do with permissions. As long as I do not restart the apache, the upload images will work. If I restart the apache, something happens where it won’t allow any images to be uploaded. Until I reboot the machine, it will not work. Anyone know why this is? I just don’t know much about the internals yet of how php and openemr work.