MapTools.org

[maplab-users] Trouble getting (re)started

Balkanu GIS gis@balkanu.com.au
Fri, 27 Feb 2004 17:13:33 +1000
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




This archive was generated by Pipermail.