Wordpress plugin install: Could not create directory
<p>I'm using WordPress on centos 6.</p>

<p>I try to install a plugin. But I got this error:</p>

<blockquote>
  <p>Installing Plugin: bbPress 2.5.9
  Downloading install package from <a href="https://downloads.wordpress.org/plugin/bbpress.2.5.9.zip" rel="noreferrer">https://downloads.wordpress.org/plugin/bbpress.2.5.9.zip</a>…</p>
  
  <p>Unpacking the package…</p>
  
  <p>Could not create directory.</p>
</blockquote>

<p>How can I resolve this?</p>

<p>P/S: I run this command:</p>

<pre><code>sudo -u root touch /var/www/html/wordpress/wp-content/plugins/test.txt
</code></pre>

<p>and it works. But I still get that error.</p>