The article Build a LAMP Web Server with WordPress published by the Raspberry Pi Foundation contains what we will consider the canonical process for installing a LAMP server with Wordpress on the Raspberry Pi platform.
For this particular Raspberry Pi system, we have already installed the LAMP server compoenents (Apache, PHP, MariaDB) using the default Debian apt package management system too, Aptitude.
On the initial setup for the LAMP components, we also installed the WordPress apt package. While the server seemed to work well enough with very minimal tweaking, our attempts to configure the installed WordPress package led to the entire server configuration breaking — we backed the WordPress configuration out by manually manipulating the /etc/apache2/sites-enabled confiration files, so we are currently left with a working LAMP server but no WordPress.
Our goal for a WordPress installation is to have wordpress installed as the root-level index for a wordpress.localhost.local subdomain.
The sub-domain name mapping should be possible without having an active wordpress package installed on the server, since the sub-domain name mapping is done by Apache when requests are receied at the server.
