To the OP.. That has happened to me *a lot* , hence i too have literally installed CWP-latest/Centos7 even more than 500 times.. like you.
It is very frustrating, to say the least. when i (or it.) does manage to install correctly, i make a quick backup (using tar)..
then start 'using it', once i get everything set and working (phase #2), i remake the backup, (again using tar).. and keep repeating that.
once it is all updated and 'working', which usually takes hours, if not DAYS to 'figure out'. . i repeat the backup AGAIN.
sometimes storing it on two seperate (external) devices.. i really wish that CWP/Centos would install correctly (the first time).
of course.
I make notes on each step i have to 'fix' as i go along.. ie; MariaDB is never properly setup, etc..
**THE FIX (for mine anyways)**
Has been:
AFTER you install a clean CWP-Latest/Centos7, DO_NOT do a YUM UPDATE.. just yet.
*that seems to have been the 'problem'* . . I setup MariaDB correctly with root login and pass (etc).
(usually not too hard).. check it, log in to it, log out..
THEN Install cwp-el7-latest.sh
SO FAR it has been much easier to configure a working server (doing the CWP_install BEFORE the Yum Update on a new install!)
sorry, but i hope it helps..
Cheers.
X