Archives for April 2012

Monitor Inbound Email (CentOs)

Firstly log into your server via SSH and type the following command: tail -f /var/log/exim_mainlog To cancel the monitoring press CTRL & Z.

Flush Cache on Mac Computer

Open up Terminal (Applications —> Utilities —> Terminal) and type: dscacheutil -flushcache Then press enter. Then go back to your browser (Safari, Firefox, Chrome or other) and reload the site you’re having trouble with.

SSH Command to access Linux Server

If you’re allowed SSH access to your hosting account the command via programs like Terminal (Mac) or Putty (Windows) is: ssh -l username serverIP Note: replace ‘username’ with your username and ‘serverIP’ with the IP address of your host.

Where is PHP.INI file in Linux?

Usually the PHP.INI file is located in: /usr/local/lib Note: this is the PHP.INI file for your entire server. Some web hosts will allow the usage of account specific PHP.INI files that can over-ride the servers PHP.INI settings.

Delete an entire directory via SSH

Really simple to do, but be careful!  There is no going back once you’ve performed this command. The command: rm -rf YourDirectory Explanation: rm = remove (delete) -r = recursive (all folders, sub folders and files) -f = force (no prompt) Do this at your own peril.  If you’re not sure what you’re doing… STOP!  […]

Welcome

Just getting started, JamesDemetrie.com is going to be a portal for interesting and useful topics. Topics like: Photography, Linux Commands, Geelong Cats and things I’ve learned. Please check back regularly and enjoy!