Continuing on this thread, in order to get WordPress and Phpmyadmin to work properly I need to isntall a few additional php libraries, here is a list of packages I installed,
sudo apt install php7.1-bz2 php7.1-common php7.1-curl php7.1-imap php7.1-json php7.1-opcache php7.1-phpdbg php7.1-pspell php7.1-snmp php7.1-sqlite3 php7.1-xmlrpc php7.1-xsl php7.1-zip php7.1-mbstring php7.1-mysql php7.1-gd
There are actually quite a few additional php packages one can install, and therefore it really depends on what php functinoality you need to access. However, I found some useful reference to required modules online. Rremember you can search all available packages using,
sudo apt search php7.1
Once you have installed these php extentions, the should be automatically loaded into the apache config folders, hwover you still need to re-start your apache server to get it to pick up the changes.
To install phpmyadmin simply do,
sudo apt install phpmyadmin
setting up a a public html folder in your home
a useful configuration is to get apache to look into a filder in your home directory for server files. Makes it a lot easier to manage my WordPress installations I am working on. To do this I found out that one need to give access permission to the taret fodler in the apache configuration file, as well as enable a new site.
I created a ‘Sites’ folder in my home director,
then I added the following lines to my apache2 config file
/etc/apache2/apache2.conf, around line 180 of the file, below default folder configurations
Options Indexes FollowSymLinks
Require all granted
replace with your username/home folder name, then I need to create a new site configuration file,
sudo touch /etc/apache2/sites-available/home-<username>.conf
which you can basically copy from the existing
default.conf in the same fodlder, and change the DocumentRoot attribute to point to your public www folder your created,
finally restart your apache2 server.