Download WordPress directly to web server using Wget
Save time by downloading and unzipping WordPress directly to your web server in less then 30 seconds using just two command lines.
You may wish to download WordPress directly to your web server using Wget (or lynx or another console-based web browser) if you want to avoid FTPing.
Note: you will need to have shell access to your web server, and be comfortable using console-based tools.
GNU Wget (or just Wget, formerly Geturl) is a computer program that retrieves content from web servers, and is part of the GNU Project. Its name is derived from World Wide Web and get. It supports downloading via HTTP, HTTPS, and FTP protocols.
Its features include recursive download, large file downloads, multiple file downloads, conversion of links for offline viewing of local HTML, support for proxies and more.
Raise your hand if you are guilty of the following; visiting WordPress.org, downloading WordPress onto your desktop, unzipping it onto your desktop, launching your FTP program, uploading WordPress to your site from your desktop. Waited until the WordPress install completely uploaded.
With this technique you avoid all those past steps and save time allowing you to get back to what matters most, your project, designing your website, developing your website or anything else. So the next time you want to install WordPress on your server, remember to download and install it from server to server using Wget!
How-to Download WordPress directly to web server using Wget
- Start off by connecting to your server via shell. I use a portable version of a popular telnet and SSH client program called PuTTY (PuTTY Portable available from PortableApps.com)
- Run the following command once connected to your server and within the appropriate directory:
wget http://wordpress.org/latest.tar.gz. This command downloads the latest.tar.gz file onto your server.
- You’ll now need to unzip it using the following command:
tar -xzvf latest.tar.gz.
That’s it! WordPress is now downloaded and unzipped onto your server!