Install wordpress plugin on the local machine
I am making a site in wordpress, the problem is that as I am new I am testing everything on my local machine, for this I configured apache and installed wordpress.
In /etc/hosts file I configured 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 the Hostname, and I have no idea what it is.
Can anyone me help?
Update
Improved my situation a bit by adding the line
define('FS_METHOD', 'direct');
But he started installing but gave the following error on 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 issue in the folder?
I've tried the following commands in my folder but they didn't 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 permissions for 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
1 answers
You can download the Unzip plugins and put in the folder "wp-content/ plugins/", then just activate direct in the admin panel, or add the next line to wp-config.php
define('FS_METHOD', 'direct');
With this configuration you will also be able to upgrade to Wordpress from the admin panel, without it when there is an update to Wordpress will appear the same form that is now appearing...