MapTools.org

[maplab-users] Trouble getting (re)started

Tyler Mitchell TMitchell@lignum.com
Fri, 27 Feb 2004 09:02:46 -0800
This is a multipart message in MIME format.
--=_alternative 005DA39988256E47_=
Content-Type: text/plain; charset="US-ASCII"

Are you  making lots of changes in httpd.conf and php.ini trying to fix 
this? 
Well, I feel your pain and here is the best piece of advice I can give:

Anytime you make a change you should always 1) Restart apache - which I 
assume you are doing.  But what I found, particularly on Windows with 
Internet Explorer, was that 2) Close IE - don't just hit REFRESH to try 
again.  Something goofy goes on with caching and it may look like Apache 
serves up a new page when it really doesn't!  That was the biggest 
headache for me. 

Here's some other thoughts/questions:

How about putting phpinfo.php in to 
C:/<path_to_htdocs>/htdocs/maplab-2.1-rc3/htdocs/
and testing
http://localhost/maplab/phpinfo.php ?

Does that work?  I assume it won't.

Can you try explicitly opening the index.phtml file?
http://localhost/maplab/index.phtml
I assume you'll get the same response.

I notice you setup your "maplab" alias fine, but you don't go on to 
specify any options for the folder, only it's parent folder.  Did you 
intend to have a <DIRECTORY "
C:/<path_to_htdocs>/htdocs/maplab-2.1-rc3/htdocs/"> section?


I hope this helps.

Tyler
maplab-users-admin@lists.maptools.org wrote on 02/27/2004 03:46:07 AM:

