Installing WordPress from Shell Command Line
If you have shell access, the fastest way to install WordPress is from command line. By doing this, you avoid the hassle of installing WordPress by downloading it manually to your computer and then uploading it to server. It can literally be completed in seconds.
Here are the steps:
- Log into shell window/terminal
- change directory to folder where you want to install WordPress
cd path_to_install_directory Eg: cd /home/austin/wordpress/kuware/public_html
( IMPORTANT: If logged in as root then do this first: sudo -u site_user_name bash Eg: sudo -u kuware )
- Now lets get files:
wget http://wordpress.org/latest.tar.gz ( Gets latest WordPress release archive tar file)
tar xfz latest.tar.gz (Uncompresses the downloaded file)
mv wordpress/* ./ (Moves the WordPress files to current directory)
rmdir ./wordpress/ ( removes empty WordPress directory)
rm -f latest.tar.gz ( removes downloaded tar archive file)
- We recommend using cPanel or other control panel to create a database and user. Do let us know if you want to do this on command line and we will post steps.