Menu

Michael Gracie

Plugging mcrypt into PHP, on Mac OS X El Capitan 10.11

We made our way into the park. Now we do some climbing.

The following instructions are for those a) developing on OS X El Capitan 10.11.X, b) need mcrypt for their PHP development (think PHPMyAdmin, Magento eCommerce or just twisting _RIJNDAEL_256 for shits and giggles), and c) are unwilling to recompile PHP from scratch or run an alternative development package set such as MAMP. Mcrypt will load dynamically with PHP by venturing forth.

Before beginning acquire the following stuff …

1) libmcrypt-2.5.8, which you can find here; download by clicking the one of the two file links (author used “libmcrypt-2.5.8.tar.gz”);

2) PHP 5.5.27 source code, which is available here; [NOTE: you may someday update OS X beyond 10.11, and PHP may get updated along with it; the author used 10.11, and PHP 5.5.27 was included with that OS version. If necessary use php -v to check your version of PHP and then download the PHP source for that version.];

3) Xcode 7.0.1, which you can get from the App Store. You will also need the Command Line Tools (OS X 10.11) for XCode, which you get by selecting “Xcode/Open Developer Tool/More Developer Tools…” from the Xcode menu, then logging into your Apple Developer account (and if you don’t have one of those, get one); and

4) Homebrew (http://brew.sh) which can be installed by typing ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/ install/master/install)" at the command line.

Now we get down to business …

(more…)

NMAP on OS X Update

For anyone still struggling with NMAP on Mac OS X, including but not limited to while following these instructions, please be advised that the latest package, nmap-6.49BETA3, works. And works well.

Zero issues found here, and the Zenmap GUI loads without incident (and quite snappily). Even after installation of OS X 10.10.4, released just yesterday, the world’s finest network security application remains in solid working order.

nmap10104

MG signing off (because that is all, but I’d still follow the previous instructions before re-installation)

Plugging mcrypt into PHP, on Mac OS X Yosemite 10.10

Mavericks rode in on Mountain Lions, but the park ranger at Yosemite wouldn’t let them in. “We need mcrypt” they said, “And we don’t want to recompile PHP!” The ranger handed them a map, and it led them here.

The following instructions are for those a) developing on OS X Yosemite 10.10.X, b) need the capabilities provided by mcrypt during their PHP development (like using PHPMyAdmin or Magento eCommerce), and c) do not want to recompile PHP from scratch or run MAMP. Mcrypt will get loaded dynamically with PHP by following these instructions.

Before you begin, grab the following bits …

1) libmcrypt-2.5.8, which you can find here; download libmcrypt (not mcrypt!), by clicking the link labeled “libmcrypt-2.5.8.tar.gz” on the SourceForge page;

2) PHP 5.5.14 source code, which is available here; NOTE – you may update OS X at some point and PHP may get updated along with it – for the author OS X 10.10 was being run, and PHP 5.5.14 is what’s included with that particular OS version; if necessary use phpinfo() to check your version of PHP and then download the PHP source for that version;

3) Xcode 6.1, which you can get from the App Store. You will also need the Command Line Tools (OS X 10.10) for XCode, which you get by selecting “Xcode/Open Developer Tool/More Developer Tools..” from the Xcode menu, then logging into your Apple Developer account (yes, you need one of those too);

and

4) Homebrew (http://mxcl.github.com/homebrew/) which can be installed by typing ruby -e "$(curl -fsSL https://raw.githubusercontent
.com/Homebrew/install/master/install)" at the command line.

Now for the down and dirty…

(more…)

Direct syncing between OS X and iOS is back with Mavericks 10.9.3

Apple just released an update to OS X, and syncing Contacts and Calendars with iOS locally (i.e. over USB) is back in action. Like the good ole days, just open iTunes, highlight the connected device, and click the Info tab. After you update the operating system of course.

iTunes syncing

For those who might have followed the instructions for syncing with either the OwnCloud or OS X Server workarounds, those directions are now immediately obsolete. However, no matter the approach you used, remember to move Contacts and Calendar items back to On Your Mac or Main, respectively, before removing the WebDAV functionality those posts prescribed.

