<b>Hi James,
Thank you for your answer.
I have the Map Agent and Site Administrator working.
I cannot get The Web Server Extension to work for now.
Anyway if it works I will receive an error:</b>
***
Testing the Web Server Extensions:
You can check that the Web Extensions are correctly set up. If your application
development language is PHP, go to this URL in a web browser:
http://localhost/mapguide/mapviewerajax/ajaxviewer.php?
WEBLAYOUT=Library://ATest.WebLayout
<b>Because the web layout ATest does not exist in the MapGuide repository, you
should see the following error:
Resource was not found: Library://ATest.WebLayout</b>
This error is returned by the AJAX Viewer script. This shows that the Web
Server Extensions are correctly enabled to receive and process requests.
34 | Chapter 2 Configuring MapGuide Web Server Extensions on Windows
***
<b>If you have any idea about it please let me know.
As I mentioned in my first e-mail I have changed a configuration file: httpd.conf. Maybe those changes affect the Web Server Extension.
Thanks,
Dorin</b>
***************************
<blockquote class="quote light-black dark-border-color"><div class="quote light-border-color">
<div class="quote-author" style="font-weight: bold;">jamesdudden wrote:</div>
<div class="quote-message">
Hi
My setup is slightly different to yours (I am running XP with MGOS 1.1, PHP and IIS 5.1) but i encountered the same problem.
You have to make sure the Mapguide Server is running by going to the services panel, (under Control Panel/Performance and Maintenance/Administrative Tools/Services) then under mapguide if the services isn't started, start it. If it is try re-starting it.
Hope this helps
Regards
James Dudden
<blockquote class="quote light-black dark-border-color"><div class="quote light-border-color">
<div class="quote-author" style="font-weight: bold;">dorin wrote:</div>
<div class="quote-message">
<b>Hi,
I try to install MapGuide Open Source on Windows 2000 Professional. I followed the PDF InstallConfigure MgOpenSourceonWindows from osgeo.org.
I installed MapGuide Server as a Site Server, then I installed MapGuide Web Server Extensions - the bundled configuration (PHP). I used the default value of 127.0.0.1 for the SIte Server.
I chose Custom Setup type so I can install the API documentation.
Then I proceed with the chapter Configuring MapGuide Web Server Extensions on Windows - Cofigure with Apache. There is a section: Common Configuration Steps that ask to edit httpd.conf like this:</b>
***
There are some steps you must perform whether you are using PHP or JSP as
a development environment.
■ If you are using the Site Administrator or plan to use PHP as a development
environment, configure Apache to process files with the .php extension.
Edit httpd.conf. Look for the configuration of the PHP engine. Ensure it
is set as follows, or add the following to the file as necessary.
ScriptAlias /php/ "C:/Program Files/MapGuideOpenSource/
WebServerExtensions/Php/"
Action application/x-httpd-php "/php/php-cgi.exe"
AddType application/x-httpd-php .php
■ In the Dynamic Shared Object Support section, ensure that the rewrite
module is enabled. If there is a comment character at the beginning of the
line, remove it so it looks like this:
LoadModule rewrite_module modules/mod_rewrite.soThere are some steps you must perform whether you are using PHP or JSP as
a development environment.
■ If you are using the Site Administrator or plan to use PHP as a development
environment, configure Apache to process files with the .php extension.
Edit httpd.conf. Look for the configuration of the PHP engine. Ensure it
is set as follows, or add the following to the file as necessary.
ScriptAlias /php/ "C:/Program Files/MapGuideOpenSource/
WebServerExtensions/Php/"
Action application/x-httpd-php "/php/php-cgi.exe"
AddType application/x-httpd-php .php
■ In the Dynamic Shared Object Support section, ensure that the rewrite
module is enabled. If there is a comment character at the beginning of the
line, remove it so it looks like this:
LoadModule rewrite_module modules/mod_rewrite.so
***
<b>Then the section Configuring Apache to Use PHP says:</b>
***
To use PHP as the development environment with the Apache HTTP Server,
add the following declarations at the end of httpd.conf.
ScriptAlias /mapguide/mapagent/mapagent.fcgi
"C:/Program Files/MapGuideOpenSource/WebServerExtensions/
www/mapagent/MapAgent.exe"
AliasMatch ^/mapguide/mapviewerajax/([^\?])(.*)$
"C:/Program Files/MapGuideOpenSource/WebServerExtensions/
www/mapviewerphp/$1$2"
Alias /mapguide/mapviewerajax
"C:/Program Files/MapGuideOpenSource/WebServerExtensions/
www/mapviewerphp/ajaxviewer.php"
AliasMatch ^/mapguide/mapviewerdwf/([^\?])(.*)$
"C:/Program Files/MapGuideOpenSource/WebServerExtensions/
www/mapviewerphp/$1$2"
Alias /mapguide/mapviewerdwf
"C:/Program Files/MapGuideOpenSource/WebServerExtensions/
www/mapviewerphp/dwfviewer.php"
Alias /mapguide
"C:/Program Files/MapGuideOpenSource/WebServerExtensions/www/"
<Directory "C:/Program Files/MapGuideOpenSource/WebServerExtensions/www/">
AllowOverride All
Options All
Order allow,deny
Allow from all
AddHandler cgi-script .exe
RewriteEngine on
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]
</Directory>
Save the changes and restart the Apache server.
***
<b>I have follwed these stepas, and when I try to Verify the Configuration I get this errors:
1. Testing the Map Agent:
I try to connect to http:</b> //localhost:8008/mapguide/mapagent/mapagent.fcgi?OPERATION=ENUMERATERESOURCES&VERSION=1.0.0&
LOCALE=en&RESOURCEID=Library://&TYPE=&DEPTH=-1
<b>After I type Administrator and admin I get:</b>
Cannot establish connection. Exception occurred in method MgServerConnection.Open at line 95 in file .\Services\ServerConnection.cpp
<b>After I change localhost to 127.0.0.1 and type Administrator and admin I get the same error.</b>
<b>2. Testing the Site Administrator
I try to connect to:</b> http://localhost:8008/mapguide/mapadmin/login.php
<b>After I type Administrator and admin I get:</b> Authentication failed. Please enter a valid username and password.
<b>Same error if I change localhost with 127.0.0.1</b>
<b>3. Testing the Web Server Extensions
I try to connect to:</b> http://localhost/mapguide/mapviewerajax/ajaxviewer.php?
WEBLAYOUT=Library://ATest.WebLayout
The error: The page cannot be displayed.
<b>PLEASE LET ME KNOW WHAT I AM DOING WRONG.</b>
Thank you,
Dorin
</div>
</div></blockquote>
</div>
</div></blockquote>
<br><hr align="left" width="300">
View this message in context: <a href="http://www.nabble.com/MapGuide-Open-Source-Instalation-issues-tf4120930s16610.html#a11757284">Re: MapGuide Open Source Instalation issues</a><br>
Sent from the <a href="http://www.nabble.com/MapGuide-Users-f14845.html">MapGuide Users mailing list archive</a> at Nabble.com.<br>