<div dir="ltr"><div><div><div><div>Hi,<br><br></div>I have solved!! YUPPYYYYYYYYYYYYYYYYYY<br><br></div>I writed the code #mod_wsgi to apache config <br>into virtual host and so the mod_wsgi not worked <br><br><VirtualHost *:80><br><br> ServerAdmin webmaster@localhost<br> # Add an entry to your /etc/hosts file for qgis-web-client.localhost e.g.<br> # 127.0.0.1 qgis-web-client.localhost<br> ServerName localhost<br>..............<br> WSGIDaemonProcess gis processes=5 threads=15 display-name=%{GROUP}<br> WSGIScriptAlias /wsgi/ /home/www/wsgi/<br> WSGIScriptAliasMatch ^/wsgi/([^/]+) /home/www/wsgi/$1.wsgi<br></div>.........<br></VirtualHost><br><br><br></div>Than I have try to write out virtual host (<br><div style="display:inline-block" id="gt-input-tool"><div id="itamenu"><span class=""></span></div></div><div id="gt-src-c" class=""><div id="gt-src-p"> </div> </div> <div id="gt-res-content" class=""><div dir="ltr" style="zoom:1"><span id="result_box" class="" lang="en"><span class="">the first three lines) and enjoi!! <br><br></span></span></div><div style><span id="result_box" class="" lang="en"><span class="">thanks for suggestions and help<br><br></span></span></div><div style><span id="result_box" class="" lang="en"><span class="">Enzo<br></span></span></div></div><div style="display:inline-block" id="gt-input-tool"><div id="itamenu"><span class=""></span></div></div><div id="gt-src-c" class=""><div id="gt-src-p"> </div> </div> <div id="gt-res-content" class=""><div dir="ltr" style="zoom:1"><span id="result_box" class="" lang="en"><span class=""><br></span></span></div></div><div style="display:inline-block" id="gt-input-tool"><div id="itamenu"><span class=""></span></div></div><div id="gt-src-c" class=""><div id="gt-src-p"> </div> </div> <div id="gt-res-content" class=""><div dir="ltr" style="zoom:1"><span id="result_box" class="" lang="en"><span class="">the first three lines</span></span></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-24 0:22 GMT+04:00 Andreas Neumann <span dir="ltr"><<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Hi Enzo,<br>
<br>
This has nothing to do with QGIS. Please google something like "wsgi
Apache setup" - e.g.
<a href="https://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide" target="_blank">https://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide</a> and
make sure you can handle your Apache setup. Make sure you can run
the hello world example listed in the modwsgi documentation.<br>
<br>
Then you can continue to come back with QGIS server questions.<span class="HOEnZb"><font color="#888888"><br>
<br>
Andreas</font></span><div><div class="h5"><br>
<br>
<div>On 23.04.2015 19:33, Enzo Cocca wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Bernard,
<div>I have followed </div>
<div>If I put the wsgi folder in /usr/lib/cgi-bin/ and set
apache config like </div>
<div><br>
</div>
<div>
<div> WSGIDaemonProcess gis processes=5 threads=15
display-name=%{GROUP}</div>
<div> WSGIScriptAlias /wsgi/ /usr/lib/cgi-bin/wsgi/</div>
<div> WSGIScriptAliasMatch ^/wsgi/([^/]+)
/usr/lib/cgi-bin/wsgi/$1.wsgi</div>
</div>
<div><br>
</div>
<div>I have internal error 500. You I'm not understand again </div>
<div>sorry</div>
<div>E</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-04-23 9:42 GMT+04:00 Bernhard
Ströbl <span dir="ltr"><<a href="mailto:bernhard.stroebl@jena.de" target="_blank">bernhard.stroebl@jena.de</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Enzo,<br>
<br>
do not put it into html (see section 6 of the QWC
documentation) maybe in that location it is not run as a
script but accessed by the browser as any other html file
(remember: I am no expert on this).<br>
Basically you should not see the file at all in the browser,
if an error occurs it should be in Apache's error log.<br>
Be sure ther is no space as the first character of the first
line (as was suggested before).<br>
<br>
Bernhard<span><br>
<br>
Am 22.04.2015 22:15, schrieb Enzo Cocca:<br>
</span>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>
I continue to have the problem with mod_wsgi module. I
not<br>
understand.... I have set the apache config like
suggest bernhard and<br>
I have put my wsgi folder in /var/www/html but I
continue to have the error:<br>
illegal charcther #! /usr/bin/python<br>
<br>
I have reinstalled libapache2-mod-wsgi, but nothing<br>
<br>
I use ubuntu server 14.04 apache 2.4 python 2.7<br>
<br>
Thanks at all for help<br>
<br>
E<br>
<br>
2015-04-22 16:32 GMT+04:00 Bernhard Ströbl <<a href="mailto:bernhard.stroebl@jena.de" target="_blank">bernhard.stroebl@jena.de</a><br>
</span>
<mailto:<a href="mailto:bernhard.stroebl@jena.de" target="_blank">bernhard.stroebl@jena.de</a>>>:
<div>
<div><br>
<br>
Hi Enzo,<br>
<br>
as I wrote in a previous post: Make sure the user
running the apache<br>
process has access to the wsgi directory. Try
putting the wsgi in<br>
/home/somthing e.g. in /var/www/wsgi<br>
<br>
Bernhard<br>
<br>
<br>
Am 22.04.2015 14:07, schrieb Enzo Cocca:<br>
<br>
Hi all,<br>
I looked for a solution but without results.<br>
<br>
After set the default file in apache like
that:<br>
<br>
<VirtualHost *:80><br>
ServerAdmin webmaster@localhost<br>
ServerName <localhost><br>
<br>
DocumentRoot /var/www/html/wms/site<br>
<Directory /><br>
Options FollowSymLinks<br>
AllowOverride None<br>
</Directory><br>
<Directory /var/www/html/wms/site/><br>
DirectoryIndex index.php index.html<br>
Options Indexes FollowSymLinks
MultiViews<br>
AllowOverride None<br>
Order allow,deny<br>
allow from all<br>
Require all granted<br>
</Directory><br>
<br>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/<br>
<Directory "/usr/lib/cgi-bin/"><br>
AllowOverride None<br>
Options +ExecCGI -MultiViews
-SymLinksIfOwnerMatch<br>
Order allow,deny<br>
Allow from all<br>
Require all granted<br>
SetEnv QGIS_LOG_FILE /tmp/qgislog.txt<br>
</Directory><br>
<br>
RewriteEngine On<br>
RewriteRule ^/cgi-bin/.*$ - [F]<br>
<br>
<br>
RewriteRule ^/wms/(.+)$<br>
/cgi-bin/qgis_mapserv.fcgi?map=/var/www/html/wms/projects/$1.qgs<br>
[QSA,PT]<br>
<br>
RewriteRule ^/maps/?$ / [PT]<br>
<br>
RewriteRule ^/maps/([^\.]+)$
/qgiswebclient.html [PT]<br>
<br>
RewriteRule ^/maps/(.*) /$1 [PT]<br>
<br>
#mod_wsgi<br>
#LoadModule wsgi_module
/usr/lib/apache2/modules/mod_wsgi.so<br>
WSGIDaemonProcess gis processes=5
threads=15<br>
display-name=%{GROUP}<br>
WSGIScriptAlias /wsgi/ /home/www/wsgi/<br>
WSGIScriptAliasMatch ^/wsgi/([^/]+)
/home/www/wsgi/$1.wsgi<br>
<br>
<Directory "/home/www/wsgi/"><br>
Order allow,deny<br>
Allow from all<br>
</Directory><br>
<br>
ErrorLog
${APACHE_LOG_DIR}/qgis-web-client-error.log<br>
CustomLog
${APACHE_LOG_DIR}/qgis-web-client-access.log combined<br>
<br>
</VirtualHost><br>
<br>
and the GlobaOptions.js like that;<br>
//URL for custom search scriptsnull; //<br>
var searchBoxQueryURL =
"/wsgi/search.wsgi?query="; // null:<br>
var searchBoxGetGeomURL =
"/wsgi/getSearchGeom.wsgi";//null; //<br>
<br>
The status is:<br>
NetworkError: 404 Not Found -<br>
<a href="http://localhost/wsgi/search.wsgi?query=&searchtables=&query=qqq&cb=stcCallback1001" target="_blank">http://localhost/wsgi/search.wsgi?query=&searchtables=&query=qqq&cb=stcCallback1001</a><br>
<br>
So it not found the path of wsgi, but in
default config I have<br>
give the<br>
alias<br>
<br>
any idea?<br>
<br>
E<br>
<br>
<br>
<br>
<br>
<br>
<br>
__________ Information from ESET Mail Security,
version of virus<br>
signature database 11515 (20150422) __________<br>
<br>
The message was checked by ESET Mail Security.<br>
<a href="http://www.eset.com" target="_blank">http://www.eset.com</a><br>
<br>
<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
</div>
</div>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a>
<mailto:<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a>><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
__________ Information from ESET Mail Security, version of
virus signature database 11519 (20150423) __________
<div>
<div><br>
<br>
The message was checked by ESET Mail Security.<br>
<a href="http://www.eset.com" target="_blank">http://www.eset.com</a><br>
<br>
<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div>
<div dir="ltr">
<div>
<div dir="ltr">Enzo Cocca PhD</div>
<div dir="ltr">in "Science and Technology for Archaeology
and Cultural Heritage"<br>
<div>mail: <a href="mailto:enzo.ccc@gmail.com" target="_blank">enzo.ccc@gmail.com</a></div>
<div>cell: <a href="tel:%2B393495087014" value="+393495087014" target="_blank">+393495087014</a></div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Qgis-developer mailing list
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
</blockquote>
<br>
</div></div></div>
<br>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Enzo Cocca PhD</div><div dir="ltr">in "Science and Technology for Archaeology and Cultural Heritage"<br><div>mail: <a href="mailto:enzo.ccc@gmail.com" target="_blank">enzo.ccc@gmail.com</a></div><div>cell: +393495087014</div><div><br></div></div></div></div></div>
</div>