<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi,<br>
    <br>
    The developers (and most users) of QGIS server and web client are on
    Linux - that's the most commen server platform these days - at least
    in Open Source GIS. Windows users are welcome to contribute to the
    Windows aspects of the documentation. Please don't only consume, but
    also contribute.<br>
    <br>
    Regarding ".exe": QGIS web client normally uses only the .fcgi
    extension. If you would want to use .exe instead you would have to
    change line 13 in site/js/GlobalOptions.js to point to the correct
    path.<br>
    <br>
    Also note: even on Linux there may be stumble blocks to set up QGIS
    server and web client. There are simply a lot of different
    combinations of operating systems and Linux distributions and each
    one has some different ideas how to set up a web server environment
    (e.g. where the Apache conf files are located). And then the next
    version of the OS may decide to change things again.<br>
    <br>
    One good idea when setting up QGIS Server and web client is to go
    step by step.<br>
    <br>
    1. install Apache and make sure it can serve static web pages<br>
    2. install the fcgi module and make sure it can execute cgi programs
    in fcgi mode<br>
    3. then configure QGIS server and use QGIS Desktop as a WMS client<br>
    4. then configure QGIS web client (mainly you have to change
    site/js/GlobalOptions.js - if things fail, use the dev tools in
    Firefox or Chrome to see what URLs are generated and requested.<br>
    <br>
    Hope this helps,<br>
    <br>
    Andreas<br>
    <br>
    <div class="moz-cite-prefix">On 09.05.2015 10:20, Mats Elfström
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAO1MNmXsJMdecKHn6yg5HeX_knn84PVM4mh1d4K=P1C7d8ATiw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi alla!
        <div>I have also spent far too much time trying to find a
          working combination of postgis/qgis/qgis server.</div>
        <div>I confess I haven't yet tried all possible permutations,
          but have more or less given up.</div>
        <div>Why do we have to put up with thsi sorry state of things?</div>
        <div><br>
        </div>
        <div>Will somebody with a working installation on a Windows 2012
          64 bit server please step forward and tell us how to do it.</div>
        <div><br>
        </div>
        <div>Regards, Mats.E</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2015-05-09 8:55 GMT+02:00 Frank Sokolic
          <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:sokolic@worldonline.co.za" target="_blank">sokolic@worldonline.co.za</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Dennis,<br>
            <br>
            Did you actually rename "qgis_mapserver.fgci.exe" to remove
            the ".exe" extension? If not, try this as it worked for me.<br>
            <br>
            Regards, Frank.
            <div class="HOEnZb">
              <div class="h5"><br>
                <br>
                On 08/05/2015 21:16, dennis mckay wrote:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <br>
                  I have been spending days trying to start the “Apache
                  OSGeo4W Web Server” on a Win7 Professional SP 1.  I
                  have no experience with Apache.  I have followed the
                  tutorial steps from the QGIS Web Server wiki and Anita
                  Graser's how-to and also other forum advice.  This has
                  led me to upgrading from QGIS 2.4 to 2.6, then to QGIS
                  2.6 64bit.  Lastly I upgraded Apache from 2.2 32bit to
                  2.4 64bit.  I finally get “It works!” from localhost/
                  using any combination of 32/64bit QGIS or Apache. 
                  Trying “<a moz-do-not-send="true"
href="http://localhost/OSGeo4W64/apps/qgis/bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities"
                    target="_blank">http://localhost/OSGeo4W64/apps/qgis/bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities</a>”
                  results in  “Not Found  The requested URL
                  /OSGeo4W/apps/qgis/bin/qgis_mapserv.fcgi was not found
                  on this server.”   This is the error I get no matter
                  what the combination of Apache and QGIS installs – and
                  regardless of including “.exe” with the file name.<br>
                  <br>
                  Some recommended actions I took may be obsolete with
                  QGIS 2.6 or Apache 2.4.  I am trying to reduce my
                  variables here and need help focusing on where the
                  problems are:  The major adaptations I did, beyond
                  updating .conf files to new Apache 2.4 format were:<br>
                  <br>
                  1) Disabling references to fcgid and replacing them
                  with cgi (in .conf files).  On newer forum advice, I
                  reverted back to fcgi.<br>
                  <br>
                  2) Replacing backslashes with forward in file names as
                  per Apache admonitions.  My confusion: original osgeo
                  installs and forum examples have hybrid examples like
                  "C:\OSGeo4W/apps/ka-map-1.0".  Always with the
                  backslash after C: and no documentation in sight as to
                  the advantages of doing this, if any.<br>
                  <br>
                  3) Following a forum advice to copy files from
                  apps\Python27\Lib to apps\qgis\bin.<br>
                  <br>
                  4) Upgrading to 64 bit Apache required copying
                  application-specific .conf files from OSGeo4W\httpd.d
                  directory to OSGeo4W64\httpd.d and updating the
                  terminology.<br>
                  <br>
                  5) In the URL for qgis_mapserver.fgci.exe, replacing
                  “localhost” with 127.0.0.1 or with my machine's tcp/ip
                  #.<br>
                  <br>
                  6) Using the latest version of mod_fcgid.so from
                  Apache lounge.<br>
                  <br>
                  Variables in httpd.conf appear to point to the correct
                  directories/files.  I think relevant settings are:<br>
                  <br>
                  ServerRoot "C:/OSGeo4W64/Apache24"<br>
                  ServerName  ###.###.#.#:80      [my “IPv4 Address” has
                  real numbers not seen here ]<br>
                  DocumentRoot "C:/OSGeo4W64/Apache24/htdocs"<br>
                  ScriptAlias /cgi-bin/
                  "C:/OSGeo4W64/apps/Python27/Lib/"    [this is new
                  location for cgi.py,etc.]<br>
                  DirectoryIndex index.html index.html.var index.php
                  index.phtml index.php3<br>
                  Alias /ms_tmp/ "C:/OSGeo4W64/tmp/ms_tmp/"<br>
                  <br>
                  “Require all denied” on:<br>
                      Directory “/”<br>
                      FilesMatch “\.ht”<br>
                  “Require all granted” on:<br>
                      Directory "C:/OSGeo4W64/Apache24/htdocs"         
                               [DocumentRoot]<br>
                           Options Indexes FollowSymLinks Includes<br>
                      Directory “C:/OSGeo4W64/apps/Python27/Lib”       
                              [ScriptAlias /cgi-bin/ ]<br>
                            Options +ExecCGI -MultiViews
                  +SymLinksIfOwnerMatch<br>
                            SetEnv LD_LIBRARY_PATH "C:/OSGeo4W64/lib"<br>
                      Directory “C:/OSGeo4W64/tmp”                     
                                          [ /tmp/ ]<br>
                      Directory “C:/OSGeo4W64/apps/qgis/bin”           
                                     [ /qgis/ ]<br>
                            SetHandler fcgid-script<br>
                            Options ExecCGI<br>
                  <br>
                  AddHandler cgi-script .cgi<br>
                  AddType application/x-httpd-php .php5 .php4 .php3
                  .phtml .php<br>
                  Action  application/x-httpd-php
                  "C:/OSGeo4W64/apache24/htdocs"<br>
                  <br>
                  Include conf/extra/httpd-autoindex.conf<br>
                  Include conf/extra/httpd-manual.conf<br>
                  Include "C:/OSGeo4W64/httpd.d/httpd_*.conf"<br>
                  <br>
                  SetEnv PROJ_LIB "C:/OSGeo4W64/share/proj"<br>
                  SetEnv PATH "C:/OSGeo4W64/bin"<br>
                  SetEnv GDAL_DATA "C:/OSGeo4W64/share/gdal"<br>
                  SetEnv GDAL_DRIVER_PATH "C:/OSGeo4W64/bin/gdalplugins"<br>
                  SetEnv TMP "C:/OSGeo4W64/tmp"<br>
                  SetEnv MS_ERRORFILE "C:/OSGeo4W64/tmp/ms_error.txt"<br>
                  SetEnv MS_DEBUGLEVEL 3<br>
                  <br>
                  Question:  Does qgis_mapserv.fgci.exe return good
                  debugging info if run from command line?<br>
                  Question:  What is the format for passing parameters
                  to qgis_mapserv.fgci.exe in the command line?<br>
                  Question:  In Apache .conf files, can quotes in path
                  names be dropped if there are no spaces?<br>
                  <br>
                  The Real Question:  Why does my browser not find
                  qgis_mapserver.fgci.exe?<br>
                  <br>
                  I am grasping for clues that a seasoned eye would
                  see.  Dennis<br>
                  <br>
                  <br>
                  <br>
                  _______________________________________________<br>
                  Qgis-user mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:Qgis-user@lists.osgeo.org"
                    target="_blank">Qgis-user@lists.osgeo.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://lists.osgeo.org/mailman/listinfo/qgis-user"
                    target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
                  <br>
                </blockquote>
                <br>
                _______________________________________________<br>
                Qgis-user mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:Qgis-user@lists.osgeo.org"
                  target="_blank">Qgis-user@lists.osgeo.org</a><br>
                <a moz-do-not-send="true"
                  href="http://lists.osgeo.org/mailman/listinfo/qgis-user"
                  target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature">
          <div dir="ltr">______________________________________________<br>
            Mats Elfström, Väpplingvägen 21, SE-227 38 LUND, Sweden<br>
            tel: +46 46 145959 / mob: +46 70 595 39 35<br>
            alt e-mail: <a moz-do-not-send="true"
              href="mailto:mats.elfstrom@telia.com" target="_blank">mats.elfstrom@giskraft.com</a><br>
            <br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
    </blockquote>
    <br>
  </body>
</html>