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.
Server Setup Error on LINUX
-
- Posts: 572
- Joined: July 9th, 2012, 11:32 am
- Location: Islamabad, Pakistan
Server Setup Error on LINUX
- Attachments
-
- server error.pptx
- (161.74 KiB) Downloaded 260 times
Re: Server Setup Error on LINUX
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
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
-
- Posts: 572
- Joined: July 9th, 2012, 11:32 am
- Location: Islamabad, Pakistan
Re: Server Setup Error on LINUX
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.
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 (145.37 KiB) Viewed 2898 times
-
- Setuperror.png (32.19 KiB) Viewed 2898 times
Re: Server Setup Error on LINUX
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:
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:
More recently I have read that it is better to use semanage fcontext rather than chcon since it survives a reconfigure.
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
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/
-
- Posts: 572
- Joined: July 9th, 2012, 11:32 am
- Location: Islamabad, Pakistan
Re: Server Setup Error on LINUX
Thank you josh.
I will let you know, after fixing this error.
Thank you again.
a.
I will let you know, after fixing this error.
Thank you again.
a.