Forcing 64-bit mode when booting OSX 10.6 (Snow Leopard)…

Apple, Macintosh, OSX, osx Server
You all probably know about the trick with holding down 6 and 4 keys on your keyboard to force OSX 10.6 to boot using the 64-bit kernel. What you might not know is that it's temporary and the next time you reboot, you're back to using the 32 bit kernel. Now I can't guarantee that your machine will not catch fire and blow up (just kidding).....but if you know what you're doing and want to have 64-bit kernel goodness all the time you can do the following:sudo vi /Library/Preferences/SystemConfiguration/com.apple.Boot.plistModify the file to make it look like this:<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>Kernel</key><string>mach_kernel</string><key>Kernel Flags</key><string>arch=x86_64</string></dict></plist>basically add "arch=x86_64" (without the quotes) to the line that reads<string></string>That's it....reboot and enjoy Full 64-bitness....to undo this (if something breaks), edit the…
Read More

Where is php.ini under OSX 10.5 (Leopard)…

Apache, osx Server, php
I came across a issue and the solution required a bit of tweaking in php.ini. After looking around my Leopard Server I finally found php.ini.default under /etc directory. After making the changes and restarting apache, I got nothing, zip, zilch. Well after digging around the output of phpinfo<?phpphpinfo ();?>I found that /etc is the expected location of php.ini. So after copying php.ini.default to php.ini and restarting apache everything started working nicely. Lesson learned....By default the php module uses baked-in values, if you need to change something (eg: maximum upload file size) you need to copy php.ini.default to php.ini (in /etc directory). Make the changes to php.ini and restart apache.
Read More