You can skip the steps of downloading, unzipping, and even the next step of uploading, if you are familiar with SSH. Just use the following steps and you don't have to worry about opening your FTP client. SSH is a network protocol that allows secure command execution between two networked computers. Using SSH can be quicker and easier once you get used to typing commands in a terminal window.
You will need an SSH client to do this. If you have an Apple computer, it will come with a program called Terminal. If you are using Windows, you will have to download Putty, which is available at http://www.chiark.greenend.org.uk/~sgtatham/putty/. These tools allow you to interact with your remote web server and execute commands via your server's command line interface.
1. Log in to your web server using Putty or Terminal. If you are logging in as
root
, this will put you in the/root directory
. If you are logged in under a user account, you will most likely be at/home/YOURUSERNAME
, whereYOURUSERNAME
is the same username you just logged in with.2. Navigate from your home directory to the directory that Apache will be serving the documents from. On many servers, this will be
/var/www/
or/var/www/vhosts/your-domain.com
. If you need to find the document root, you can run this command on the command line:grep -i 'DocumentRoot' httpd.conf
3. Once you know where your document root is, just use the
cd
command to get there:cd /var/www
4. Use
wget
orcurl
to grab thetar.gz
from http://www.Piwik.org.wget
is the more common of the two, but both will work similarly (if you are usingcurl
, just replacewget
withcurl
, in the following command):wget http://builds.piwik.org/latest.tar.gz
5. Now you will want to extract Piwik's files from the archive:
tar -xvwzf latest.tar.gz
6. You can delete the archive file, as you will no longer be needing it:
rm latest.tar.gz
7. You can stop right here if you want your Piwik installation in a folder called
piwik
. If you are running Piwik alongside an active site, putting your Piwik installation in a subfolder is the best choice.8. If you want to move the location of your Piwik folder before you install, instead of browsing to the
piwik
subfolder of your domain or localhost, you can (from your current location at the document root):Rename it or move it to another folder:
mv piwik NEW_FOLDER
Move it to the document root:
mv -r ./piwik/* ./