Test your code for PHP (in-)compatibility

PHP Upgrades are a pain in the ass but from time to time, it’s desperately needed. For a hobbyist with one or two websites, it’s not that much of a deal to check your code and update, but what if you have hundreds of websites running on your servers? Automated tools would be the better choice.

Luckily there’s PHPCS – the PHP CodeSniffer – to check your code for appliance to a certain set of coding standards.

Continue reading “Test your code for PHP (in-)compatibility”

Downgrade (or upgrade) PHP on OSX

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;

Shell commandcurl -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.

Restore Apache2 service after removal of Server.app

After experimenting with Apples Server.App and removing it (for not really needing it) the built-in Apache was no longer functioning and all I could get out of it was; “Websites are turned off. An administrator can turn them on using the Server application.”

The fix is simple, but finding where to fix, …

Webservices Turned Off

Continue reading “Restore Apache2 service after removal of Server.app”