[mapguide-users] MapGuide Open Source Instalation issues
dorin
dorindanci at hotmail.com
Tue Jul 24 01:48:06 EDT 2007
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:
***
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
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
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
***
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
***************************
jamesdudden wrote:
>
> 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
>
>
>
> dorin wrote:
>>
>> 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:
>>
>> ***
>> 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
>> ***
>>
>> Then the section Configuring Apache to Use PHP says:
>>
>> ***
>> 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/"
>>
>> AllowOverride All
>> Options All
>> Order allow,deny
>> Allow from all
>> AddHandler cgi-script .exe
>> RewriteEngine on
>> RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]
>>
>> Save the changes and restart the Apache server.
>> ***
>>
>> 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:
>> //localhost:8008/mapguide/mapagent/mapagent.fcgi?OPERATION=ENUMERATERESOURCES&VERSION=1.0.0&
>> LOCALE=en&RESOURCEID=Library://&TYPE=&DEPTH=-1
>>
>> After I type Administrator and admin I get:
>> Cannot establish connection. Exception occurred in method
>> MgServerConnection.Open at line 95 in file
>> .\Services\ServerConnection.cpp
>>
>> After I change localhost to 127.0.0.1 and type Administrator and admin I
>> get the same error.
>>
>> 2. Testing the Site Administrator
>> I try to connect to: http://localhost:8008/mapguide/mapadmin/login.php
>> After I type Administrator and admin I get: Authentication failed. Please
>> enter a valid username and password.
>> Same error if I change localhost with 127.0.0.1
>>
>> 3. Testing the Web Server Extensions
>> I try to connect to:
>> http://localhost/mapguide/mapviewerajax/ajaxviewer.php?
>> WEBLAYOUT=Library://ATest.WebLayout
>> The error: The page cannot be displayed.
>>
>> PLEASE LET ME KNOW WHAT I AM DOING WRONG.
>>
>> Thank you,
>> Dorin
>>
>>
>
>
--
View this message in context: http://www.nabble.com/MapGuide-Open-Source-Instalation-issues-tf4120930s16610.html#a11757284
Sent from the MapGuide Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20070723/a2f4d828/attachment.html
More information about the mapguide-users
mailing list