Installing WordPress is easy but when you do in the usual way it's a really long process, where you have to interact with several windows, applications, you know: downloads the latest version, decompress it on your computer, open the ftp client to upload it, create the database in your hosting panel, edit the wp- file config.php with a text editor, and then return to the browser to start the installation of the system.
But there is a faster method in which you do not leave a single window, and if you hurry me, it's more effective. All you need is access to your server from Shell SSH and from the window of Command Terminal you can do everything. Also, you know that the terminal remembers the commands so it's not that complicated. What's more, if you use the Mac OS X Terminal you can even drag and drop the commands from this same tutorial to streamline the process.
Let's go …
1. Connect by SSH
First of all is open the command interface . If you are in Mac OS X simply type "terminal" in Spotlight and run the application, if you are in Windows better download the application Putty . Once the terminal window is open, connect to your server using the SSH protocol :
ssh user @ mydomain . com
Change " user " by your SSH username and " mydomain.com " by the domain name of the server to which you want to connect or , if you prefer, the IP address assigned to the server. Press the ENTER key and you will be asked for the password. Enter your SSH password and press ENTER again (you will not see anything on the screen while typing). If you have not made a mistake in any data you will be in a moment inside your remote server.
Note: the user data usually coincide with your FTP username and the password will be provided by your hosting provider or it will be the same one with which you connect to your hosting panel, not to the CPanel or Plesk but to your account in the provider. If you have questions, ask your provider.
The next thing you have to do is go to the folder where your hosting is associated with the domain, where you will install WordPress. Check the absolute path of your server which, in many cases, is usually something like this:
cd /var/ www / vhosts / mydomain . com / httpdocs /
The above route is typical in a server managed with Plesk (the one I use in Mediatemple) if you are going to install WordPress in the public folder. However, this route may vary so check this information in your accommodation panel.
Once you have entered the route, press ENTER and it will show you the ' prompt '. To make sure you're where you wanted to, type the following command:
2. WordPress Download
Once we are sure we have placed in the appropriate folder it is time to download the latest version of WordPress in that directory. Execute the following command to download the file:
wget http : // wordpress.org/latest.zip It will start downloading the file on your server. Once the download is finished, execute the following command to make sure that the zip file with the WordPress distribution is already available:
Now we have to extract the downloaded file, we make it that easy:
This extracts all the files in the current folder. As WordPress comes compressed inside a folder called 'wordpress' we will have to move all the content of the same to the current directory. Let's do it with this simple command:
With this command we copy all the files and folders, and the files contained in the folders, from the folder ' wordpress ' to the current directory, in our case ' httpdocs '. The option " r " is what gets the files included in each folder to be copied, and the option " f " forces to overwrite existing files, if any.
Of course, you can use this command ( cp ) to update an existing version, only in that case you would copy everything except the file ' wp-config.php ' and the folder ' wp-content ', or you can also delete them previously and use the previous command afterwards.
If you opt for the previous deletion you should type the following to delete the file' wp-config.php ] ':
rm /wordpress/wp–config. php
And the following to delete the folder ' wp-content ' and everything it contains without even asking us:
Come on, take yourself a break and we go a little deeper …
Imagine that one of these days gives you to empty the private information of your browser and it turns out that you do not remember the password you used to access the administration of your WordPress Blog. Tremendo no?
Surely you were going to have a hard time without being able to access the control room of your space of expression and communication. Bad experience where there are.
But do not worry, we have a solution here for almost everything, at WordPress Help style . You will be blogging again in 5 minutes if you follow this little tutorial.
You can go back to your blog and enter with the key (the friendly one) that you chose for your user, not the numbers and letters but the that you chose and then encoded.
That's it! . You entered your blog again and I am sure that you now want to write a post about how WordPress Help helped you to continue sharing your experiences and information on the web.