Page 1 of 1

Server Setup Error on LINUX

Posted: November 9th, 2018, 7:40 am
by khurshid.arshad
Dear Team

Please guide for the server missing component as per the attached file.

We have copied CSWEB folder in www/html/ in LINUX server.

We are trying to run cspro setup on LINUX Server.

Best Regards.
A.

Re: Server Setup Error on LINUX

Posted: November 9th, 2018, 9:21 am
by aaronw
The first error is saying you need to make the directories writable. They are all located within the CSWeb directory. Take a look at this link for how to do that: https://askubuntu.com/questions/265381/ ... y-writable

Next, mod_rewrite is an Apache module that needs to be installed and enabled. Since you're on Linux, it is likely the module is already installed. Follow this link to enable it: https://stackoverflow.com/questions/313 ... -on-any-os

Re: Server Setup Error on LINUX

Posted: December 12th, 2019, 8:45 pm
by khurshid.arshad
Dear CSPro Team;

We've been trying to set up a Linux server for CSPro, but we can't succeed in 2018. We are using IIS CSWeb currently.

The client is now requesting to use linux server. We try the run the configuration but it shows error on "var, log, src/api/app.....".

Advice, please.
Thanks.
a.

Re: Server Setup Error on LINUX

Posted: December 13th, 2019, 7:19 am
by josh
If the system uses access control lists you may need to configure them in addition to setting the permissions. On my system I did the following:

Code: Select all

sudo setfacl -R -m u:www-data:rwX files logs var src/api/app src/ui/src
sudo setfacl -dR -m u:www-data:rwX files logs var src/api/app src/ui/src
In addition if the system runs SELinux you also need to configure rules for that. Redhat/CentOS has SELinux enabled by default. You can check if SELinux is enabled with the getenforce command.

On my system I used the following commands to set the correct SELinux context:

Code: Select all

sudo chcon -t httpd_sys_script_rw_t /var/www/html/csweb/files
sudo chcon -t httpd_sys_script_rw_t /var/www/html/csweb/var/
sudo chcon -t httpd_sys_script_rw_t /var/www/html/csweb/logs
sudo chcon -t httpd_sys_script_rw_t /var/www/html/csweb/src/api/app/
sudo chcon -t httpd_sys_script_rw_t /var/www/html/csweb/src/ui/src/
More recently I have read that it is better to use semanage fcontext rather than chcon since it survives a reconfigure.

Re: Server Setup Error on LINUX

Posted: December 13th, 2019, 7:57 am
by khurshid.arshad
Thank you josh.

I will let you know, after fixing this error.

Thank you again.

a.