judsonmitchell / ClinicCases

ClinicCases is a web-based case management system designed specifically for law school clinics
http://www.cliniccases.com
Other
55 stars 62 forks source link

The 'people' directory is not writable. Please fix this to proceed. #50

Open rustyriver opened 1 year ago

rustyriver commented 1 year ago

Hi,

I want to test this product, but cannot get it to install. I've not been past this error. Using centOS7 on a VPS. It is a clean image and nothing else has been added to the system except prerequisites.

I've tried the top dozen search results for changing the permissions on the people directory, but none of it is working. I've changed the permissions at the CLI and I've changed them in the GUI. The permissions show as having full permission for everyone.

I don't know what else to do. I've reloaded the server several times. I've followed the procedures exactly. I've tried all the SELinux recommendations, given up, and disabled that. Yet, I still get the error.

Is there some basic thing am I missing? Is there a specific logfile I should be looking at?

test2a commented 1 year ago

Did you do chmod 777 t the directory?

Edit: I did read you had given permission but did you do 777 or some other permission value?

test2a commented 1 year ago

While you are at it, why not try docker

https://github.com/peculater/cliniccases-compose

See if this works for you or not.

test2a commented 1 year ago

One thing you can test, what is your php version? Try to downgrade it and try again

rustyriver commented 1 year ago

Did you do chmod 777 t the directory?

Edit: I did read you had given permission but did you do 777 or some other permission value?

Hi test2a,

I did use 777 on the folder--and wrote a couple files in to test, etc... I'll try the downgrade of PHP, that makes sense, because I am getting no errors when it fails, other than the obvious one. Thanks...

rustyriver commented 1 year ago

Ok, so I figured this one out. The files in the folder also had to have their permissions set to enable the installation to proceed. I encountered several other obstacles along the way. In case anyone else is trying to install ClinicCases on a virtual server over at IONOS, some of this might happen to you:

That sounded sinister, first off IONOS was a great choice for this. The support was quick and top notch. The interface is easy to work with. It does disconnect quickly if you are AFK. This is the 3rd or 4th one of their tutorials I've used, they are pretty good.

After getting the "people" directory squared away, I logged in as the admin user with the pw of admin. Then it prompts for you to change the password. Then the password would not work when trying to log in. Tried reinstalling several times into different directories and got the same result until I realized http was working, but https was not.

After you change the admin temporary password and log out, you cannot log back in unless you get SSL working first.

I used this tutorial over at Digital Ocean:

https://www.digitalocean.com/community/tutorials/how-to-create-an-ssl-certificate-on-apache-for-centos-7

I skipped the firewall and iptables commands because I had already opened my firewall for the web traffic. Other than that, I followed the instructions, and SSL worked to let the ClinicCases run in https. It gives the warning message about the certificate not being good enough. But, it lets the software work after ignoring the error warning.

Oh, I used my public IP address everywhere in the configuration process (you have to enter it several times). Even though I bought a domain address for this test, I didn't want to risk a syntax issue. It worked perfect. I type the domain name in a browser and it opens up the ClinicCases Login screen like a champ.

One last bit, watch out for /var/www/html instead of /var/www/ as the expected home directory.

rustyriver commented 1 year ago

While you are at it, why not try docker

https://github.com/peculater/cliniccases-compose

See if this works for you or not.

Hey test2a,

Thank you for the help. You spurred some thinking that led to a couple fixes. I did try the docker you recommended, but couldn't get it to go. I think it was because of the same SSL issue, but am not sure.

test2a commented 1 year ago

@rustyriver no problem mate. one more thing, did you use version 8? maybe if you can install that, that would help to test it out

edit: what php did finally work for you? did you try with a higher version?

rustyriver commented 1 year ago

I'm using PHP Version 5.4.16 on the ClinicCases version. Now I need to get the email working. Wish me luck.

test2a commented 1 year ago

@rustyriver good luck. did you try php 8? did it fail? i never got email working myself so if you do something, write it down.

one more thing, if we can write a "definitive guide" or something in an issue, that would be great.