While attempting to install the WooCommerce plugin on a local WordPress instance, an error message is displayed, stating that WordPress requires access to the web server and requests FTP credentials to proceed. The user is prompted to enter FTP credentials, and a suggestion is given to contact the web host if the credentials are not remembered.

Change Ownership of WordPress Directory:

  • Change the ownership of your WordPress directory to the web server user (e.g., www-data for Apache).
sudo chown -R www-data:www-data /path/to/your/wordpress 

Adjust Permissions:

  • Set the correct permissions for directories and files.
find /path/to/your/wordpress/ -type d -exec chmod 755 {} ; 
find /path/to/your/wordpress/ -type f -exec chmod 644 {} ; 
  • Replace “/path/to/your/wordpress/” with the actual path to your WordPress installation.

Try installing or updating the WooCommerce plugin again.

Leave a comment

Your email address will not be published. Required fields are marked *