When I enter URL in browser: http://localhost:89/qgis-web-client-master/wsgi/search.wsgi?query=&searchtables=&query=pl&cb=stcCallback1002 I get the content of search.wsgi file! This is my log of access file: 127.0.0.1 - - [16/Jan/2014:11:50:26 +0100] "GET /qgis-web-client-master/wsgi/search.wsgi?query=&searchtables=&query=89&cb=stcCallback1001 HTTP/1.1" 200 5723 127.0.0.1 - - [16/Jan/2014:12:08:29 +0100] "GET /qgis-web-client-master/wsgi/search.wsgi?query=&searchtables=&query=pl&cb=stcCallback1002 HTTP/1.1" 200 5723 This is my log of error file:
[Thu Jan 16 11:50:49 2014] [notice] Parent: Received restart signal -- Restarting the server. [Thu Jan 16 11:50:49 2014] [notice] Child 8856: Exit event signaled. Child process is ending. [Thu Jan 16 11:50:49 2014] [warn] mod_wsgi: Compiled for Python/3.3.0. [Thu Jan 16 11:50:49 2014] [warn] mod_wsgi: Runtime using Python/3.3.2. [Thu Jan 16 11:50:49 2014] [notice] Apache/2.2.14 (Win32) mod_wsgi/3.5-BRANCH Python/3.3.2 mod_fcgid/2.3.6 configured -- resuming normal operations [Thu Jan 16 11:50:49 2014] [notice] Server built: Sep 28 2009 22:41:08 [Thu Jan 16 11:50:49 2014] [notice] Parent: Created child process 6020 [Thu Jan 16 11:50:49 2014] [warn] mod_wsgi: Compiled for Python/3.3.0. [Thu Jan 16 11:50:49 2014] [warn] mod_wsgi: Runtime using Python/3.3.2. [Thu Jan 16 11:50:49 2014] [notice] Child 6020: Child process is running [Thu Jan 16 11:50:50 2014] [notice] Child 6020: Acquired the start mutex. [Thu Jan 16 11:50:50 2014] [notice] Child 8856: Released the start mutex [Thu Jan 16 11:50:50 2014] [notice] Child 6020: Starting 64 worker threads. [Thu Jan 16 11:50:50 2014] [notice] Child 6020: Starting thread to listen on port 89. [Thu Jan 16 11:50:51 2014] [notice] Child 8856: All worker threads have exited. [Thu Jan 16 11:50:51 2014] [notice] Child 8856: Child process is exiting 2014/1/16 Bernhard Ströbl <bernhard.stro...@jena.de>: > Hi, > > try to enter the url of the wsgi-script directly in your browser and see > what it returns, check QWC's log file for any errors of the wsgi script. > > Bernhard > > Am 16.01.2014 12:09, schrieb Mira Maric: > >> I set up Apache config file: >> insert following lines: >> - LoadModule wsgi_module modules/mod_wsgi.so >> and >> >> WSGIScriptAlias /wsgi >> C:\OSGeo4W\apache\htdocs\qgis-web-client-master\wsgi >> WSGIScriptAliasMatch ^/wsgi/([^/]+) >> "C:\OSGeo4W\apache\htdocs\qgis-web-client-master\$1.wsgi" >> >> >> , after this I create tables in Posgis and modify connection string in >> search.wsgi and getSearchGeom.wsgi. >> >> Now when I run web page and try to search in search box I get this error: >> >> Resource interpreted as Script but transferred with MIME type text/plain: >> >> "http://localhost:89/qgis-web-client-master/wsgi/search.wsgi?query=&searchtables=&query=89&cb=stcCallback1001". >> ext-all.js:7 >> Uncaught SyntaxError: Unexpected token ILLEGAL search.wsgi:1 >> >> >> >> 2014/1/16 Bernhard Ströbl<bernhard.stro...@jena.de>: >>> >>> Hi, >>> >>> I have no idea, where this is located on Windows... >>> but you need to adapt the wsgi files you downloaded from github with QWC >>> to >>> your db settings (see section 6.2)! >>> >>> Bernhard >>> >>> P.S. please try to reply to the list >>> >>> Am 16.01.2014 10:17, schrieb Mira Maric: >>> >>>> Hi! >>>> I do the following: >>>> I download mod_wsgi.so from >>>> http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi an put it in: >>>> C:\OSGeo4W\apache\modules >>>> In Apache config file I added line: >>>> -LoadModule wsgi_module modules/mod_wsgi.so >>>> >>>> I restart apache and turn it on, it's work OK. Now I don't know where >>>> to do this, where is file for this settings? >>>> I am using Windows! >>>> >>>> 6.1. Configuration of mod_wsgi >>>> ============================== >>>> >>>> You need to enable mod_wsgi as root. (Ubuntu: a2enmod mod_wsgi). >>>> >>>> You need to configure apache with the following lines (e.g. in file >>>> /etc/apache2/sites-available/default): >>>> >>>> #mod_wsgi >>>> WSGIDaemonProcess gis processes=5 threads=15 display-name=%{GROUP} >>>> WSGIScriptAlias /wsgi/ /home/www/wsgi/ >>>> WSGIScriptAliasMatch ^/wsgi/([^/]+) /home/www/wsgi/$1.wsgi >>>> >>>> >>>> >>>> Thanks! >>>> >>>> >>>> >>>> >>>> >>>> >>>> 2014/1/16 Mira Maric<mmmx...@gmail.com>: >>>>> >>>>> >>>>> Hi! >>>>> I do the following: >>>>> I download mod_wsgi.so from >>>>> http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi an put it in: >>>>> C:\OSGeo4W\apache\modules >>>>> In Apache config file I added line: >>>>> -LoadModule wsgi_module modules/mod_wsgi.so >>>>> >>>>> I restart apache and turn it on, it's work OK. Now I don't know where >>>>> to do this >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Uncaught SyntaxError: Unexpected token ILLEGAL in search.wsgi:1 >>>>> >>>>> 2014/1/16 Bernhard Ströbl<bernhard.stro...@jena.de>: >>>>>> >>>>>> >>>>>> Hi, >>>>>> >>>>>> did you configure the wsgi scripts to match your database and did you >>>>>> provide the search tables in the database? >>>>>> Both is described in the README (section 6) [1] >>>>>> >>>>>> Bernhard >>>>>> >>>>>> [1] https://github.com/qgis/QGIS-Web-Client >>>>>> >>>>>> Am 16.01.2014 07:33, schrieb Mira Maric: >>>>>>> >>>>>>> >>>>>>> >>>>>>> 1. >>>>>>> >>>>>>> >>>>>>> First I added line in Apache config file: >>>>>>> -LoadModule wsgi_module modules/mod_wsgi.so >>>>>>> >>>>>>> 2. >>>>>>> >>>>>>> >>>>>>> In GlobalOption.js I set var useGeoNamesSearchBox = false; var >>>>>>> searchBoxQueryURL >>>>>>> >>>>>>> >>>>>>> ="http://localhost:89/qgis-web-client-master/wsgi/search.wsgi?query="; >>>>>>> var searchBoxGetGeomURL >>>>>>> >>>>>>> >>>>>>> ="http://localhost:89/qgis-web-client-master/wsgi/getSearchGeom.wsgi"; >>>>>>> >>>>>>> When i try to search, i do not get anything! Is there any example for >>>>>>> searching setup? >>>>>>> >>>>>>> >>>>>>> >>> >>> >>> > > > __________ Information from ESET Mail Security, version of virus signature > database 9297 (20140116) __________ > > > The message was checked by ESET Mail Security. > http://www.eset.com > > _______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer