MapTools.org

[maplab-users] Re: Re: Maplab installation hangup

Paul Spencer pgs@magma.ca
Mon, 13 Jan 2003 16:31:28 -0500
Doug, your httpd.conf file contains a line something like:

LoadModule php4_module c:/php412/sapi/php4apache.dll

you need to replace this with something like:

Action  application/x-httpd-php "/php/php.exe"
ScriptAlias /php/ "c:/php423/"
AddType application/x-httpd-php .php4 .php .php3 .phtml

This will cause Apache to treat PHP pages as CGI scripts and pass them 
to php.exe in the directory you defined as the ScriptAlias.  Then 
everything will magically work (at least that's the theory ;))

Cheers,

Paul


Doug Nebert wrote:
>  > Doug Nebert wrote:
>  >>
>  >> I have apache 1.3.24 running on Win2k, PHP 4.3.1, mapserver 3.6.3
>  >> but I am having trouble getting any .phtml files recognized (they
>  >> just display as text; does it need a handler assigned to them?)
>  >> and the test in the documentation below indicates that Apache
>  >> doesn't like the dl() function:
>  >>
>  >> Warning: dl() [function.dl]: Not supported in multithreaded Web servers
>  >> - use extension statements in your php.ini in
>  >> h:\apache\htdocs\mapphp.php on line 5
>  >>
> 
>  > You get this because you installed PHP as an IIS extension.  Your PHP
>  > has to be installed as a CGI for it to work with PHP MapScript, I
>  > believe you should be able to find all the information you need to
>  > install PHP as a CGI in IIS at
>  >http://mapserver.gis.umn.edu/doc36/phpmapscript-install-howto.html#example
>  >
>  > With PHP installed in CGI mode the dl() function should work just fine.
>  >
>  > Daniel
> 
> Users:
> 
> I am still having the same troubles. I have Apache (not IIS) version 
> 1.3.24 installed under Windows 2K. I modified the httpd.conf and php.ini 
> files exactly as requested in the above example. I am not loading the 
> modules, but linking as per example. PHP is working, I can tell, as the 
> parameters come back just fine from the php info screen, but calls for 
> function.dl insist "Not supported in multithreaded Web servers - use 
> extension statements in your php.ini" I *do* have the php_dbase.dll and 
> php_gd.dll extensions loaded. What else should I do to make maplab run?
> The test page: http://68.48.28.170/mapphp.php
> 
> Doug.
> 
> _______________________________________________
> Maplab-users mailing list
> Maplab-users@dmsolutions.ca
> http://lists.dmsolutions.ca/mailman/listinfo/maplab-users
> 




This archive was generated by Pipermail.