Installing PhantomJS on CentOS 5.8 VPS

Start by checking for the current version here: http://phantomjs.org/download.html   Logged in as root on your server, type the following to get the file wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2 Unpack it by using bzip2 -dk phantomjs-1.9.7-linux-x86_64.tar.bz2 And then tar xvf phantomjs-1.9.7-linux-x86_64.tar Copy the phantomjs to … Continued

Setting up .htpasswd

1. Open the .htaccess file of the directory you want to protect and add the following AuthType Basic AuthName “Restricted Area” AuthUserFile /home/path/to/password/.htpasswd require valid-user The AuthUserFile is where you want to store the password. It’s considered good practice to … Continued

php mail() fails on Mac OS X 10.7

To diagnose try this in terminal tail -f /var/log/mail.log you will then see the “failed” messages. So if you are using a dev environment to test mail the problem in most cases seems to be that the big ISP:s are … Continued

Web development environment on the mac

A lot of people like to use MAMP. I still cling to setting things up “by hand” and altering Apples default Apache2 installation to suit my needs. Nevertheless here is a really interesting article about “Setting Up a Killer, Local … Continued

Mac OS 10.6 – getting localhost back

As per usual upgrading your mac means breaking your blood, sweat and tears-based setup of a local development environment. You stand there in the cold, left with the shattered pieces. This great article to solve the problem: http://lisaandroger.com/2009/08/upgrading-to-mac-os-x-10-6-snow-leopard/

php safe mode and drush on Plesk 9.3

I had a terrible time getting my head around this: How the **** do you turn php safe mode off on Plesk 9.3 Ubuntu so that drush can function? The solution is here: http://drupal.org/node/558388 You have to edit the /etc/php5/cli/php.ini … Continued

CFURLWriteDataAndPropertiesToResource -10

If you get the following error while starting/restarting apache, launchctl: CFURLWriteDataAndPropertiesToResource(/System/Library/LaunchDaemons/org.apache.httpd.plist) failed: -10 Make sure you are running the command with super user privilege Example: sudo /usr/sbin/apachectl start Source: http://www.arthurneil.com/weird-errors/launchctl-cfurlwritedataandpropertiestoresourcesystemlibrarylaunchdaemonsorgapachehttpdplist-failed-10