[mapserver-users] mapserver files to subdomain results in '500Internal Server Error' when mapserv executable accessed through url

Daniel Morissette dmorissette at mapgears.com
Tue Sep 22 12:49:51 PDT 2009


Ted Spradley wrote:
> 
> Then I tried setting the environment variable by adding 'SetEnv
> LD_LIBRARY_PATH /usr/local/lib'
> to the /var/www/vhosts/domain/conf/httpd.include file as follows:
> 
> <VirtualHost xxx.xxx.xxx.xx:80>
>         ServerName   maps.domain.com:80
>         SuexecUserGroup         snoogadmin psacln
>         ServerAdmin  "admin at domain.com"
>         DocumentRoot /var/www/vhosts/domain.com/subdomains/maps/httpdocs
>         CustomLog  /var/www/vhosts/domain.com/statistics/logs/access_log
> plesklog
>         ErrorLog  /var/www/vhosts/domain.com/statistics/logs/error_log
>         ScriptAlias  /cgi-bin/ /var/www/cgi-bin/
>         SetEnv LD_LIBRARY_PATH /usr/local/lib
> 
> and restarted Apache, but with the same result of '500 Internal Server
> Error'.
> 

You also need to tell Apache to pass the env var to the CGI environment 
using PassEnv:

   PassEnv LD_LIBRARY_PATH

Daniel
-- 
Daniel Morissette
http://www.mapgears.com/



More information about the MapServer-users mailing list