<div dir="ltr"><div>Thank you for your help,</div><div><br></div><div>Unfortunately 
QGIS_CUSTOM_CONFIG_PATH does not solve the issue, I've the feeling that this variable has been removed since QGIS3, it's not listed in the docs and qgis-server log file does not report it, even if it was set in Apache conf. Moreover, setting 
<span class="gmail-im">QGIS_OPTIONS_PATH to profile folder works crorrectly, I can see in the log that the init file was found and some variable like QGIS_SERVER_PARALLEL_RENDERING have been correctly overridden by the init configuration.</span>

</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 27 févr. 2019 à 12:21, Alessandro Pasotti <<a href="mailto:apasotti@gmail.com">apasotti@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 27, 2019 at 9:51 AM Dominique Lyszczarz <<a href="mailto:domlysz@gmail.com" target="_blank">domlysz@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>I'm trying to serve a project that use data-defined properties with an expression using a custom Python function. Custom Python functions for expression engine are stored in user's profile folder (QGIS3/profiles/default/python/expression), so I've tryied to set up FCGI environment variable (Apache) as referred in the doc (<a href="https://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/server/config.html" target="_blank">https://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/server/config.html</a>) :</div><div><br></div><div><span style="font-family:monospace,monospace">FcgidInitialEnv QGIS_OPTIONS_PATH "/home/user/.local/share/QGIS/QGIS3/profiles/default"</span></div><div><br></div><div>But it does not seems to works, any idea ?</div></div></div></div></blockquote><div><br></div><div><span style="font-family:monospace,monospace">QGIS_OPTIONS_PATH is</span>  the path to QGIS3.ini (which contains the user settings), not the path to the profile folder.</div><div><br></div><div>QGIS_CUSTOM_CONFIG_PATH is what are you probably looking for.</div><div><br></div><div>Hope this helps.<br></div><div><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div>Thanks in advance<br></div><div><br></div><div><br></div></div></div></div>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail-m_1969443698394664500gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div></div></div>
</blockquote></div>