If you are upgrading from previous version, just follow step 1 to 3.
- Unzip the “memcron” folder you just downloaded
- Open “config.cfg” under the “memcron” folder and add in your own API key and name of your PS server
- Upload the “memcron” folder to your server (the location of this folder must be accessible via http)
- Make sure the “logs” directory is writable (
chmod 775if necessary)
- Log into DreamHost panel and go to the Goodies > Cron Jobs
- Add a new cron job
- Put in “perl <path to memcron.pl script>” (e.g. “perl ~username/example.com/memcron/memcron.pl”) as command to be run
- Set the cron job interval as you see fit (default config value assumes cron interval of 5 minutes, to set this, pick “Custom”, “Selected minute” then Ctrl+click to select 00, 05, 10, 15 etc. till 55)
- Make sure the right user is selected (should be the one which you used to upload memcron via FTP, also make sure that user have shell access)
- Apply the settings and wait an hour for memCron to collect sufficient amount of memory usage data
- Open your browser and try to visit the location where you installed memCron (e.g. http://example.com/memcron)
- If everything works properly, you should be able to see the pretty memory graph generated by memCron. Congrats!
Take note that memCron comes with .htaccess file to protect your setting files. If you are not using Apache for your web server, you might want to protect these files yourself just so they can’t be accessed directly via http.