<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body 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 class="moz-txt-link-freetext" href="https://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide">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.<br>
<br>
Andreas<br>
<br>
<div class="moz-cite-prefix">On 23.04.2015 19:33, Enzo Cocca wrote:<br>
</div>
<blockquote
cite="mid:CAC_+zup3kExU7RFT+-sc2+PchSO3s+rZy7UD-5H-8zvDQLxANg@mail.gmail.com"
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 moz-do-not-send="true"
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 class=""><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
class="">
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
moz-do-not-send="true"
href="mailto:bernhard.stroebl@jena.de" target="_blank">bernhard.stroebl@jena.de</a><br>
</span>
<mailto:<a moz-do-not-send="true"
href="mailto:bernhard.stroebl@jena.de" target="_blank">bernhard.stroebl@jena.de</a>>>:
<div>
<div class="h5"><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 moz-do-not-send="true"
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 moz-do-not-send="true"
href="http://www.eset.com" target="_blank">http://www.eset.com</a><br>
<br>
<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
</div>
</div>
<a moz-do-not-send="true"
href="mailto:Qgis-developer@lists.osgeo.org"
target="_blank">Qgis-developer@lists.osgeo.org</a>
<mailto:<a moz-do-not-send="true"
href="mailto:Qgis-developer@lists.osgeo.org"
target="_blank">Qgis-developer@lists.osgeo.org</a>><br>
<a moz-do-not-send="true"
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 class="HOEnZb">
<div class="h5"><br>
<br>
The message was checked by ESET Mail Security.<br>
<a moz-do-not-send="true" href="http://www.eset.com"
target="_blank">http://www.eset.com</a><br>
<br>
<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a moz-do-not-send="true"
href="mailto:Qgis-developer@lists.osgeo.org"
target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
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 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 moz-do-not-send="true"
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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Qgis-developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
</blockquote>
<br>
</body>
</html>