This document contains the installation instructions for installing PeerCache on the FreeBSD platform. Version 4.x (stable) or 5.x can be used.
This paper tries to be a complete source of information sufficient to perform successful installation of Peercache.
If you find mistakes or inaccuracies on this page please contact your support person at Joltid and we will be happy to help you out and make this document better with your help.
PeerCache RPM installation
Prequisites are apache, mysql server and php. Make sure, your system is subscribed to “Enterprise Linux ES (v. 3 for x86) Extras” channel in RedHat network. If those packages are not already installed, install them:
# up2date httpd mysql-server php-mysql
All needed packages are downloaded and installed with this command.
Start the mysql server:
# service mysqld start
You should secure your mysql server now:
# mysqladmin -u root password 'yourpassword'
Insert the line ‘skip-networking’ to section [mysqld] in /etc/my.cnf and restart the mysql server:
# service mysql restart
Copy the peercache rpm files to your server and install them, you will be asked for the mysql root password during peercache-stats installation:
# rpm -Uvh peercache-1.3-1.i386.rpm # rpm -Uvh peercache-stats-1.3-1.i386.rpm
Copy your license file to /home/peercache/license/
Next, start the peercache and restart apache:
# service peercache start # service httpd restart
PeerCache statistics will be available after 5-10 minutes at http://yourip/cacti user ‘peercache’ and password ‘peercache’, cacti user ‘admin and’ password ‘admin’.
The web password can be changed using htpasswd:
# htpasswd -c /home/peercache/auth.users peercache
And that’s it!