|
||||
[maplab-users] mapscript_maplab installation trouble ...Paul Spencer spencer@dmsolutions.caWed, 25 Jun 2003 09:22:38 -0400
|
Irvan, you should not have any trouble with this configuration, it is pretty typical. You must install PHP as a CGI, as reported by the error message. The reason it worked up to the preview part is that up until that point, mapscript was probably not loaded because it is only needed for the preview in mapedit. The error message that you are getting is pretty vague. It may mean several different things. Things that you can check: httpd.conf typical setup: <IfModule mod_dir.c> DirectoryIndex index.html index.php index.phtml </IfModule> ScriptAlias /php/ "c:/php432/" <Directory "c:/Apache/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory> AddType application/x-httpd-php4 .php4 .php3 .phtml .php Action application/x-httpd-php4 /php/php.exe php.ini settings: session.save_path needs to be valid, typically c:/temp/ or c:/windows/temp and then create a script called phpinfo.php in c:/Apache/htdocs/ with the following contents: <?php phpinfo(); ?> and restart apache, the access http://localhost/phpinfo.php If it works, you should see the php info page. Next try creating phpinfo_mapscript.php: <?php dl("php_mapscript_36.dll"); phpinfo(); ?> And access http://localhost/phpinfo_mapscript.php If it works, you should see the same php info page with the mapscript info block. Then you can try maplab again. Cheers, Paul Irvan Kristianto wrote: > hello all ... > > i have a trouble during mapserver installation. > > i have : (OS windows 2000 advanced server) > apache_1.3.27-win32-x86-no_src.msi > php-4.3.2-Win32.zip > mapserver-3.6.6-dev-win32-php4.3.1-libwww-postgis.zip > maplab-2.0.1-release.zip > proj4_win32.zip > proj4-epsg-with-42xxx-and-esri.zip > > first php installation as module. it's work on "info.phtml" and > "index.phtml" > after set xml configuration, then goto mapedit (still work), then edit > tutorial.map, > an error occur when clicking preview map. > > it told me to install php as CGI .... > > Fatal error: Due to thread-safety problems, php_mapscript cannot be used as > a 'apache' module. > You will have to reconfigure your PHP as a CGI to run this version of > MapScript. > See http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI. > in d:\irvan\maplab\htdocs\common\wrapper\map_session.php on line 208 > > and then i configure php an apache as CGI.after that ... > IT DOES'NT WORK ... AT ALL. > > i try info.phtml, index.phtml... > > No input file specified.... or > page cannot be found.... > > and i try some script on other file > > <? > dl("php_mapscript_36.dll"); > phpinfo(); > ?> > > it told me : page cannot be found.... > or > dl() cannot executed in multithreaded server .. > > PLEASE , help me... > or just curious ... should i install PHP 4.2.x instead of 4.3.x ??? > give some story of successful installation on windows 2000 ... > _______________________________________________ > Maplab-users mailing list > Maplab-users@dmsolutions.ca > http://lists.dmsolutions.ca/mailman/listinfo/maplab-users > -- Paul Spencer Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |