Installing Wordpress Via Terminal Command
Installing wordpress via terminal is slicker and faster. If you are on Windows, you need to install some dependencies - for Linux and OSX just go ahead and fire up your terminal.
On Windows, download and install the following packages from gnuwin32.
- Wget - Wget for Windows
- Tar - Tar for Windows
- Core Utilities - CoreUtils for Windows
Restart your machine to update yor PATH VARIABLES.
Start you wordpress installation, go to your local server directory.
Create a directory for your project and go to that directory.
mkdir testsite cd testsite
Download the latest wordpress version using the wget
command.
wget http://wordpress.org/latest.tar.gz
Extract downloaded archive file,
tar xfz latest.tar.gz
Move extracted content one directory up then remove unnecessary file
mv wordpress/* ../ rm -rf wordpress rm latest.tar.gz
Wordpress is now downloaded and is ready to be installed. Set-up your database and edit wp-config.php
. Continue wordpress installation on your browser.