Historical Post: This article was originally written in 2015. The technology discussed may be outdated or deprecated. Keeping it here for historical reference and to show I’ve been blogging since 2015!
Overview
This guide demonstrates how to quickly install WordPress on an existing LAMP stack (Linux, Apache, MySQL, PHP) using command-line operations.
Installation Steps
1. Switch to Root User
sudo su -2. Download Latest WordPress
cd /tmp && wget http://wordpress.org/latest.tar.gz3. Extract to Web Directory
tar -xvzf latest.tar.gzExtract the WordPress files to your web directory, typically located within /var/www/.
4. Configure WordPress
Within the extracted WordPress directory, locate the wp-config-sample.php file. Create a working copy and edit the configuration:
cp wp-config-sample.php wp-config.php && vim wp-config.phpSummary
This tutorial provides a straightforward approach to deploying WordPress on Linux servers, requiring only a few terminal commands to download, extract, and configure the installation. This method assumes an existing LAMP environment is already operational.