One priceless benefit of having a web hosting provider that gives you SSH access to the server is that there’s a wealth of command line tools that can make data management very easy for you. In this post, I’m going to illustrate how you can use some of MySQL’s command line tools to back up (export) and restore (import) your database.
You are currently browsing the archives for posts tagged as SSH.
Any decent Linux-based web hosting service would allow customers to access the server via SSH. SSH is short for Secure Shell. Using SSH, you can access your web hosting server to perform administration as well as file manipulation.
To know if your web hosting provider allows customers to access their servers using SSH, you need to ask the contact person. You would also need an SSH client. If you’re using Windows, I recommend that you download PuTTy.
Do not fear the shell! If you have SSH enabled web hosting, you should use it to upgrade your WordPress installation. Believe it or not, it only consists of a few steps (note that the instructions below assume that WP is installed in
- Login via SSH to your host
- Go to a temporary directory:
- Grab the latest WP archive:
- Extract the archive contents:
tar xzf latest.tar.gz
- You should now see a wordpress directory extracted in the currect location, go in it:
- Copy the default themes to your WP install’s wp-content/themes directory:
cp -R wp-content/themes/* ~/public_html/wp-content/themes/
- Copy the bundled plugins (Hello Dolly and Akismet) to your WP install’s wp-content/plugins directory:
cp -R wp-content/plugins/* ~/public_html/wp-content/plugins/
- Delete the wp-content directory:
rm -rf wp-content/
- Copy all other files and directories of the new version onto the WP installation path (overwriting the older ones):
cp -R * ~/public_html/
To complete the process, run the WP upgrade script at http://yoursite/wp-admin/upgrade.php.
That’s it! Enjoy your upgraded WP!
A huge majority of web hosting companies use Linux servers to host their clients’ web sites. There are plenty of good reasons why Linux is the preferred operating system for a web hosting server, among which are:
- Linux is a stable and secure operating system
- There’s a wide variety of Linux distributions to choose from; including free community supported ones, as well as those which offer support contracts
- Linux supports a huge variety of hardware platforms and devices
- The Linux kernel undergoes a constant improvement and enhancement process
- Linux is open source, thus making the code underlying it probed by thousands of eyeballs dedicated to making it better
One feature that makes Linux servers particularly useful is that you can perform remote administration on it via SSH. SSH is a command line interface that provides a secure and encrypted way of connecting to a remote server.