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
Can you tell me what part of the file I add this line to? And then I need to restart something, like apache?
– Marcius Leandro
can paste right on the line after the beginning of the php tag (<? php)
– António Campos
can you help me? I did an update on my question not installing yet.
– Marcius Leandro
Confirm that apache is running with user www-data... and only for Apache try to install plugin with 777 permissions in wp-content folder.
– António Campos
It didn’t work I tried to give the same permission to all subdirectories.
– Marcius Leandro
sudo find /var/www/wordpress/ -type d -exec chmod 755 {} ; sudo find /var/www/wordpress/ -type f -exec chmod 644 {} ;
– António Campos
Just change the path to your Wordpress installation
– António Campos
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?– Marcius Leandro
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/– António Campos
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;
– Marcius Leandro
confirms that there is only one folder.... for example if the plugin is called
exemplo/
has to staywp-content/plugins/exemplo/
can’t staywp-content/plugins/exemplo/exemplo/
– António Campos
Let’s go continue this discussion in chat.
– Marcius Leandro