<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Post installation instructions from external app installed on Lamp App suggest Apache config changes]]></title><description><![CDATA[<p dir="auto">I just installed the open source app OpenEMR (an electronic medical records application) using Cloudron's Lamp App.</p>
<p dir="auto">Set-up note: I symlinked <code>/app/data/public</code> to the OpenEMR root directory by running</p>
<pre><code>ln -s /app/data/openemr /app/data/public
</code></pre>
<p dir="auto">After a successful installation, the following post-install message appeared,</p>
<blockquote>
<p dir="auto">The "/app/data/openemr/sites/*/documents" directory contain patient information, and it is important to secure these directories. Additionally, some settings are required for the Zend Framework to work in OpenEMR. This can be done by pasting the below to end of your apache configuration file:</p>
</blockquote>
<pre><code>  &lt;Directory "/app/data/openemr"&gt;
      AllowOverride FileInfo
      Require all granted
  &lt;/Directory&gt;
  &lt;Directory "/app/data/openemr/sites"&gt;
      AllowOverride None
  &lt;/Directory&gt;
  &lt;Directory "/app/data/openemr/sites/*/documents"&gt;
      Require all denied
  &lt;/Directory&gt;
</code></pre>
<p dir="auto">My current <code>/app/data/apache/app.conf</code> looks like this (I have made NO changes to what Cloudron created):</p>
<pre><code>ServerName %{HTTP_HOST}
  
&lt;VirtualHost *:80&gt;
    DocumentRoot /app/data/public

    LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy
    CustomLog "|/bin/cat" proxy
    ErrorLog "|/bin/cat"

    &lt;Directory /app/data/public&gt;
        Options +FollowSymLinks
        AllowOverride All
        Require all granted
    &lt;/Directory&gt;

    # Do not remove this include. It's required for your app to see the Real IP
    Include "/app/code/apache/rpaf.conf"
    # This line can be commented out, if you do no require PHPMyAdmin Access
    Include "/app/code/apache/phpmyadmin.conf"

&lt;/VirtualHost&gt;
</code></pre>
<p dir="auto"><strong>Question</strong>: do I just add the recommended apache directives at the end of <code>/app/data/apache/app.conf</code> as recommended?</p>
<p dir="auto">(I'm sorry if this is such a "duh" question. Frankly it was my struggles and ultimate headbanging configuring apache that had me searching for a better way and finding Cloudron. I have about 15 apps installed and I've never had to fuss with apache previously. Thanks for your patience.)</p>
]]></description><link>https://forum.cloudron.io/topic/5734/post-installation-instructions-from-external-app-installed-on-lamp-app-suggest-apache-config-changes</link><generator>RSS for Node</generator><lastBuildDate>Tue, 19 May 2026 00:53:02 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/5734.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Sep 2021 20:30:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Post installation instructions from external app installed on Lamp App suggest Apache config changes on Thu, 30 Sep 2021 21:32:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Thank you!</p>
]]></description><link>https://forum.cloudron.io/post/37093</link><guid isPermaLink="true">https://forum.cloudron.io/post/37093</guid><dc:creator><![CDATA[Shai]]></dc:creator><pubDate>Thu, 30 Sep 2021 21:32:24 GMT</pubDate></item><item><title><![CDATA[Reply to Post installation instructions from external app installed on Lamp App suggest Apache config changes on Thu, 30 Sep 2021 00:50:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shai" aria-label="Profile: shai">@<bdi>shai</bdi></a> You should remove the <code>/app/data/public</code> symlink and just change DocumentRoot instead (see below). And in apache.conf, remove the below:</p>
<pre><code>    &lt;Directory /app/data/public&gt;
        Options +FollowSymLinks
        AllowOverride All
        Require all granted
    &lt;/Directory&gt;
</code></pre>
<p dir="auto">And replace the above with the Directory setting suggested by openemr. So, finally, I think you have:</p>
<pre><code>ServerName %{HTTP_HOST}

&lt;VirtualHost *:80&gt;
    DocumentRoot /app/data/openemr

    LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy
    CustomLog "|/bin/cat" proxy
    ErrorLog "|/bin/cat"

  &lt;Directory "/app/data/openemr"&gt;
      AllowOverride FileInfo
      Require all granted
  &lt;/Directory&gt;
  &lt;Directory "/app/data/openemr/sites"&gt;
      AllowOverride None
  &lt;/Directory&gt;
  &lt;Directory "/app/data/openemr/sites/*/documents"&gt;
      Require all denied
  &lt;/Directory&gt;

    # Do not remove this include. It's required for your app to see the Real IP
    Include "/app/code/apache/rpaf.conf"
    # This line can be commented out, if you do no require PHPMyAdmin Access
    Include "/app/code/apache/phpmyadmin.conf"

&lt;/VirtualHost&gt;

</code></pre>
]]></description><link>https://forum.cloudron.io/post/37054</link><guid isPermaLink="true">https://forum.cloudron.io/post/37054</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 30 Sep 2021 00:50:36 GMT</pubDate></item><item><title><![CDATA[Reply to Post installation instructions from external app installed on Lamp App suggest Apache config changes on Wed, 29 Sep 2021 20:53:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shai" aria-label="Profile: shai">@<bdi>shai</bdi></a> Yes, that should do.</p>
]]></description><link>https://forum.cloudron.io/post/37045</link><guid isPermaLink="true">https://forum.cloudron.io/post/37045</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Wed, 29 Sep 2021 20:53:08 GMT</pubDate></item></channel></rss>