Wordpress

Available NS6 and NS7

Maintainer

Stephane de Labrusse at stephdl@de-labrusse.fr

Nethserver-wordpress is a rpm integration to install wordpress from epel

Is this Module helpful to you ? Please consider donating

Installation

First you need to install my repository, see how to do it

then you can install my module

yum install nethserver-wordpress --enablerepo=stephdl

Each time you want to reconfigure the contrib you can do

signal-event nethserver-wordpress-update

Once installed You have to point your browser to the url http://url/wordpress and set all informations needed. Options

Since you installed wordpress from my module and a rpm of EPEL, you cannot upgrade the wordpress version from the admin page, only theme and language can be installed. EPEL upgrade continuously its rpm, so you should be patient a bit or install manually wordpress in a virtualhost and create your mysql database

Usage

You have some db which allows to use specific settings

config show wordpress

wordpress=configuration
   MaxExecutionTime=60
   MemoryLimit=128M
   PostMaxSize=32M
   UploadMaxSize=8M
   WebFilesMod=enabled    #used to allow upgrade files&folder with the backend (enabled/disabled)
   access=public          #You can restrict to your local network or be opened to all (public/private) 
   status=enabled         #you can disabled completely worpdress (enabled/disabled)

* If you want to change something, for example (don't forget M which means megabytes)

  config setprop wordpress UploadMaxSize 10M
  signal-event nethserver-wordpress-update
  • If you want to disallow the upgrade page of theme, translation in the admin area
  config setprop wordpress  WebFilesMod disabled
  signal-event nethserver-wordpress-update

You have also some hidden db :

  • If you want to force all users to renew their authentications each time you do a signal-event (enabled/disabled)
  config setprop wordpress Salt enabled
  signal-event nethserver-wordpress-update
  • If you want to enable the 'Debug' mode of wordpress (enabled/disabled)
  config setprop wordpress Debug enabled
  signal-event nethserver-wordpress-update

* If you want that all themes & plugins can be updated automatically, ennabled by default (enabled/disabled) You cannot upgrade the wordpress version because it comes from a rpm.

to disabled:

  config setprop wordpress AutomaticUpdater disabled
  signal-event nethserver-wordpress-update
  • If you want to use another name instead of 'wordpress' (http://url/wordpress), the older 'wordpress' is not removed

First wordpress store all relative url in its mysql database, you must first change the new url in the admin dashboard

after that on your server you need to adjust the correct url

  config setprop wordpress URL foldername
  signal-event nethserver-wordpress-update

First wordpress store all relative url in its mysql database, you must first change the new url in the admin dashboard

after that on your server you need to adjust the correct url

config setprop wordpress DomainName example.com
signal-event nethserver-wordpress-update

Backup

You might backup wordpress by plenty ways, but generally speaking you must backup /usr/share/wordpress/wp-content and the wordpress mysql database. If you install nethserver-backup-data, then you just need to drop a file in /etc/backup-data.d/ with this content

# vim  /etc/backup-data.d/wordpress.include
/usr/share/wordpress/wp-content

Bugs

Please raise Issues on github