Installation failed: Could not create directory. wordpress

"Whenever you use the WordPress control panel to automatically install, upgrade,
or delete plugins, WordPress must make changes to files on the filesystem.

Before making any changes, WordPress first checks to see whether or not it has 
access to directly manipulate the file system.

If WordPress does not have the necessary permissions to modify the filesystem 
directly, you will be asked for FTP credentials so that WordPress can try to do
what it needs to via FTP."

Solution: In order to find out what user your instance of apache is running as,
create a test script with the following content:

<?php echo(exec("whoami")); ?>

For me, it was daemon and not www-data. Then, fix the permission by:

sudo chown -R daemon /path/to/your/local/www/folder

3.9
10
Teilo 90 points

                                    sudo chown -R www-data:www-data wp-content/plugins/
sudo chmod 775 wp-content

sudo chown -R www-data:www-data wp-content/

3.9 (10 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
how to fix installation failed could not create directory in wordpress installation failed could not create directory. localhost wordpress wordpress plugin installation failed: could not create directory mac wordpress theme install could not create directory wordpress plugins Installation failed: Could not create directory. wordpress update Could not create directory. ubuntu wordpress Could not create directory. wordpress could not crate directory ubuntu wordpress could not create directory Installation failed: Could not create directory. word press Installation failed: Could not create directory. wordpress plugin whm Installation failed: Could not create directory. wordpress plugin wordpress plugin Installation failed: Could not create directory. wordpress plugin installation failed could not create directory Update failed: Could not create directory. wordpress wordpress theme installation failed could not create a directory Installation failed: Could not create directory. wordpress on ubuntu Installation failed: Could not create directory. wordpres could not create directory wordpress localhost could not create directory. wordpress update Fix WordPress &ldquo;Installation Failed: Could Not Create Directory&rdquo; Error Installation failed: Could not create directory wordpressw Installation failed: Could not create directory wordpress install plugin Installation failed: Could not create directory. wordpress plugins could not create directory. wordpress ubuntu Installation failed: Could not create directory. in wordpress CMS Installation failed: Could not create directory. wordpress localhost why it says could not create directory in wordpress wordpress Could not create directory. installation failed could not create directory. wordpress ubuntu Could not create directory. /usr/share/wordpress/wp-content installation failed could not create directory. wordpress mac wordpress could not create directory webmin Wordpress cannot create directory Could not create directory linux wordpress wordpress reinstall Could not create directory. Error: Could not create directory. wordpress installation failed could not create directory wordpress plugin could not create directory. wordpress installation failed could not create directory. wordpress Installation failed: Could not create directory in wordpress Installation failed: Could not create directory. wordpress Installation failed: Could not create directory wordpress wordpress theme error could not create directory localhost wordpress theme error could not create directory update failed could not create directory. wordpress wordpress error could not create directory Could not create directory WP linux wordpress Could not create directory. wordpress update failed could not create directory wordpress plugin could not create directory wordpress installation failed cannot create directory wordpress Installation failed: Could not create directory. wordpress could not create directory installation failed could not create directory. wordpress theme wordpress Update failed: Could not create directory. Could not create directory /wp-content/themes/ Could not create directory. /srv/http/wordpress/wp-content/themes/ installation failed could not create directory wordpress theme localhost wordpress theme installation failed could not create directory Could not create directory wordpress
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source