MilesWeb Hosting Forum

Web Hosting Technical Support => Errors and Solutions => Topic started by: Rahul Sambre on January 13, 2017, 02:48:32 AM

Title: FTP Error - Can't install Wordpress themes.
Post by: Rahul Sambre on January 13, 2017, 02:48:32 AM
Hello Folks,

If someone receives the below error while uploading theme by using wordpress.

QuoteFailed to connect to FTP Server x.x.x.x:21

It is asking me for my hostname, username, and password which I put.

when I try to connect through port 21 (which Wordpress tries to do) it fails and showing error "Failed to connect to FTP Server x.x.x.x:21"

In such issue open wp-config.php file into Wordpress root installation folder and add below code.

Quotedefine('FS_METHOD', 'direct');

After that it won't ask for FTP hostname, username, and password.

That's it  :)