I am trying to run lmutil lmstat -c "port@server" -a" in a CGI script in apache. When I run it at the command line, it works fine. I have tried several users - no problems. When it runs in the web browser, I get an error:
lmutil - Copyright (c) 1989-2011 Flexera Software, Inc. All Rights Reserved. Flexible License Manager status on Mon 10/17/2011 09:02 Error getting status: Cannot connect to license server system. (-15,570:13 "Permission denied")
Any idea why?
Thanks,
The only idea I have: It might be related to (security-)restrictions which are created by SELinux (is is a Redhat/Centos/Fedora machine? It is usually activated there) or AppArmor (or similiar projects).
Best regards, Wolfgang
Installation on minimal CentOS 7
I solved enable network connect for http with the command :
setsebool -P httpd_can_network_connect on
Thank You, Sandro
Ok, so SELinux seems to be the cause. I am closing this ticket.