5/5 - (1 vote)

To Fix the WordPress Plugin and Theme installation issue on the ubuntu server when it’s a permission issue or you have made a new wp installation on the ubuntu server. In this guide, we will show you how you can fix it easily.

Follow the Steps to Fix the Connection Information and Installation failed: Could not create directory Issue

Open wp-config.php with your text editor of choice and add the following line to the end of the file:

define('FS_METHOD','direct');

In this case, WordPress doesn’t have permission to write in your server. use these two commands in terminal.

$sudo a2enmod rewrite 

$sudo chown -R www-data /var/www

About the Author

Shahid Malla

Shahid Malla is an accomplished system admin and web developer, renowned for his expertise in various fields. With a strong background in WHMCS development, WordPress development, and PHP development, Shahid has honed his skills over the years to deliver exceptional results. As a top-rated freelancer, he has consistently garnered praise and recognition, earning a stellar 5-star rating from a pool of 500 reviews. Shahid's proficiency extends beyond coding and development, encompassing server configuration, server management, and web security. With his extensive knowledge and dedication to delivering high-quality solutions, Shahid Malla is your go-to professional for all your technical needs.

View All Articles