<div dir="ltr"><div><div>Kuan,<br><br></div>Have you tried to follow the link Nicolas put? I don't use VMWare but my system runs under Ubuntu 12.04 desktop, the procedure I followed was the one in that link and everything is fine. The link to <a href="http://localhost/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities" target="_blank">http://localhost/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities</a> on my system returns the appropriate response.<br><br></div><div>My link to <a href="http://localhost/cgi-bin/qgis_mapserv.fcgi">http://localhost/cgi-bin/qgis_mapserv.fcgi</a> returns a different error:<br><br><div style="margin-left:40px"><ServiceExceptionReport version="1.3.0"><br><ServiceException code="Service configuration error">Service unknown or unsupported</ServiceException><br></ServiceExceptionReport><br></div></div><div><br>but this is due to the fact I use <a href="http://www.3liz.com/lizmap.html">LizMap</a> software in order to show the QGIS projects to my users.<br><br></div><div>The errors you get are the typical ones deriving from a misconfigured Apache server, these are not errors returned from QGIS server but from Apache. Try to locate the Apache error.log file and see what their contests suggset you.<br><br></div><div>Best regards.<br></div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-12 11:54 GMT+02:00 Nicolas Boisteault <span dir="ltr"><<a href="mailto:boisteault@observatoire-environnement.org" target="_blank">boisteault@observatoire-environnement.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p> </p>
<div>Hi,</div>
<div> </div>
<div>You should follow this documentation : <a href="http://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/ogc_server_support.html" target="_blank">http://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/ogc_server_support.html</a></div>
<div> </div>
<div>---<br>
<div style="margin:0px;padding:0px;font-family:monospace"><br> Nicolas BOISTEAULT<br> Développeur Web/WebSIG<br> Observatoire Régional de l'Environnement<br> Téléport 4 Antarès  - BP 50163 - 86962 Futuroscope Chasseneuil Cedex<br> Tél : 05 49 49 71 18</div>
</div>
<p> </p>
<p>Le 2016-05-12 11:22, Kuan Song a écrit :</p>
<blockquote type="cite" style="padding:0px 0.4em;border-left:2px solid rgb(16,16,255);margin:0px">
<div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px">
<div>Dear QGIS community,</div>
<div> </div>
<div dir="ltr">I hope to seek your help on how to deploy the QGIS Server on a ubuntu vmware instance.</div>
<div dir="ltr">The QGIS server official guide is what I followed. It does not work!!!</div>
<div dir="ltr"><a href="http://hub.qgis.org/wiki/quantum-gis/QGIS_Server_Tutorial" target="_blank">http://hub.qgis.org/wiki/quantum-gis/QGIS_Server_Tutorial</a></div>
<div dir="ltr"> </div>
<div dir="ltr">1. After I typed in firefox: <a href="http://localhost/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities" target="_blank">http://localhost/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities</a></div>
<div dir="ltr"> </div>
<div dir="ltr">this is what I got:</div>
<div dir="ltr"> </div>
<div dir="ltr">Not Found<br><br>The requested URL /cgi-bin/qgis_mapserv.fcgi was not found on this server.<br>Apache/2.4.18 (Ubuntu) Server at localhost Port 80</div>
<div dir="ltr"> </div>
<div dir="ltr">2. I made a QGIS project file with 1 shapefile in it, and put the project file and shapefile in <code>/usr/lib/cgi-bin, as demonstrated in <a href="https://anitagraser.com/2012/03/30/qgis-server-on-ubuntu-step-by-step/" target="_blank">QGIS Server on Ubuntu Step-by-step</a><br></code></div>
<div> </div>
<div dir="ltr" style="max-width:400px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif"><a style="text-decoration:none!important;color:rgb(0,0,0)!important" href="https://anitagraser.com/2012/03/30/qgis-server-on-ubuntu-step-by-step/" target="_blank"> </a>
<table style="max-width:400px" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="400">
<table style="max-width:400px" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td style="background:rgb(0,0,0) none no-repeat scroll center center;height:200px" bgcolor="#000000" valign="top">
<table style="width:100%" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="background:transparent none repeat scroll left top;height:200px" bgcolor="transparent" valign="top">
<table style="width:100%;height:185px;min-height:185px">
<tbody>
<tr>
<td style="text-align:left;padding:15px 0px 0px 15px;vertical-align:top"> </td>
<td style="text-align:right;padding:15px 15px 0px 0px;vertical-align:top"> </td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<table style="background:rgb(255,255,255) none repeat scroll 0% 0%;width:95%;max-width:380px;border-width:1px 1px 3px;border-style:solid;border-color:rgb(224,228,233) rgb(224,228,233) rgb(0,0,0);margin-left:auto;margin-right:auto" align="center" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="background-color:rgb(255,255,255);padding:16px 0px 16px 12px;vertical-align:top"> </td>
<td style="vertical-align:middle;padding:16px 12px;width:99%">
<h2 style="font-size:16px;line-height:19px;margin:0px 0px 4px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif">QGIS Server on Ubuntu Step-by-step</h2>
<div style="font-size:11px;line-height:15px;color:rgb(153,153,153)">This post summarizes my notes about installing QGIS Server on Ubuntu, adding a QGIS project file to the server a...</div>
</td>
<td style="text-align:right;padding:16px 12px 16px 0px"> </td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<div> </div>
<div dir="ltr"><code>then I typed in firefox: </code></div>
<div dir="ltr"><br><code><a href="http://10.101.21.28/cgi-bin/vienna/qgis_mapserv.fcgi" target="_blank">http://localhost/cgi-bin/qgis_mapserv.fcgi </a></code><a href="http://10.101.21.28/cgi-bin/vienna/qgis_mapserv.fcgi" target="_blank"><br></a><code> I still got this response:</code></div>
<div dir="ltr"><code> </code></div>
<div dir="ltr"><code>Not Found<br><br>The requested URL /cgi-bin/qgis_mapserv.fcgi was not found on this server.<br>Apache/2.4.18 (Ubuntu) Server at localhost Port 80<br></code></div>
<div dir="ltr"> </div>
<div dir="ltr">I do not understand what went wrong or where can I get the right advice, as the QGIS server documentation is highly rare, and frankly dubious.</div>
<div dir="ltr"> </div>
<div dir="ltr">I really love the stated feature of QGIS server: just place a QGIS project on a server, and users can see the contents with any web browser. Could someone in the community help me achieve this?</div>
<div dir="ltr"> </div>
<div dir="ltr">And to the QGIS developers: please consider writing your documentation with more details and pictures. And it'll be much more helpful to include an executable readme/setup program in the QGIS server distribution, so that us users can have some clue. Thank you!<br><code></code></div>
<div dir="ltr"><code><br> </code></div>
</div>
<br>
<div style="margin:0px;padding:0px;font-family:monospace">_______________________________________________<br> Qgis-user mailing list<br> <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></div>
</blockquote>
</div>
<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br><br><div dir="ltr"><br><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">
<table style="border-right:black 2px solid;width:470px;font-size:11pt;border-bottom:black 2px solid;border-top:black 1px solid;border-left:black 1px solid" border="0" cellpadding="2" cellspacing="2">
  <tbody>
  <tr>
    <td rowspan="2" align="center" valign="center" width="35%"><a href="http://www.ucm.es/" target="_blank"><img src="http://www.ucm.es/nodes/web/00media/img/ucm-ws.png" align="middle" border="0" height="70" width="70"></a>   </td>


    <td colspan="3" align="center" bgcolor="#a50000"><a href="http://www.ucm.es/" target="_blank"><font style="TEXT-DECORATION:none" face="Verdana" color="white"><b>Universidad Complutense de Madrid</b></font></a> </td>
  </tr>
  <tr>
    <td colspan="3" align="center"><font face="Verdana" color="#000099"><b>Víctor Manuel Herreros Villanueva</b>, PhD.</font><br><font face="Verdana" color="#000099" size="1">Intelligence Technical Service Deputy Director</font>
        </td>
  </tr>
  <tr>
    <td colspan="2" align="left"><font face="Verdana" color="#000099"><b>Facilities Management<br>Data Warehouse</b></font><br> 
        </td>
    <td colspan="2" align="right" width="48%"><font face="Verdana" color="#336699">Centro de Proceso de Datos<br>
      Av. Complutense s/n<br>28040 Madrid<br>Spain</font>
        </td>
  </tr>
  <tr>
    <td colspan="2" align="left"><font face="Verdana" color="#000099" size="1"><i>Phn. no. 
      (+34) 91 394 <b>4806</b><br>Fax no.  (+34) 91 394 <b>4773</b></i> </font>
        </td>
    <td align="right"><a href="mailto:vherreros@ucm.es" target="_blank"><font style="TEXT-DECORATION:none" face="Verdana" color="#000099" size="1">vherreros@ucm.es</font></a>
        </td>
  </tr>
  </tbody>
</table>
<br></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br></div></div></div></div></div>