wordpress


Is this Nethserver module helpful to you?
Please consider donating to the author

Thank you kindly!

2019/03/04 11:32 · HF

Available for NS6 and NS7

Stephane de Labrusse at stephdl@de-labrusse.fr

Nethserver-wordpress is a Nethserver-module integration-rpm to install specific Nethserver settings and Wordpress from the epel repository (enabled by default).

Since NethServer comes with default upstream php5.4 it might be needed (for example for several plugins) to have a version with php7.2 available. Instead of the default install, alternatively you can install a custom package that install rh-php7.2 with wordpress for NethServer.

First you need to install the stephdl repository, see this page how to enable the repository.

first you must remove the older wordpress version if installed

rpm -e --nodeps nethserver-wordpress wordpress

then you can install the nethserver-wordpress module by entering the following on the console:

yum install nethserver-wordpress-AutoUpdater --enablerepo=stephdl

It intends to propose a full compatible replacement of the epel version of wordpress, by installing the php software collection rh-php72 (nethserver-wordpress and wordpress are obsoleted and removed, but the data/mysql DB are not removed) Once installed you can follow the updates by the internal wordpress updater.

When you want to modify a setting by the esmith command line, you have at the end to call :

signal-event nethserver-wordpress-update

The wordpress epel version is blocked to the wordpress-5.1 due to the php limitation of NS7 (php54), if you care to get the last version of wordpress, you have to install nethserver-wordpress-AutoUpdater

First you need to install the stephdl repository, see this page how to enable the repository.

then you can install the nethserver-wordpress module by entering the following on the console:

yum install nethserver-wordpress --enablerepo=stephdl

Each time you you change the db settings you have to update the module by entering:

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)
   Debug=disabled   # used to debug wordpress (disabled/enabled)
   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

* If you want to use a domain name instead of an alias (https://url/wordpress): for example example.com

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

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

Please raise Issues on github