Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wordpress [2018/05/19 01:59]
Stephane de Labrusse [Installation]
wordpress [2020/04/01 13:28] (current)
Stephane de Labrusse [wordpress-AutoUpdater]
Line 1: Line 1:
 +{{page>​stephdl_donate}}
 +
 ====Wordpress ==== ====Wordpress ====
-<wrap hi>​Available NS6 and NS7</​wrap>​+<wrap hi>​Available ​for NS6 and NS7</​wrap>​
 ====Maintainer==== ====Maintainer====
 Stephane de Labrusse at [[stephdl@de-labrusse.fr]] ​ Stephane de Labrusse at [[stephdl@de-labrusse.fr]] ​
  
-Nethserver-wordpress is a rpm integration to install wordpress from epel+Nethserver-wordpress is a Nethserver-module ​integration-rpm to install ​specific Nethserver settings and **[[https://​wordpress.org|Wordpress]]** ​from the epel repository (enabled by default). 
 + 
 +====wordpress-AutoUpdater==== 
 + 
 +<WRAP center round important 60%> 
 +Beta, please test and provide feedbacks 
 +</​WRAP>​ 
 + 
 + 
 +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|stephdl]]** repository, see [[:​stephdl_repository|this]] page how to enable the repository. 
 + 
 +first you must remove the older wordpress version if installed 
 + 
 +<​file>​ 
 +rpm -e --nodeps nethserver-wordpress wordpress 
 +</​file>​ 
 + 
 +then you can install the nethserver-wordpress module by entering the following on the console: 
 +<​file>​ 
 +yum install nethserver-wordpress-AutoUpdater --enablerepo=stephdl 
 +</​file>​ 
 + 
 +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 :  
 +<​file>​ 
 +signal-event nethserver-wordpress-update 
 +</​file>​ 
  
-**Is this Module helpful to you ? Please consider donating [[https://​mirror.de-labrusse.fr|{{:​paypal_donate.gif}}]] 
-** 
 ==== Installation ==== ==== Installation ====
  
-First you need to install my repository[[:​stephdl_repository|see how to do it]]+<WRAP center round tip 60%> 
 +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 wordpressyou have to install nethserver-wordpress-AutoUpdater 
 +</​WRAP>​
  
-then you can install my module 
-  yum install nethserver-wordpress --enablerepo=stephdl 
  
-Each time you want to reconfigure ​the contrib ​you can do+First you need to install ​the **[[stephdl_repository|stephdl]]** repository, see [[:​stephdl_repository|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   signal-event nethserver-wordpress-update
  
Line 38: Line 73:
      ​UploadMaxSize=8M      ​UploadMaxSize=8M
      ​WebFilesMod=enabled ​   #used to allow upgrade files&​folder with the backend (enabled/​disabled)      ​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) ​      ​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)      ​status=enabled ​        #you can disabled completely worpdress (enabled/​disabled)
Line 71: Line 107:
 </​file>​ </​file>​
   ​   ​
-* If you want that all **themes & plugins** can be updated automatically (enabled/​disabled)+* 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. You cannot upgrade the wordpress version because it comes from a rpm.
 +
 +to disabled: ​
  
 <​file>​ <​file>​
-  config setprop wordpress AutomaticUpdater ​enabled+  config setprop wordpress AutomaticUpdater ​disabled
   signal-event nethserver-wordpress-update   signal-event nethserver-wordpress-update
 </​file>​ </​file>​
Line 111: Line 149:
 /​usr/​share/​wordpress/​wp-content /​usr/​share/​wordpress/​wp-content
 </​file>​ </​file>​
 +
 ====Bugs==== ====Bugs====