Install wordpress plugin on local machine

Asked

Viewed 450 times

0

I am making a site in wordpress, the problem is that as I am new I am testing everything in my local machine, for this I configured apache and installed wordpress.

in the file /etc/hosts 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 he asks me the Hostname, and I have no idea which is.

Can someone help me?

UPDATE

improved a little 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 some permission issue in folder?

I have tried the following command in my folder but it 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 permissions to 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 answer

2


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

define('FS_METHOD', 'direct');

With this setting will also manage to upgrade to Wordpress by admin panel, without it when there is upgrade to Wordpress will appear the same form that is now appearing...

  • Can you tell me what part of the file I add this line to? And then I need to restart something, like apache?

  • 1

    can paste right on the line after the beginning of the php tag (<? php)

  • can you help me? I did an update on my question not installing yet.

  • Confirm that apache is running with user www-data... and only for Apache try to install plugin with 777 permissions in wp-content folder.

  • It didn’t work I tried to give the same permission to all subdirectories.

  • sudo find /var/www/wordpress/ -type d -exec chmod 755 {} ; sudo find /var/www/wordpress/ -type f -exec chmod 644 {} ;

  • Just change the path to your Wordpress installation

  • when I did this command there that he began to complain of permission, is that are not other definitions of this type define('FS_METHOD', 'direct') that are missing?

  • I know it’s not good practice at all but try to do chmod 777 -R CaminhoParaSeuWordpress/wp-content/plugins to see if it stays... as is your testing system and not to waste more time with it can install the plugin manually... download the plugin decompress and paste in the wp-content/plugins folder/

  • so I did that I downloaded the plugin decomposed and pasted the entire folder inside the plugins folder. But I don’t see my plugin in the list;

  • confirms that there is only one folder.... for example if the plugin is called exemplo/ has to stay wp-content/plugins/exemplo/ can’t stay wp-content/plugins/exemplo/exemplo/

Show 7 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.