Question

Wordpress Plugin - Can't Create Directory

Hi All,

I have successfully installed Wordpress on my LAMP server, however, I can’t seem to update plugins. I am getting the following error:

Could not create directory

Additionally, I have already placed the following instruction in the wp-config file:

define('FS_METHOD','direct');

Any ideas?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

after changing ownership restart the server, i have done the same mistake and it costed me 20 minutes

sudo service apache2 restart

Most probably permisison issues. Try : sudo chown -R apache:apache /var/www/html/*