OSX Yosemite comes with PHP 5.5. OSX Mountain Lion comes with PHP 5.3. What if you wanted to run PHP 5.4 on both? Well, you can, with a dead simple installation;
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.4
will install PHP 5.4.
Thanks to The coolest guide on the planet.
[EDIT: nov 6 2017: fixed dead link, added troubleshooting steps below]
Still not seeing the new version?
- The command above should install the old PHP 5 in /usr/local/php5 (which should be user-writable) and also write a new config file in /etc/apache2/other/+php-osx.conf, so please check and see if both exist.
If you installed PHP 7.x, the folder is /usr/local/php7, of course.
apachectl -t -D DUMP_INCLUDES and check if the new config file is loaded (should be /etc/apache2/other/+php-osx.conf)
apachectl configtest and see if any errors occurred
If you can’t get it to work, try alternate methods, like using the even older series of posts on How to set-up and maintain a development environment on osx, OR (even better!) use Local by Flywheel.
Tired of moving back and forth between user accounts just because you need a file from a second or third dropbox account? Sure you can use the web version but with three or more accounts, even that becomes tiresome.
Yeah, I could not think of a better name, but hey, it’s the thought that counts.
Do you want to know how to get more than one Dropbox account in sync on the same user, no switching, no web-apps, just functional? then read on.
Continue reading “Multiple Dropbox accounts – at once – no user switching”
When you work with a group of people on the same projects, the larger the group gets, the more difficult the task of keeping everybody informed. So why not do this automatically? Send an e-mail upon an SVN commit. Here’s how I do it. Continue reading “Sending an email upon SVN-commit”
Mountain Lion killed – or rather: disabled – sendmail by default. Big deal? well, if you need to send mail from PHP in your local development environment, you’ll need to perform these few steps to get it working again.
Continue reading “Sending mail from PHP with Mountain Lion”
[Update november 27th; DiY FusionDrive confirmed!, see last page]
[Update november 9th; Do-it-yourself FusionDrive available!, see last page]
For a change, a regular blog post, not a how-to or a script to share, just some info on a “new” technology “invented” by Apple; Fusion Drive.
First of all; what is it?
Well, that’s a difficult question, since only Apple really knows and there probably isn’t a Mac outside of Apple HQ that runs on it. But based on the information presented by Apple and discussed by many techfora, like arstechnica and ubergizmo, already discussed Fusion Drive in depth and here’s the scuttlebutt;
1. Apple Fusion Drive combines a regular HDD with a fast SSD so files accessed often are available at high speeds, others are on the large capacity storage. All seamless and even so that certain files of one project can be on the SSD (the files you use) and others on the HDD (the documentation). It’s file-based (actually block-based), it’s seamless, it’s automatic. It fits the Apple philosophy perfectly; it’s dead-easy to use. Continue reading “Apple Fusion Drive – What is it and what the *#%@ do we do with it? [CONFIRMED]”
Apache2 is already installed on any Mac and most setups (like MAMP or MacPorts) just ignore the built in Apache and install their own version. Shame. You wouldn’t ignore your own car just and get another one to pull a trailer while your own car can do the job perfectly.
Continue reading “Development WebServer on OSX Lion – HomeBrew/MariaDB/PECL”
When building API-like applications in PHP, one issue will always remain; a high load will eventually slow down everything. To prevent over-loading, anyone will come to the conclusion a cache is needed. The most access calls should be served without recalculating anything to free up CPU-time.
Caching can be done on Disk, in a database (indirectly also Disk-caching), or directly in memory.
To setup MemCache and use this memory-caching-system, read on :)
Continue reading “MemCache – In-memory-caching in PHP”
About ten years ago I was very into PGP-ing my mail. This was when I was in my Windows stage using The Bat! mail client. This stage luckily passed about 6 years ago, you can read about it here, in case you’re interested. After switching to Mac I went searching for an alternative and found a PGPmail plugin for Apple Mail, but I also found a better, Mail-native, way to sign and optionally encrypt e-mail using nothing more that Apple Mail and an S/MIME certificate. This is not very difficult and certainly not new, but for all intents and purposes, I will list the steps to take to generate, install and distribute your certificate. Furthermore, since the iOS 6, S/MIME is supported on your iPhone and iPad (and possibly iPod Touch, I cannot tell, I don’t own one), and I’ll tell you how to install the certificates on those devices as well.
Continue reading “Digitally sign and optionally encrypt your e-mail – also on your iPhone/iPad!”
[Deprecated: for OSX 10.9 and up, please use rba.sh.]
It has been a while since I posted my guides for setting up a local development environment and how to add SSL to this set-up. This setup, among other things, required the use of a hostname-to-ip-management type of software. My choice was VirtualHostX.
Recent events have brought a new temporary colleague to our workforce and he brought in some fresh blood – so to speak (post in Dutch).
Today I have successfully eliminated the need for VirtualHostX – at least, in my development environment.
Continue reading “Use BIND (named) to create a multi-VirtualHost configuration – no more VirtualHostX”
It took me a while and finally found a working, but a bit ugly, solution. Not to bore you with the details, here are the step by step instruction on how to get HTTPS working on your development web server. Please note, this is not a good setup for live web servers, you will have to take security into account if you use this on a publicly available web server. Continue reading “SSL (HTTPS) on your Development WebServer”