MapTools.org

[maplab-users] Re: MapLab setup question

Bob Carr racarr@ameritech.net
Sun, 8 Jun 103 06:19:30 -0500 (CDT)
In a previous message Jeff McKenna wrote:
> 
> Hi Peter,
> 
> The error that you mentioned is actually a php run-time notice, and (as 
> we mention in the install doc, see the "Setting up PHP" section) can be 
> avoided by setting error reporting to not show notices.  In the php.ini 
> file, search for 'error_reporting' and specify the following:
> 
> error_reporting  =  E_ALL & ~E_NOTICE
> 
> This also applies to your GMapFactory notices that you mentioned in your 
> other email as well.
> 
> As for your problem of only being able to view php pages in 
> Apache/htdocs, I have never seen that problem, and am not sure why that 
> is happening.  Maybe some other MapLab user has had that problem.
> 
> Hope this helps.
> 
> Jeff
> 

Peter,

Have you set the value of doc_root in your php.ini file?  If so,
try resetting it to empty.  For me, that was the key to making
aliased directories outside of Apache's document root available to
php.  

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues.  The alternate is to use the
; cgi.force_redirect configuration below
doc_root = 


Good luck.

Bob Carr

> 
> 
> 
> Peter.VonGaza wrote:
> > Hi Jeff,
> > 
> > Thanks for the fast response! All your instructions worked great.  Now the
> > next problems!
> > 
> > In MapEdit when trying to open a map or create a new map I get the following
> > error"
> > 
> > "Notice: Undefined index: bReadOnly in
> > D:\Web\ApacheGroup\Apache2\htdocs\maplab\htdocs\common\file_browser\Browser.
> > phtml on line 4"
> > 
> > Any ideas?
> > 
> > Also, I was not able to get my Apache + PHP setup to recognize .phtml or
> > .php files when I had the MapLab directory somewhere other that under
> > Apache2\htdocs\.  I could display the directory trees and open html files,
> > but no luck with php.  My lack of knowledge of Apache + PHP is getting me
> > again...
> > 
> > 
> > Thanks,
> > Peter
> > 
> > 
> > 
> > -----Original Message-----
> > From: Jeff McKenna [mailto:mckenna@dmsolutions.ca] 
> > Sent: Thursday, June 05, 2003 7:39 AM
> > To: Peter.VonGaza
> > Cc: MapLab-users
> > Subject: Re: MapLab setup question
> > 
> > 
> > Hi Peter,
> > 
> > You are right, it does have to do with the httpd.conf Apache file.  When 
> > we say "Edit your web server configuration to allow access to 
> > <installation-path>/maplab.." we mean that your webserver must allow 
> > users to browse to the maplab directory.  This is accomplished by:
> > 
> > 1) adding an alias to the maplab directory.  Add the following line to 
> > the "Alias" section of the conf file (or something like it):
> > 
> > Alias /mymaplab/ "C:/<installation-path>/maplab-2.0-RC4/"
> > 
> > Now you should be able to goto http://localhost/mymaplab/
> > 
> > 2) You must give users permissions to view the contents of 'mymaplab'. 
> > Add the following (or something like it) beneath the alias section:
> > 
> > <Directory "C:/<installation-path>/maplab-2.0-RC4/">
> >      Options Indexes MultiViews
> >      AllowOverride None
> >      Order allow,deny
> >      Allow from all
> > </Directory>
> > 
> > Finally, to add index.phtml pages as default pages search for 
> > "DirectoryIndex" in the conf file, and add 'index.phtml' to that line, 
> > as follows:
> > 
> > DirectoryIndex index.html index.html.var index.phtml
> > 
> > Hope this helps.
> > 
> > Jeff
> > 
> > 
> > 
> > 
> > 
> > Peter.VonGaza wrote:
> > 
> >>Howdy,
> >> 
> >>I've been trying to get MapLab setup and have a couple questions.  
> >>I've
> >>got Mapserver working on Win2k with Apache2 and php4.  I followed your 
> >>instructions and was able to get Mapscript going.  Now I'm at your 
> >>"Configure your Web Server" instructions and am stuck because of my lack 
> >>of knowledge of Apache.
> >> 
> >>I'm having trouble with:
> >>"Edit your web server configuration to allow access to 
> >><installation-path>/Maplab-2.0-RC4/... and make sure that index.phtml
> > 
> > pages are allowed as
> > 
> >>default pages.
> >> 
> >>1. How do i add a new path?  Is this something i add to the 
> >>"httpd.conf"
> >>file?
> >>2. How do i set index.phtml pages as default pages?
> >> 
> >>I'm new to the game of Apache + PHP and am trying to just get things
> >>going without truely understanding what is going on. 
> >> 
> >>I hope you can help!  I'm exploring MapServer as an alternative tool 
> >>to
> >>ArcIMS for serving up our huge Landsat image database here in the Yukon.  
> >> 
> >>Cheers,
> >>Peter von Gaza
> >>Geomatics Yukon
> >>www.geomaticsyukon.ca <http://www.geomaticsyukon.ca> 867-633-7998
> > 
> > 
> > 
> 
> 
> -- 
> Jeff McKenna
> GIS Specialist
> DM Solutions Group Inc.
> http://www.dmsolutions.ca
> 
> _______________________________________________
> Maplab-users mailing list
> Maplab-users@dmsolutions.ca
> http://lists.dmsolutions.ca/mailman/listinfo/maplab-users
> 


-- 
bob carr
port washington, wisconsin
racarr@ameritech.net



This archive was generated by Pipermail.