How to solve “Failed to connect to FTP server” in WordPress.

In this tutorial, I will show you how to solve the error message “Failed to connect to FTP server” on the WordPress site. Do not panic because this is a small issue you can sort by giving explicit permissions.

This error does occur due to permission issues with the WordPress server. The web server does not grant permission explicitly, so the administrator must allow and grant permission so that communication can be established.

The following error can persist for a long time if you do not know where to start from.

When you use something like Nginx or Apache while doing WordPress install, always ensure you give Nginx or Apache to own the content by granting full permission.

$ sudo chown -R nginx.nginx /var/www/nextgentips

Var/www/ is the folder where your content resides

nextgentips is the name of my project

After you have given the above permission restart your Nginx/Apache2 for the changes to take effect.

$ sudo systemctl restart nginx

For Apache2, you can do the following

$ sudo systemctl restart httpd

Conclusion

You now know how to solve FTP connection errors in WordPress. Apply those securities and you will not get the same error again in WordPress

About Mason Kipward

I am a technology enthusiast who loves to share gained knowledge through offering daily tips as a way of empowering others. I am fan of Linux and all other things open source.
View all posts by Mason Kipward →

Leave a Reply

Your email address will not be published.