Categories
Server

Hackers came along…

There I was, minding my own business… Coding… drinking coffee… and you know… working 🙂 Then some hackers came along and ruined all the fun. Digitalocean were fast to take action and closed all the eth-interfaces on the server and contacted me. Fortunately it’s a redundant setup, so closing down one server didn’t cause any issues for […]

Continue reading

Categories
MySQL Server

Problems connecting to unix:///var/mysql/mysql.sock

In a previous post I talked about MySQL 5.5 and Mac OSX. In this post I’ll go through fixing the problems with PHP and connecting to your local mysql install, using “localhost”. The problems began a while back, with lots of errors in my apache error log saying: [error] [client ::1] PHP Warning: mysql_connect(): [2002] No such […]

Continue reading

Categories
php Server

Handle different environments with PHP

Being both a Rails and PHP developer, I’m often lacking a few things when I’m switching from Rails to PHP. One of the things I miss the most, is the different environments that Rails has, which makes testing, developing, staging and production environments easy.However, I found a way to do this in PHP as well, […]

Continue reading