I'm running xampp in windows 7, apache is listening port 80.
I downloaded OSGeo4W and installed the bundle under c:\ms4w and configuring apache to listen on port 8080.
I'm running htt://localhost:8080/cgi-bin/mapserv.exe and I'm getting the following output
Then I copied all the cgi-bin from ms4w/apache to xampp/apache.I also searched the ms4w httpd.conf, in the ms4w/appache/conf, for mapserver and transferred the following to xampp apache configuration.
## Alias for MapServer tmp directoryAlias /ms_tmp/ "C:/xampp/tmp/ms_tmp/" # set environment vars necessary for MapServerSetEnv PROJ_LIB "C:/xampp/ms4w/proj/nad/"SetEnv PATH "C:/xampp/apache/cgi-bin/" # uncomment the following lines to log MapServer errors to a file#SetEnv MS_ERRORFILE "C:/xampp/tmp/ms_error.txt"#SetEnv MS_DEBUGLEVEL 3Restarting apache under xampp and executing http://localhost:80/cgi-bin/mapserv.exe and as a result I'm getting
Object not found!The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.If you think this is a server error, please contact the webmaster.Error 404localhostApache/2.4.9 (Win32) OpenSSL/1.0.1g PHP/5.5.11What am I doing wrong?
أكثر...
I downloaded OSGeo4W and installed the bundle under c:\ms4w and configuring apache to listen on port 8080.
I'm running htt://localhost:8080/cgi-bin/mapserv.exe and I'm getting the following output
No query information to decode. QUERY_STRING is set, but empty.
which according the instructions shows that mapserver is running. I also executed the following example htt://127.0.0.1:8080/quickmap.php which also run with no problems.
Then I copied all the cgi-bin from ms4w/apache to xampp/apache.I also searched the ms4w httpd.conf, in the ms4w/appache/conf, for mapserver and transferred the following to xampp apache configuration.
## Alias for MapServer tmp directoryAlias /ms_tmp/ "C:/xampp/tmp/ms_tmp/" # set environment vars necessary for MapServerSetEnv PROJ_LIB "C:/xampp/ms4w/proj/nad/"SetEnv PATH "C:/xampp/apache/cgi-bin/" # uncomment the following lines to log MapServer errors to a file#SetEnv MS_ERRORFILE "C:/xampp/tmp/ms_error.txt"#SetEnv MS_DEBUGLEVEL 3Restarting apache under xampp and executing http://localhost:80/cgi-bin/mapserv.exe and as a result I'm getting
Object not found!The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.If you think this is a server error, please contact the webmaster.Error 404localhostApache/2.4.9 (Win32) OpenSSL/1.0.1g PHP/5.5.11What am I doing wrong?
أكثر...