Install wordpress plugin on local machine

0

I'm doing a site in wordpress, the problem is that since I'm new I'm testing everything on my local machine, so I configured apache and installed wordpress.

In the / etc / hosts file I set up my wordpress with the following route:

127.0.0.1       question.com.br question

My problem is that now I want to install my first plugin and I came across the screen where it asks me for Hostname, and I have no idea what it is.

Can anyone help me?

UPDATE

Improved my situation by adding the line

define('FS_METHOD', 'direct');

but it started to install but gave the following error in the output:

Downloading install package from https://downloads.wordpress.org/plugin/profile-builder.2.3.1.zip…

Unpacking the package…

Could not create directory.

Is there a permission problem in the folder?

I already tried the following commands in my folder but they did not work:

maquinha@maquinha-desktop-1 /usr/share $ sudo chown -R www-data:www-data wordpress/
maquinha@maquinha-desktop-1 /usr/share $ sudo chmod -R g+rw wordpress/

This is my exit from the permissions for the command ls -l

-rw-rw-r--  1 www-data www-data   418 Abr  9  2014 index.php
-rw-rw-r--  1 www-data www-data  7210 Nov 22  2014 readme.html
-rw-rw-r--  1 www-data www-data  4892 Abr  9  2014 wp-activate.php
drwxrwxr-x  9 www-data www-data  4096 Fev 22 10:52 wp-admin
-rw-rw-r--  1 www-data www-data   271 Abr  9  2014 wp-blog-header.php
-rw-rw-r--  1 www-data www-data  4795 Abr  9  2014 wp-comments-post.php
-rw-rw-r--  1 www-data www-data  2412 Fev 22 17:11 wp-config.php
-rw-rw-r--  1 www-data www-data  3087 Abr  9  2014 wp-config-sample.php
drwxrwxrwx  4 www-data www-data  4096 Fev 22 10:52 wp-content
-rw-rw-r--  1 www-data www-data  2932 Abr  9  2014 wp-cron.php
drwxrwxr-x 12 www-data www-data  4096 Fev 22 10:52 wp-includes
-rw-rw-r--  1 www-data www-data  2380 Abr  9  2014 wp-links-opml.php
-rw-rw-r--  1 www-data www-data  2359 Abr  9  2014 wp-load.php
-rw-rw-r--  1 www-data www-data 32847 Nov 22  2014 wp-login.php
-rw-rw-r--  1 www-data www-data  8235 Abr  9  2014 wp-mail.php
-rw-rw-r--  1 www-data www-data 10880 Abr  9  2014 wp-settings.php
-rw-rw-r--  1 www-data www-data 25665 Abr  9  2014 wp-signup.php
-rw-rw-r--  1 www-data www-data  4026 Abr  9  2014 wp-trackback.php
-rw-rw-r--  1 www-data www-data  3015 Abr  9  2014 xmlrpc.php

UPDATE2

$ ls -l /usr/share/wordpress/wp-content/plugins/
total 12
drwxr-xr-x 3 www-data www-data 4096 Fev 22 10:52 akismet
-rw-r--r-- 1 www-data www-data   30 Abr  9  2014 index.php
drwxr-xr-x 3 www-data www-data 4096 Fev 22 17:39 miniorange-login-openid
    
asked by anonymous 22.02.2016 / 16:27

1 answer

2

You can download the plugins to unzip and put it in the "wp-content / plugins /" folder, then just activate directly in the admin panel, or add the following line to wp-config.php

define('FS_METHOD', 'direct');

With this configuration you will also be able to upgrade to Wordpress through the admin panel, without it when there is an update to Wordpress will appear the same form that is appearing now ...

    
22.02.2016 / 17:08