title: Unpacking the package… Could not create directory. Wordpress, Apache2, Ubuntu
body: <p>This question could be all around but I have tried most answers and permission 777. But, still no luck.</p>
  
  <p><strong>/etc/apache2/sites-available/mysite.conf</strong></p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
          ServerName www.mysite.com
          ServerAdmin mymail@mail.com
          DocumentRoot /var/www/html/wordpress
          ErrorLog ${APACHE_LOG_DIR}/mysite_error.log
          CustomLog ${APACHE_LOG_DIR}/mysite.log combined 
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p><strong>/etc/vsftpd.conf</strong></p>
  
  <pre><code>listen=YES
  anonymous_enable=NO
  local_enable=YES
  write_enable=YES
  dirmessage_enable=YES
  use_localtime=YES
  xferlog_enable=YES
  connect_from_port_20=YES
  chroot_local_user=YES
  secure_chroot_dir=/var/run/vsftpd/empty
  pam_service_name=vsftpd
  rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
  rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
  allow_writeable_chroot=YES
  </code></pre>
  
  <p>I set permission <code>777</code> to <code>/usr/share/wordpress</code> and <code>/var/lib/wordpress</code>.</p>