title: error logging per virtualhost
body: <p>I'm running Ubuntu 14.04 with Apache. And i want to have separate php-error log per virtualhost. I have read a few stackoverflow topics and set host.com file, but it still doesn't work. PHP errors are logged into error.log and not to php-error.log (I haven't forgot to reboot apache).</p>
  
  <p>My php version: PHP 5.6.30-12~ubuntu14.04.1+deb.sury.org+1 (cli).</p>
  
  <p>My host.conf file:</p>
  
  <pre><code>&lt;IfModule mod_ssl.c&gt;
  &lt;VirtualHost dev.domain.com:443&gt;
  ServerName dev.domain.com
  
  ServerAdmin email@domain.com
  DocumentRoot /var/www/html/domain.com/dev.domain.com/public_html
  
  ErrorLog /var/log/logs/domain.com/dev.domain.com/dev.domain.com.error.log
  CustomLog /var/log/logs/domain.com/dev.domain.com/dev.domain.com.access.log combined
  
  php_flag log_errors on
  php_flag display_errors on
  php_value error_reporting 2147483647
  php_value error_log /var/log/logs/domain.com/dev.domain.com/dev.domain.com.php-error.log
  
  &lt;Directory /var/www/html/domain.com/dev.domain.com/public_html&gt;
  Options +Indexes +FollowSymLinks -MultiViews
  AllowOverride All
  Order allow,deny
  allow from all
  &lt;/Directory&gt;
  SSLCertificateFile /etc/letsencrypt/live/dev.domain.com/cert.pem
  SSLCertificateKeyFile /etc/letsencrypt/live/dev.domain.com/privkey.pem
  Include /etc/letsencrypt/options-ssl-apache.conf
  SSLCertificateChainFile /etc/letsencrypt/live/dev.domain.com/chain.pem
  &lt;/VirtualHost&gt;
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>------EDIT------</p>
  
  <p>Also i have tried like this:</p>
  
  <pre><code>&lt;IfModule mod_ssl.c&gt;
  &lt;VirtualHost dev.domain.com:443&gt;
  ServerName dev.domain.com
  
  ServerAdmin linas@hardrokas.net
  DocumentRoot /var/www/html/domain.com/dev.domain.com/public_html
  
  ErrorLog /var/log/logs/domain.com/dev.domain.com/dev.domain.com.error.log
  CustomLog /var/log/logs/domain.com/dev.domain.com/dev.domain.com.access.log combined
  
  
  
  &lt;Directory /var/www/html/domain.com/dev.domain.com/public_html&gt;
  Options +Indexes +FollowSymLinks -MultiViews
  AllowOverride All
  Order allow,deny
  allow from all
  &lt;/Directory&gt;
  
  &lt;IfModule mod_php5.c&gt;
  php_flag log_errors on
  php_flag display_errors on
  php_value error_reporting 2147483647
  php_value error_log /var/log/logs/domain.com/dev.domain.com/dev.domain.com.php-error.log
  &lt;/IfModule&gt;
  
  
  
  SSLCertificateFile /etc/letsencrypt/live/dev.domain.com/cert.pem
  SSLCertificateKeyFile /etc/letsencrypt/live/dev.domain.com/privkey.pem
  Include /etc/letsencrypt/options-ssl-apache.conf
  SSLCertificateChainFile /etc/letsencrypt/live/dev.domain.com/chain.pem
  &lt;/VirtualHost&gt;
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>And this:</p>
  
  <pre><code>    &lt;IfModule mod_ssl.c&gt;
  &lt;VirtualHost dev.domain.com:443&gt;
  ServerName dev.domain.com
  
  ServerAdmin linas@hardrokas.net
  DocumentRoot /var/www/html/domain.com/dev.domain.com/public_html
  
  ErrorLog /var/log/logs/domain.com/dev.domain.com/dev.domain.com.error.log
  CustomLog /var/log/logs/domain.com/dev.domain.com/dev.domain.com.access.log combined
  
  
  
  &lt;Directory /var/www/html/domain.com/dev.domain.com/public_html&gt;
  Options +Indexes +FollowSymLinks -MultiViews
  AllowOverride All
  Order allow,deny
  allow from all
  
  &lt;IfModule mod_php5.c&gt;
  php_flag log_errors on
  php_flag display_errors on
  php_value error_reporting 2147483647
  php_value error_log /var/log/logs/domain.com/dev.domain.com/dev.domain.com.php-error.log
  &lt;/IfModule&gt;
  
  &lt;/Directory&gt;
  
  SSLCertificateFile /etc/letsencrypt/live/dev.domain.com/cert.pem
  SSLCertificateKeyFile /etc/letsencrypt/live/dev.domain.com/privkey.pem
  Include /etc/letsencrypt/options-ssl-apache.conf
  SSLCertificateChainFile /etc/letsencrypt/live/dev.domain.com/chain.pem
  &lt;/VirtualHost&gt;
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>But same issue, all php errors are logged into error.log</p>