[mapserver-users] installation mapscript with apache on win32 platform

Till Adams adams at terrestris.de
Wed Dec 25 04:27:38 PST 2002


Dear fx gamoy,

I have an installaton howto I've picked from several websites. It's the 
whole installation process of MapServer, PHP, Apache and MabLab for Win2K:
For you maybe section 7 is interesting. Hope it works, never tested it.
Cheers, Till
______________________________________________________________

Download precompiled version of Mapserver from
http://www2.dmsolutions.ca/mapserver/dl/

actual (August 02) version mapserver-3.6.2-win32-php4.2.2-libwww.zip
In the Zip there also is the file libwww.zip with the required Dlls.
Put these to c/winnt/system32 .

install MapServer as usual. Entries into the httpconfig of Apache as 
described below.

Stepwise description of Installation of Apache and php is on
http://www.net-language.com/workshops/Default.asp?Workshop=21

1.
install Apache, get source from

http://www.apache.org/dist/httpd/  // *.msi-version for linux

setup.exe (//or run the *.msi), put in servername, etc.
Configurations of the aliases for the tmp/ (Images) and for the
CGI Scripts.

e.g.:
#
ScriptAlias /cgi-bin "C:/Programme/Apache Group/Apache2/cgi-bin"

#
# "C:/Programme/Apache Group/Apache2/cgi-bin" should be changed to 
whatever your config is like

ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "C:/Programme/Apache Group/Apache2/cgi-bin">
     AllowOverride None
     Options None
     Order allow,deny
     Allow from all
</Directory>
#
#

2.
install Php -- get php-4.2.2-installer.exe from

http://ftp.proventum.net/pub/php/win32/
(August 2002: state-of-the-art php_4.2.2)


3.
Setup.exe. Get php-4.2.2-Win32.zip and put the following Dlls into the
installation directory of Php:

php_dbase.dll
php_gd.dll

There also must be the following Dlls:

php4ts.dll - when running php-4.2.2-installer.exe this will not always 
be copied

php_mapscript.dll - find this Dll from the MapServer file: 
mapserver-3.6.2-win32-php4.2.2-libwww.zip and rename it from 
php_mapscript_36.dll to php_mapscript.dll.


4.
fit httpconfig Apache
redirect document root directory ti the installation of php:

#
#DocumentRoot "C:/Programme/Apache Group/Apache2/htdocs"  (Old)
DocumentRoot "C:/Programme/PHP/phpweb" (New - example)
#

about 10 rows later:

#
# This should be changed to whatever you set DocumentRoot to.
#
#<Directory "C:/Programme/Apache Group/Apache2/htdocs">
<Directory "C:/Programme/PHP/phpweb">
#

and in the last quarter after

#
AddType application/x-tar .tgz
#

put in this:

#
ScriptAlias /php4 "C:/Programme/PHP"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .phtml          <<<< IMPORTANT*** !!!
Action application/x-httpd-php "/php4/php.exe
#
#

***IMPORTANT!! Although the manual says no, you have to fill in phtml as 
well !!!

5.
Install Maplab, find it:

http://www2.dmsolutions.ca/webtools/maplab/maplab_dl.html

get newest version (Aug 2002 v2.02) and put it to the installation 
directory of php (here:

C:\Programme\PHP\phpweb\maplab-2.0rc2)

6.
Call the configuration from the browser:
http://<localhost>/maplab-2.0rc2/htdocs/index.phtml
and click the 3rd button from the right.

Fill in required stuff. All with "/" never use "\" !!!

7.
Changings in php.ini (find it in C:/Winnt).

put "allow_call_time_pass_reference" auf 'On':

         allow_call_time_pass_reference = On
put "error_reporting" auf (Empfehlung):

         error_reporting  =  E_ALL & ~E_NOTICE

Enable dl() Funktion:

         enable_dl = On

Load following extensions:

         extension=php_dbase.dll
         extension=php_gd.dll
	extension=php_mapscript.dll

Save&ready, should work now.






fx gamoy schrieb:
> i try to configure mapscript as a CGI with apache on a winNT plateform
> i have made some changes in the httpd.conf file
> LoadModule php4_module c:/php/sapi/php4apache.dll
> AddModule mod_php4.c
> AddType application/x-httpd-php .php .phtml
> Action application/x-httpd-php "c:/php/php.exe"
>  
> and IE return :
> Fatal error: dl() is not supported in multithreaded Web servers - use 
> extension statements in your php.ini in 
> D:\downloads\mapserver\maplab\maplab-2.0rc2\gmf_apps\eurosig\wrapper\utilities.php 
> on line 51
> Thanks for your help
> fx gamoy
> http://www.mapxlore.com/


-- 


-----

Dipl. Geogr. Till Adams
terrestris, Paulsen&Adams GbR
Meckenheimer Allee 166 * 53115 Bonn
Tel.: 0228 73 9647 * Fax.: 0228 73 6538
info at terrestris.de * www.terrestris.de




More information about the MapServer-users mailing list