Wordpress installation on Nethserver (multiple vhosts)

Hi Stephan,
in the meantime I prefer the manual installation into a virtual host.
I have proceeded as follows:
0. Creating Subdomain www.yourdomain.tld

  1. PHP-Installation

     # yum -y install nethserver-httpd-virtualhosts nethserver-mysql
     # yum -y install http://mirror.de-labrusse.fr/NethServer/7/x86_64/nethserver-stephdl-1.1.1-1.ns7.sdl.noarch.rpm
     # yum -y install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
     # yum -y install nethserver-php-scl --enablerepo=stephdl,remi-safe
    
  2. creating a virtual host www.yourdomain.tld

  3. Assignment of the aliases www.yourdomain.tld and yourdomain.tld to your VH

  4. Detailed configuration oh the VH, esp. PHP-Settings

  5. Installation of Maria-DB
    5.1 Check preferences

stephdl-Repo:

[root@ns-srv01 ~]# rpm -qa | grep stephdl
nethserver-stephdl-1.1.3-1.ns7.sdl.noarch
[root@ns-srv01 ~]#

remi Repo:

[root@ns-srv01 ~]# rpm -qa | grep remi-release
remi-release-7.8-1.el7.remi.noarch
[root@ns-srv01 ~]#

PHP-Collection:

[root@ns-srv01 ~]# rpm -qa | grep nethserver-php-scl
nethserver-php-scl-1.3.2-1.ns7.sdl.x86_64
[root@ns-srv01 ~]#

5.2. Installation MariaDB: # yum install -y –enablerepo=stephdl nethserver-rh-mariadb103
5.3 Check Installation:

# scl -l
php56
php70
php71
php72
php73
php74
rh-mariadb103      <<------
rh-php73

5.4 Check Config

# config show rh-mariadb103-mariadb
rh-mariadb103-mariadb=configuration
    LocalNetworkingOnly=no
    MaxAllowedPacket=16M
    TCPPort=3313       <<--- important to remember! 
    access=private
    status=enabled

5.5. Check deamon:

# systemctl list-unit-files | grep mariadb
mariadb.service                               disabled
rh-mariadb103-mariadb.service                 enabled
rh-mariadb103-mariadb@.service                disabled

# ps aux | grep mariadb103
mysql     5506  0.1  1.0 1762864 81936 ?       Ssl  13:44   0:00 /opt/rh/rh-mariadb103/root/usr/libexec/mysqld --basedir=/opt/rh/rh-mariadb103/root/usr
root     22552  0.0  0.0 112812   964 pts/0    S+   13:49   0:00 grep --color=auto mariadb103

5.6 Check log-file

# ls -ls /var/log/rh-mariadb103/mariadb.log
8 -rw-rw---- 1 mysql mysql 6155 Nov 26 13:44 /var/log/rh-mariadb103/mariadb.log
  1. Create DB:
    # mysqladmin103 CREATE dbwordpress
    # mysql103
    MariaDB [(none)]> MariaDB [(none)]> grant all on dbwordpress.* to 'xyzdbadmin01'@'localhost' identified by 'your_db_password';

  2. Install WP
    # cd /var/lib/nethserver/vhost/your-host
    # chown apache:apache /var/lib/nethserver/vhost/your-host
    # wget https://wordpress.org/latest.tar.gz
    # tar -xzf latest.tar.gz
    # mv /wordpress/* /
    # rmdir wordpress/

adjust access rights
# chown -R apache:apache *
# chmod -R o-rwx *

8: Start WP: https://www.yourdomain.tld/wp-admin/
9. insert your credentials and the right DB-Port (127.0.0.01:3313)
10. Create WP-Admin and your WP-site

That’s all and it worked several times in the meantime.
Best regards, Marko

Ps.: don’t forget the LE-Cert for the subdomain