> what about trying:
> 
> http://localhost/maplab/
> 
> since you nicely set up an alias for that :)
> 
> but if you are getting just php code instead of a web page then PHP is 
> not properly configured.  But it all looks right ... perhaps a small 
> typo or extra space somewhere ... or an extra / somewhere?
> 
> You can also try http://www.maptools.org/ms4w/ to setup apache, php, 
> mapscript and maplab in a fully preconfigured environment that *should* 
> work out of the box :)
> 
> Cheers,
> 
> Paul
> 
> Balkanu GIS wrote:
> 
> > Hi all,
> > I hope this doesn't sound too stupid, but:
> > 
> > <setup> 
> > Win2000 sp4
> > Apache 2
> > PHP 4.3.4
> > MapServer 4.0
> > MapLab 2.1 rc3
> > </setup>
> > 
> > 1. I had MapLab more or less working using a bundled Apache/MySQL/PHP 
setup
> > called PHPDev (http://www.firepages.com.au) - but was getting errors 
to do
> > with the fact that PHP was being used as a module and not a CGI 
program.
> > 
> > 2. After messing with the configs a little too much everything got way 
out
> > of hand and I decided to do clean, basic installs of the three 
components. I
> > downloaded and installed current versions of all three components. 
Apache 2
> > is working. PHP 4.3.4 is working and phpinfo.php shows MapScript
> > information, meaning presumably that the php_mapscript.dll files are 
being
> > read from /php/extensions/. I have tested MySQL from a CLI, but that's 
all.
> > 
> > 3. I have modified httpd.conf for MapLab with the following lines:
> > 
> > ---snip---
> > 
> > DirectoryIndex index.html index.html.var index.php index.phtml
> > 
> > ##Added for MapLab
> > Alias /maplab/ "C:/<path_to_htdocs>/htdocs/maplab-2.1-rc3/htdocs/"
> > 
> > <Directory "C:/<path_to_htdocs>/htdocs/maplab-2.1-rc3">
> >    Order allow,deny
> >    Allow from localhost
> >    DirectoryIndex index.html index.html.var index.phtml index.php
> > </Directory>
> > 
> > <Directory "C:/<path_to_htdocs>/htdocs/">
> >    Order allow,deny
> >    Allow from localhost
> >    DirectoryIndex index.html index.html.var index.phtml index.php
> > </Directory>
> > 
> > ---snip---
> > 
> > Alias /tmp/ "C:/<path_to_htdocs>/htdocs/tmp/"
> > 
> > ---snip---
> > 
> > #Added for MapScript PHP functionality
> > ScriptAlias /php/ "c:/php/"
> > AddType application/x-httpd-php .php
> > Action application/x-httpd-php "/php/php.exe"
> > 
> > ---end of sample---
> > 
> > I have also modified php.ini according to the MapScript install
> > instructions.
> > 
> > My problem at the moment is that opening
> > http://<servername>/maplab-2.1-rc3/htdocs/ in a browser returns only 
the
> > code, starting with "<?php " , rather than a rendered page. Can anyone 
see
> > anything obvious I'm missing? Any hints would be gratefully received 
and
> > acted upon.
> > 
> > Best regards
> > 
> > Yuri Banens
> > Balkanu GIS
> > 
> > 
> > _______________________________________________
> > Maplab-users mailing list
> > Maplab-users@lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/maplab-users
> > 
> 
> _______________________________________________
> Maplab-users mailing list
> Maplab-users@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/maplab-users

--=_alternative 005DA39988256E47_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Are you &nbsp;making lots of changes
in httpd.conf and php.ini trying to fix this? </font>
<br><font size=2 face="sans-serif">Well, I feel your pain and here is the
best piece of advice I can give:</font>
<br>
<br><font size=2 face="sans-serif">Anytime you make a change you should
always 1) Restart apache - which I assume you are doing. &nbsp;But what
I found, particularly on Windows with Internet Explorer, was that 2) Close
IE - don't just hit REFRESH to try again. &nbsp;Something goofy goes on
with caching and it may look like Apache serves up a new page when it really
doesn't! &nbsp;That was the biggest headache for me. &nbsp;</font>
<br>
<br><font size=2><tt>Here's some other thoughts/questions:</tt></font>
<br>
<br><font size=2><tt>How about putting phpinfo.php in to C:/&lt;path_to_htdocs&gt;/htdocs/maplab-2.1-rc3/htdocs/</tt></font>
<br><font size=2><tt>and testing</tt></font>
<br><font size=2><tt>http://localhost/maplab/phpinfo.php ?</tt></font>
<br>
<br><font size=2><tt>Does that work? &nbsp;I assume it won't.</tt></font>
<br>
<br><font size=2><tt>Can you try explicitly opening the index.phtml file?</tt></font>
<br><font size=2><tt>http://localhost/maplab/index.phtml</tt></font>
<br><font size=2 face="sans-serif">I assume you'll get the same response.</font>
<br>
<br><font size=2 face="sans-serif">I notice you setup your &quot;maplab&quot;
alias fine, but you don't go on to specify any options for the folder,
only it's parent folder. &nbsp;Did you intend to have a &lt;DIRECTORY &quot;</font><font size=2><tt>C:/&lt;path_to_htdocs&gt;/htdocs/maplab-2.1-rc3/htdocs/</tt></font><font size=2 face="sans-serif">&quot;&gt;
section?</font>
<br>
<br>
<br><font size=2 face="sans-serif">I hope this helps.</font>
<br>
<br><font size=2 face="sans-serif">Tyler</font>
<br><font size=2><tt>maplab-users-admin@lists.maptools.org wrote on 02/27/2004
03:46:07 AM:<br>
<br>
&gt; what about trying:<br>
&gt; <br>
&gt; http://localhost/maplab/<br>
&gt; <br>
&gt; since you nicely set up an alias for that :)<br>
&gt; <br>
&gt; but if you are getting just php code instead of a web page then PHP
is <br>
&gt; not properly configured. &nbsp;But it all looks right ... perhaps
a small <br>
&gt; typo or extra space somewhere ... or an extra / somewhere?<br>
&gt; <br>
&gt; You can also try http://www.maptools.org/ms4w/ to setup apache, php,
<br>
&gt; mapscript and maplab in a fully preconfigured environment that *should*
<br>
&gt; work out of the box :)<br>
&gt; <br>
&gt; Cheers,<br>
&gt; <br>
&gt; Paul<br>
&gt; <br>
&gt; Balkanu GIS wrote:<br>
&gt; <br>
&gt; &gt; Hi all,<br>
&gt; &gt; I hope this doesn't sound too stupid, but:<br>
&gt; &gt; <br>
&gt; &gt; &lt;setup&gt; <br>
&gt; &gt; Win2000 sp4<br>
&gt; &gt; Apache 2<br>
&gt; &gt; PHP 4.3.4<br>
&gt; &gt; MapServer 4.0<br>
&gt; &gt; MapLab 2.1 rc3<br>
&gt; &gt; &lt;/setup&gt;<br>
&gt; &gt; <br>
&gt; &gt; 1. I had MapLab more or less working using a bundled Apache/MySQL/PHP
setup<br>
&gt; &gt; called PHPDev (http://www.firepages.com.au) - but was getting
errors to do<br>
&gt; &gt; with the fact that PHP was being used as a module and not a CGI
program.<br>
&gt; &gt; <br>
&gt; &gt; 2. After messing with the configs a little too much everything
got way out<br>
&gt; &gt; of hand and I decided to do clean, basic installs of the three
components. I<br>
&gt; &gt; downloaded and installed current versions of all three components.
Apache 2<br>
&gt; &gt; is working. PHP 4.3.4 is working and phpinfo.php shows MapScript<br>
&gt; &gt; information, meaning presumably that the php_mapscript.dll files
are being<br>
&gt; &gt; read from /php/extensions/. I have tested MySQL from a CLI, but
that's all.<br>
&gt; &gt; <br>
&gt; &gt; 3. I have modified httpd.conf for MapLab with the following lines:<br>
&gt; &gt; <br>
&gt; &gt; ---snip---<br>
&gt; &gt; <br>
&gt; &gt; DirectoryIndex index.html index.html.var index.php index.phtml<br>
&gt; &gt; <br>
&gt; &gt; ##Added for MapLab<br>
&gt; &gt; Alias /maplab/ &quot;C:/&lt;path_to_htdocs&gt;/htdocs/maplab-2.1-rc3/htdocs/&quot;<br>
&gt; &gt; <br>
&gt; &gt; &lt;Directory &quot;C:/&lt;path_to_htdocs&gt;/htdocs/maplab-2.1-rc3&quot;&gt;<br>
&gt; &gt; &nbsp; &nbsp;Order allow,deny<br>
&gt; &gt; &nbsp; &nbsp;Allow from localhost<br>
&gt; &gt; &nbsp; &nbsp;DirectoryIndex index.html index.html.var index.phtml
index.php<br>
&gt; &gt; &lt;/Directory&gt;<br>
&gt; &gt; <br>
&gt; &gt; &lt;Directory &quot;C:/&lt;path_to_htdocs&gt;/htdocs/&quot;&gt;<br>
&gt; &gt; &nbsp; &nbsp;Order allow,deny<br>
&gt; &gt; &nbsp; &nbsp;Allow from localhost<br>
&gt; &gt; &nbsp; &nbsp;DirectoryIndex index.html index.html.var index.phtml
index.php<br>
&gt; &gt; &lt;/Directory&gt;<br>
&gt; &gt; <br>
&gt; &gt; ---snip---<br>
&gt; &gt; <br>
&gt; &gt; Alias /tmp/ &quot;C:/&lt;path_to_htdocs&gt;/htdocs/tmp/&quot;<br>
&gt; &gt; <br>
&gt; &gt; ---snip---<br>
&gt; &gt; <br>
&gt; &gt; #Added for MapScript PHP functionality<br>
&gt; &gt; ScriptAlias /php/ &quot;c:/php/&quot;<br>
&gt; &gt; AddType application/x-httpd-php .php<br>
&gt; &gt; Action application/x-httpd-php &quot;/php/php.exe&quot;<br>
&gt; &gt; <br>
&gt; &gt; ---end of sample---<br>
&gt; &gt; <br>
&gt; &gt; I have also modified php.ini according to the MapScript install<br>
&gt; &gt; instructions.<br>
&gt; &gt; <br>
&gt; &gt; My problem at the moment is that opening<br>
&gt; &gt; http://&lt;servername&gt;/maplab-2.1-rc3/htdocs/ in a browser
returns only the<br>
&gt; &gt; code, starting with &quot;&lt;?php &quot; , rather than a rendered
page. Can anyone see<br>
&gt; &gt; anything obvious I'm missing? Any hints would be gratefully received
and<br>
&gt; &gt; acted upon.<br>
&gt; &gt; <br>
&gt; &gt; Best regards<br>
&gt; &gt; <br>
&gt; &gt; Yuri Banens<br>
&gt; &gt; Balkanu GIS<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Maplab-users mailing list<br>
&gt; &gt; Maplab-users@lists.maptools.org<br>
&gt; &gt; http://lists.maptools.org/mailman/listinfo/maplab-users<br>
&gt; &gt; <br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; Maplab-users mailing list<br>
&gt; Maplab-users@lists.maptools.org<br>
&gt; http://lists.maptools.org/mailman/listinfo/maplab-users<br>
</tt></font>
--=_alternative 005DA39988256E47_=--


This archive was generated by Pipermail.