title: PHP in userdir not working
body: <p>My <strong>/etc/apache2/mods-enabled/userdir.conf</strong> file looks like:</p>
  
  <pre><code>&lt;IfModule mod_userdir.c&gt;
          UserDir /var/zpanel/hostdata/*/public_html/
          UserDir disabled root
  
          &lt;Directory /var/zpanel/hostdata/*/public_html/*&gt;
                  AllowOverride All
                  Options MultiViews Indexes SymLinksIfOwnerMatch
                  &lt;Limit GET POST OPTIONS&gt;
                          # Apache &lt;= 2.2:
                          Order allow,deny
                          Allow from all
  
                          # Apache &gt;= 2.4:
                          # Require all granted
                  &lt;/Limit&gt;
                  &lt;LimitExcept GET POST OPTIONS&gt;
                          # Apache &lt;= 2.2:
                          Order deny,allow
                          Deny from all
  
                          # Apache &gt;= 2.4:
                          #Require all denied
                  &lt;/LimitExcept&gt;
          &lt;/Directory&gt;
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>And file <strong>/etc/apache2/mods-enabled/php5.conf</strong></p>
  
  <pre><code>&lt;FilesMatch ".+\.ph(p[345]?|t|tml)$"&gt;
      SetHandler application/x-httpd-php
  &lt;/FilesMatch&gt;
  &lt;FilesMatch ".+\.phps$"&gt;
      SetHandler application/x-httpd-php-source
      # Deny access to raw php sources by default
      # To re-enable it's recommended to enable access to the files
      # only in specific virtual host or directory
     Require all denied
  &lt;/FilesMatch&gt;
  # Deny access to files without filename (e.g. '.php')
  &lt;FilesMatch "^\.ph(p[345]?|t|tml|ps)$"&gt;
      Require all denied
  &lt;/FilesMatch&gt;
  
  # Running PHP scripts in user directories is disabled by default
  #
  # To re-enable PHP in user directories comment the following lines
  # (from &lt;IfModule ...&gt; to &lt;/IfModule&gt;.) Do NOT set it to On as it
  # prevents .htaccess files from disabling it.
  
  
  #&lt;IfModule mod_userdir.c&gt;
  #    &lt;Directory /var/zpanel/hostdata/*/public_html/*&gt;
  #        php_admin_value engine On
  #    &lt;/Directory&gt;
  #&lt;/IfModule&gt;
  </code></pre>
  
  <p>But php not working when in accessing web site via userdir. 
  <strong>www.example.com/~admin</strong>
  When i access via domain then it works. I have zPanel installed</p>
  
  <p>Server version: Apache/2.4.18 (Ubuntu)</p>