Being sick of the music selection in my car the other day I decided I needed for fresh blood. But not being motivated enough to replace the car stereo with one that has an auxiliary input. I tried to simply burn a few mp3 files onto a blank CD. Dragging…
Read MoreInstalling Safari on Linux Mint 15
Cross browser testing your sites is unfortunately a necessary evil. Installing virtual machines with the required browsers installed is one way to test your code. But a lot of the time I don’t want to wait for a VM to boot just to quickly test something. In this article I…
Read MoreTracing Email Sending PHP Scripts On Servers
It happens sometimes, a server you are responsible for seems to be sending out spammy emails, and its normally caused by legacy or insecure code. The mail log indicates there are plenty of potential spam messages going out that are originating locally but most Linux servers host a lot of…
Read MoreCommand Line Tips: Program Execution
Executing commands is an integral part of using any Linux system. To follow up on my post about navigating file systems from the command line ( Linux Tips: File & Directory Handling ) more effectively, I am I have picked up over the years. Discovering What Shell You Are In…
Read MoreLinux Tips: File & Directory Handling
My desktop and all of the servers I own are Linux or Unix based. So as a result I tend to find myself in a terminal navigating file systems and working with files more often than not. Command line file management allows you to wield crazy amounts of power but…
Read MoreDeleting all mail for a local server account
It happens, cron jobs can and will go wrong occasionally and when they do, they love to send alerts to the job’s owner hoping for a little attention. An alias can always be added to the /etc/alias file directing all of the mail for an address to to /dev/null but…
Read MoreNginx: Locking Down The WordPress Backend By IP Address
I recently looked at the server logs for a new site that had just launched and noticed alot of hits by random IP addresses being made to the WordPress login script. Similar to the excerpt below: [codesyntax lang=”text”] 182.18.209.4 – – [10/Jun/2013:07:33:26 -0400] “POST /wp-login.php HTTP/1.1” 200 4807 “drinknycity.com/wp-login.php” “Mozilla/5.0…
Read MoreChanging the web root of a cPanel acccount
As a rule I try to avoid cPanel for hosting sites, I find the overhead of the control panel and the limited flexibility too confining for all but the simplest of sites. Occasionally though I need to deploy sites at work though to cPanel servers due to client requirements. The…
Read MoreExecuting PHP Code Server Side In .html Files
On a recent project we needed to provide a client our contribution to the site code base as static .html files. To make the development process easier though a number of the developers wanted to include some of the global page assets such as the header and footer using PHP…
Read MoreMirroring a website with wget
Clueless clients and bad briefs can make a developers life very difficult at times so sometimes it comes in handy to be able to replicate a site in its entirety to review. Rsync could be used to mirror the files to a local location but it doesn’t really fit this…
Read More