Server Setup Error on LINUX

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
khurshid.arshad
Posts: 571
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan

Server Setup Error on LINUX

Post 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.
Attachments
server error.pptx
(161.74 KiB) Downloaded 256 times
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Server Setup Error on LINUX

Post 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
khurshid.arshad
Posts: 571
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan

Re: Server Setup Error on LINUX

Post 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.
Attachments
Writes.jpg
Writes.jpg (145.37 KiB) Viewed 2865 times
Setuperror.png
Setuperror.png (32.19 KiB) Viewed 2865 times
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Server Setup Error on LINUX

Post 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.
khurshid.arshad
Posts: 571
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan

Re: Server Setup Error on LINUX

Post by khurshid.arshad »

Thank you josh.

I will let you know, after fixing this error.

Thank you again.

a.
Post Reply