<div dir="ltr"><div><div><div>Thx Alessandro,<br><br></div>Direct english link here : <a href="http://www.itopen.it/qgis-server-python-plugins-ubuntu-setup/lang-pref/en/">http://www.itopen.it/qgis-server-python-plugins-ubuntu-setup/lang-pref/en/</a> <br><br></div>Cheers<br></div>Michaël<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-04 14:22 GMT+01:00 Alessandro Pasotti <span dir="ltr"><<a href="mailto:apasotti@gmail.com" target="_blank">apasotti@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Bernhard,<br>
<br>
I tested on a fresh install and wrote quicka step-by-step installation guide:<br>
<br>
<a href="http://www.itopen.it/qgis-server-python-plugins-ubuntu-setup/" target="_blank">http://www.itopen.it/qgis-server-python-plugins-ubuntu-setup/</a><br>
<br>
Hope that helps.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
2015-03-04 8:04 GMT+01:00 Bernhard Ströbl <<a href="mailto:bernhard.stroebl@jena.de">bernhard.stroebl@jena.de</a>>:<br>
> Hi Alessandro,<br>
><br>
> I created a qgis.log file and changed to QgsLogger.debug() in my plugin.<br>
> "Service Exception", no log messages.<br>
><br>
> python-qgis is installed (together with all the QGIS desktop dpendencies<br>
> most of which I will not need on a server)<br>
><br>
> Bernhard<br>
><br>
> Am 03.03.2015 18:40, schrieb Alessandro Pasotti:<br>
><br>
>> Hi,<br>
>><br>
>> a small update: to summon the log file you first need to print<br>
>> something to it (so far so good), but instead of using<br>
>><br>
>> QgsMessageLog.logMessage( .... )<br>
>><br>
>> you must use:<br>
>><br>
>> QgsLogger.debug ( ... )<br>
>><br>
>><br>
>> this works for me.<br>
>><br>
>> Also, check if you have installed python-qgis I see that the package<br>
>> contains the server library too.<br>
>><br>
>><br>
>><br>
>><br>
>> 2015-03-03 17:39 GMT+01:00 Bernhard Ströbl <<a href="mailto:bernhard.stroebl@jena.de">bernhard.stroebl@jena.de</a>>:<br>
>>><br>
>>> Hi Donovan,<br>
>>><br>
>>> yes it should read "resources", you see in German it is spelled the other<br>
>>> way :-)<br>
>>> no success, though :-(<br>
>>><br>
>>> Hi Alessandro,<br>
>>><br>
>>> strange thing there is not even a qgis.log file and there is nothing in<br>
>>> apache's error log.<br>
>>><br>
>>> Bernhard<br>
>>><br>
>>> Am 03.03.2015 17:01, schrieb Donovan Cameron:<br>
>>><br>
>>>> Is there a typo maybe?<br>
>>>><br>
>>>> FcgidInitialEnv QGIS_CUSTOM_CONFIG_PATH "/usr/share/qgis/ressources/"<br>
>>>><br>
>>>> So "ressources" should instead be "resources"?<br>
>>>><br>
>>>><br>
>>>><br>
>>>> Donovan<br>
>>>><br>
>>>> On 03/03/15 08:56 AM, Alessandro Pasotti wrote:<br>
>>>>><br>
>>>>><br>
>>>>> Hi Bernhard,<br>
>>>>><br>
>>>>> anything in the logs?<br>
>>>>><br>
>>>>> I haven't already tested the 2.8.1, I'm working on a master build and<br>
>>>>> it works fine.<br>
>>>>><br>
>>>>> I'll test the official packages asap.<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> 2015-03-03 16:53 GMT+01:00 Bernhard Ströbl<<a href="mailto:bernhard.stroebl@jena.de">bernhard.stroebl@jena.de</a>>:<br>
>>>>>><br>
>>>>>><br>
>>>>>> Hi all,<br>
>>>>>><br>
>>>>>> I am trying to make a python plugin run on QGIS server, however all I<br>
>>>>>> get is<br>
>>>>>><br>
>>>>>> <ServiceException code="Service configuration error">Service unknown<br>
>>>>>> or<br>
>>>>>> unsupported</ServiceException><br>
>>>>>><br>
>>>>>> I wonder if qgis server cannot access my plugin or it cannot run my<br>
>>>>>> plugin<br>
>>>>>> because it misses something. My filter has a requestReady hook but<br>
>>>>>> there<br>
>>>>>> is<br>
>>>>>> nothing in the logs. I trieed to configure along [1]:<br>
>>>>>><br>
>>>>>> This is what I configured:<br>
>>>>>> # QGIS Server python Plugins<br>
>>>>>> FcgidInitialEnv PYTHONIOENCODING UTF-8<br>
>>>>>> FcgidInitialEnv QGIS_DEBUG 1<br>
>>>>>> FcgidInitialEnv QGIS_CUSTOM_CONFIG_PATH "/usr/share/qgis/ressources/"<br>
>>>>>> FcgidInitialEnv QGIS_LOG_FILE ${APACHE_LOG_DIR}/qgis.log<br>
>>>>>> FcgidInitialEnv QGIS_OPTIONS_PATH "/usr/lib/cgi-bin/"<br>
>>>>>> FcgidInitialEnv QGIS_PLUGINPATH "/opt/qgis/python/"<br>
>>>>>> FcgidInitialEnv LD_LIBRARY_PATH "/usr/lib"<br>
>>>>>><br>
>>>>>> my setting is:<br>
>>>>>> Ubuntu 14.04<br>
>>>>>> qgis-server installed from repo (2.8.1)<br>
>>>>>><br>
>>>>>> This is a server, so previously no qgis desktop was installed. I now<br>
>>>>>> even<br>
>>>>>> installed this and tried to point the fcgid env variables to the<br>
>>>>>> places<br>
>>>>>> where qgis resides to no avail.<br>
>>>>>><br>
>>>>>> any help appreciated<br>
>>>>>><br>
>>>>>> Bernhard<br>
>>>>>><br>
>>>>>> [1]<a href="http://www.itopen.it/qgis-server-python-plugins-tutorial/" target="_blank">http://www.itopen.it/qgis-server-python-plugins-tutorial/</a><br>
>>>>>><br>
>>>>>><br>
>>>>>> __________ Information from ESET Mail Security, version of virus<br>
>>>>>> signature<br>
>>>>>> database 11261 (20150303) __________<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-user mailing list<br>
>>>>>> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
>>>>>> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> __________ Information from ESET Mail Security, version of virus<br>
>>> signature<br>
>>> database 11262 (20150303) __________<br>
>>><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-user mailing list<br>
>>> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
>>> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
>><br>
>><br>
>><br>
>><br>
><br>
> --<br>
> Bernhard Ströbl<br>
> Anwendungsbetreuer GIS<br>
><br>
> Kommunale Immobilien Jena<br>
> Am Anger 26<br>
> 07743 Jena<br>
><br>
> Tel.: 03641 49- 5190<br>
> E-Mail: <a href="mailto:bernhard.stroebl@jena.de">bernhard.stroebl@jena.de</a><br>
> Internet: <a href="http://www.kij.de" target="_blank">www.kij.de</a><br>
><br>
><br>
> Kommunale Immobilien Jena<br>
> Eigenbetrieb der Stadt Jena<br>
> Werkleiter: Dr. Götz Blankenburg<br>
><br>
><br>
> __________ Information from ESET Mail Security, version of virus signature<br>
> database 11265 (20150304) __________<br>
><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>
<br>
<br>
</div></div><span class="im HOEnZb">--<br>
Alessandro Pasotti<br>
w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a><br>
</span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></div></div></blockquote></div><br></div>