<div dir="ltr"><div><div><div><div><div>I continue to have the problem with mod_wsgi module. I not understand.... I have set the apache config like suggest bernhard and I have put my wsgi folder in /var/www/html but I continue to have the error:<br></div>illegal charcther #! /usr/bin/python<br><br></div>I have reinstalled libapache2-mod-wsgi, but nothing <br><br></div>I use ubuntu server 14.04 apache 2.4 python 2.7<br><br></div>Thanks at all for help<br><br></div>E<br><div><div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-22 16:32 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>
as I wrote in a previous post: Make sure the user running the apache process has access to the wsgi directory. Try putting the wsgi in /home/somthing e.g. in /var/www/wsgi<br>
<br>
Bernhard<div><div><br>
<br>
Am 22.04.2015 14:07, schrieb Enzo Cocca:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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 [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 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 give the<br>
alias<br>
<br>
any idea?<br>
<br>
E<br>
<br>
<br>
<br>
<br>
</blockquote>
<br>
<br></div></div>
__________ Information from ESET Mail Security, version of virus signature database 11515 (20150422) __________<span><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>
</span><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><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></div></div></div></div></div></div></div>