MichielZev
New Pleskian
- Server operating system version
- Debian 12
- Plesk version and microupdate number
- Plesk Obsidian 18.0.71, actualización 2 Web Pro Edition
In a domain hosted with Plesk I want to use Mapserver software to generate maps. This is a CGI program. For this Apache needs to have an environment variable called MAPSERVER_CONFIG_FILE
In Plesk in the domain I have use the Apache and ngix configuration and put the following in additional directives (both for HTTP and HTTPS
SetEnv MAPSERVER_CONFIG_FILE /usr/local/etc/mapserver.conf
It seems that this environment variable is not set because I get an error message when running the Mapserver script from the browser saying : msLoadConfig(): Unable to access file (this indicates that the configuration file can not be accessed.
Question:
Is this the correct way to set an evironment variable in a virtual host in Plesk?
In Plesk in the domain I have use the Apache and ngix configuration and put the following in additional directives (both for HTTP and HTTPS
SetEnv MAPSERVER_CONFIG_FILE /usr/local/etc/mapserver.conf
It seems that this environment variable is not set because I get an error message when running the Mapserver script from the browser saying : msLoadConfig(): Unable to access file (this indicates that the configuration file can not be accessed.
Question:
Is this the correct way to set an evironment variable in a virtual host in Plesk?