MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: FTP Error - Can't install Wordpress themes.  (Read 2963 times)

0 Members and 1 Guest are viewing this topic.

Offline Rahul Sambre

  • Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
    • View Profile
FTP Error - Can't install Wordpress themes.
« on: January 13, 2017, 02:48:32 AM »
Hello Folks,

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

Quote
Failed 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.

Quote
define('FS_METHOD', 'direct');

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

That's it  :)


MilesWeb Hosting Forum

FTP Error - Can't install Wordpress themes.
« on: January 13, 2017, 02:48:32 AM »