PHPUnit on OSX10.8
I recently came across the below phpunit error after upgrading to osx10.8 mountain lion. PHP Warning: require_once(File/Iterator/Autoload.php): failed to open stream: No such file or directory in /usr/local/share/pear/PHPUnit/Autoload.php on line 45 PHP Fatal error: require_once(): Failed opening required ‘File/Iterator/Autoload.php’ (include_path=’.:/usr/lib/php/pear’)…
Jenkins setup Git Tutorial (also when not working for Github or BitBucket on Ubuntu)
Jenkins SSH Key sudo su jenkins ssh-keygen -t rsa (pressing return when prompted for a pass phrase) cd ~/.ssh cat id_rsa.pub Git and Jenkin If you get a git clone issues when building (The authenticity of host ‘bitbucket.org) try the following…
Ubuntu VirtualBox with Static IP on Windows Host
Bridge Adapter Go to the virtualbox settings and change the network type to be bridge adapter. Then boot the box. Edit the interface sudo nano /etc/network/interfaces You will find a line saying something like iface eth0 inet dhcp. Replace this…
WordPress Auto Updates without FTP on Ubuntu
I enjoy the wordpress autoupdates or plugins, themes and core however when I moved a blog to an ubuntu server it kept asking me for the ftp details (which I did not have). So after a bit of looking around…
WordPress Plugin For The EU Cookie Law
Below an email I wrote to someone asking about the cookie law and whether there are any WordPress Plugin to solve the issue. Hi Alistair, The cookie law is much more complicated than a simple plugin as there are many…
How to install mcrypt on mac osx10.7 and osx10.6
There a lot of php opensouce software that requires mcrypt and it took me a few hours to get mcrypt installed and working natively on my mac, after reading many many tutorials. I originally tried to go down the homebrew…
mod_rewrite not working on a mac osx
So I recently had an issue of mod_rewrite not working on my mac osx after setting up my vhost and going through my httpd.conf and replacing all “override none” with “override all”. So a couple of things that I learnt:…
Install APC on Mac OSX10.7
Install Command Line Xcode https://developer.apple.com/downloads/index.action# Install homebrew https://github.com/mxcl/homebrew/wiki/installation Install Autoconf brew install autoconf Update Pear Channels sudo pear update-channels Install PCRE brew install pcre Install APC! sudo pecl install apc Add extension=apc.so to the /etc/php.ini file
Install pear on mac OSX10.7
After upgrading to OSX 10.7, I discovered that both PEAR and PECL had gone. After some considerable searching online Ruggero De Pellegrini on Google+, so I’m putting it here for anyone who needs it (including myself when I get a…
PHP How to convert all links to have target blank
I needed to convert all links to have target blank if they didn’t already have it. I was going to go down the str_pos and str_replace etc but DOMCocument is a much quicker and easier route. See below: function addTargetBlankToLinks($html)…
Recent Comments