gamonoid / icehrm

Manage your employees easily with a robust and efficient Human Resource Management System
http://icehrm.com
Other
586 stars 373 forks source link

Can't install on CentOs 7 icehrm_v26.2.0.OS #189

Closed karimkalunga closed 5 years ago

karimkalunga commented 5 years ago

I've followed all the steps to install provided in the documentation, but when i visit the installation path I get couple of errors.

Configuration file [/usr/share/nginx/html/app/config.php] is not writable Make this file writable

sudo touch /usr/share/nginx/html/app/config.php

sudo chmod 777 /usr/share/nginx/html/app/config.php

Data folder is not writable Provide wirte permission to the web server user to /usr/share/nginx/html/app/data

sudo chmod 777 /usr/share/nginx/html/app/data

karimkalunga commented 5 years ago

I solved this issue by renaming the config.sample.php file to config.php. Provide the necessary permission to the data folder by running the command below.

sudo chmod 777 /usr/share/nginx/html/app/data

Note: I wasn't able to find anywhere in the docs instructions on how to edit the config.php file, specifically for some confusing parameters (APP_BASE_PATH, CLIENT_BASE_PATH, BASE_URL and CLIENT_BASE_URL). Refer to this article or this.