MG signing off (because it is officially the weekend … almost)

Syncing iOS 7 Calendar and Contacts with Mavericks and OS X Server

 

Getting iOS 7 Calendar and Contacts Syncing Directly With OS X 10.9 Mavericks

OS X Mavericks was provided to Mac users free of charge. When I pushed the upgrade button, all I could think was…

If you’re not paying for something, you’re not the customer; you’re the product being sold.

Sure enough, many users of Mavericks and iPhones/iPads quickly discovered that the Info tab in their iTunes clients had disappeared, and now in order to sync their contact and calendar data between their computers and their phones they had to go the iCloud route. Those who hold corporate information, EU users, and even folks such as I that just loathe the idea of pushing such data onto a server we don’t control were out of luck. Well almost.

I am not suggesting Apple intends on selling any data you push to iCloud, but I am declaring the present state of affairs is certainly a pain in the rear for an enormous number of users fully invested in the Apple ecosystem. Nevertheless, the fact is this issue was a long time coming. Apple has been moving from SyncServices towards a more open set of tools slowly but surely. Now CalDAV and CardDAV rule the roost, and to sync you’ve got to have a networked server in between your devices.

But where to find a server? A big, scary server!?

Focus your gaze directly at your Mac desktop, and then repeat after me…

I am staring at a UNIX Server.

Three times please.

The solution I am providing isn’t particularly elegant, and it does require a little networking know-how, but if you are game you can find the details after the jump. EDITOR’S NOTE: It can’t be that bad, because this author got it all working in under two hours, first time through.

(more…)

Plugging mcrypt into PHP, on Mac OS X Mavericks 10.9

The big cats are gone; the Mavericks are now in charge. But that doesn’t mean the need for mcrypt with your PHP applications requires marching perpetually to the beat of a different drum.

The following instructions are for those a) developing on OS X Mavericks 10.9.X, b) need the capabilities provided by mcrypt during their PHP development (Magento eCommerce comes to mind), and c) do not want to recompile PHP from scratch or run MAMP. Mcrypt will get loaded dynamically with PHP by following these instructions.

(more…)

Unclogging your Mac gone slow

Macs get slower with prolonged use, much like Windows machines. Mac OS X, however, is really just UNIX, so Macs don’t have registries. Hence they are pretty easy to clean up. This tutorial will show you how to make things right on your Mac gone slow, and without spending a dime. Or even a minute of phone time.

You will need the following:

1) Admin access to your machine

2) Onyx, a free software tool you can get here for OS X 10.8. 10.7 users can find a compatible version here.

Get that stuff, then proceed.

First, close every open application1. You can do this by hitting Command-Tab, selecting a running app, hitting Command-Q, and repeating until the only application left is Finder (you can’t quit that). Next, open a Finder window and navigate to Applications/Utilities. Launch Disk Utility.

OS X Disk Utility

Click the Repair Disk Permissions button. The process could take 15 to 20 minutes, so be patient. When it’s done, quit Disk Utility (again Command-Q).

(more…)

Plugging mcrypt into PHP, on Mac OS X Mountain Lion 10.8

Out with the old lion, in with the high altitude cat. Twice again, thanks goes out to previous commenters – this time it’s Mario, Max, and Rob, for the providing the right pieces to the puzzle. Onward…

The following instructions cater to those who a) are developing on OS X Mountain Lion 10.8.X, b) need the capabilities provided by mcrypt during their PHP development (such as installing Magento eCommerce), and c) do not want to completely recompile PHP or run MAMP. You’ll get mcrypt loading dynamically within PHP with these instructions.

(more…)

Plugging mcrypt into PHP, on Mac OS X Lion 10.7

Perfected for the winter cat, now on to the king of the jungle. Once again, thanks goes out to a previous commenter, this time it’s rachanta, for the first test. Now let’s get moving…

The following instructions cater to those who a) are developing on OS X Lion 10.7.X, b) need the capabilities provided by mcrypt during their PHP development, and c) do not want to completely recompile PHP to get there. You’ll get mcrypt loading dynamically for use in PHP with this method.

(more…)