How To Fix FTP Connection Error on Localhost WordPress

When you install WordPress on localhost there is a problem with the auto-install plugins that leaves you with a screen like the shown below

connection_info_needed

This is because file permissions. So what I found after googling for it is that the easiest way to do it is to make a chmod on this directories:

$ chmod 777 wp-content/
$ chmod 777 wp-content/plugins

And then all you need to do is to add the following 3 lines somewhere near the top of your wp-config.php file:

define( ‘FS_METHOD’, ‘direct’ );
define( ‘FS_CHMOD_DIR’, 0777 );
define( ‘FS_CHMOD_FILE’, 0777 );

Now you should be all set, try to install a plugin and it should fetch the remote file and download it to your wp-content/plugins folder correctly. If you like this article please hit the sharing buttons.

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s