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