Ask Your Question

wordpress plugin directory

asked 2016-11-08 00:48:57 -0600

floydwilde gravatar image

I am using the Fedora Wordpress package. It works fine. I would like to add the "captcha" plugin. I tried installing the package where it obviously should not go in:


But when I go to the plugin page in the Wordpress administrative interface it does not show up.

I found this bug here:

By googling "wordpress fedora package plugin directory location" and in that bug @remi says:

Auto-update feature is disable on purpose on RPM base installation, where /usr/share/wordpress is read-only.

Uppacking a theme or a plugin in the correct location work as expected.

What he neglects to tell anyone is where that location is? I looked in /usr/share/doc/wordpress for any info about it, and it does not seem to be mentioned. I image something like /var/lib/wordpress/wp-content would be a good location. And possibly I can add that into the Wordpress config somehow, but have not read enough about Wordpress configuration yet. Is there a place where I can put the captcha plugin and have this magically work?

edit retag flag offensive close merge delete


When you put the plugin in that directory, did you ensure it has all the proper permissions? Correct user, group, read/write/executable, SELinux labels?

captbrogers gravatar imagecaptbrogers ( 2016-11-08 07:56:57 -0600 )edit

2 Answers

Sort by » oldest newest most voted

answered 2016-11-08 04:16:38 -0600

Aeyoun gravatar image

The default directory if you have installed the wordpress package is \usr\share\wordpress\wp-content\plugins\.

Why don’t you try to install the plugins automatically instead of managing a manual plugin installation?

edit flag offensive delete link more

answered 2016-11-12 01:31:27 -0600

floydwilde gravatar image

updated 2016-11-19 16:42:54 -0600

This is not really an answer, just a long comment with some observations.

The permissions in the directory (which I know should not be used anyway) look correct:

plugins]$ ls -lah
total 16K
drwxrwsr-x. 5 apache ftp    90 Nov  6 00:39 .
drwxr-xr-x. 6 root   root   82 Sep 22 20:15 ..
drwxr-xr-x. 4 root   root  240 Sep 22 20:15 akismet
drwxr-xr-x. 3 root   root 4.0K Nov  6 00:32 bad-behavior
drwxr-xr-x. 8 root   root 4.0K Sep 30 13:40 captcha
-rw-r--r--. 1 root   root 1.9K Sep  8 01:50 hello.php
-rw-r--r--. 1 root   root   28 Jun  5  2014 index.php

Now selinux labels is interesting... I wonder if that is it? I know nothing about that.

To answer the other comment, there is no option to install any plugins available when you browse to the "Plugins" menu item in the left hand column in the administrative page. I think these options are disabled by default, since it's not really supported to install plugins in this way, in the package's /etc/wordpress/wp-config.php

 * See

/* Disable all file change, as RPM base installation are read-only */
define('DISALLOW_FILE_MODS', true);

/* Disable automatic updater, in case you want to allow
   above FILE_MODS for plugins, themes, ... */

/* Core update is always disabled, WP_AUTO_UPDATE_CORE value is ignore */

This is because the package itself should be taking care of these things. Possibly if you want to add a plugin you should package it. Maybe there is some clue in the bad-behaviour plugin on how the plugin should be installed, I'm not sure if I have the initiative to check though. The Akismet plugin is part of the Wordpress package, and probably should have it's own package, there is a bug opened for this:

Possibly trying to package Wordpress is a bad idea in the first place, but I like the idea of letting the package manager (dnf) handle updates. It would make sense to me to expose the plugin directory in the /var directory somewhere. Realistically I'm probably going to move to an Ansible based setup in the future:

BUT I think the package has potential, It provides the basic functionality and is being kept up to date. I've tracked it for at least a year and updates have applied smoothly.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-11-08 00:48:57 -0600

Seen: 942 times

Last updated: Nov 19 '16