Category Archives: mac

Konfigurasi Apache, PHP dan MySQL di OS X 10.8 Mountain Lion

Saya pernah menulis tentang cara menginstall dan konfigurasi Apache, PHP dan MySQL di OS X 10.6 Snow Leopard. Dan dua hari yang lalu saya mengupdate OS saya menjadi OS X 10.8 Mountain Lion. Konfigurasi dapat dilakukan seperti pada tulisan saya tersebut. namun ada sedikit perbedaan.

OS X 10.8 Mountain Lion tidak menyediakan opsi web sharing di dalam System Preferences -> Sharing. Untuk  memulai dan mematikan Apache digunakan perintah “sudo apachectl restart” di terminal.

Konfigurasi agar masing-masing user dapat mempunyai alamat sendiri, misalnya http://localhost/~username/, adalah dengan cara membuat file di dalam folder “/etc/apache2/users/“. File tersebut diberi nama {USERNAME}.conf. Silahkan ganti {USERNAME} dengan username anda. Misalkan username anda adalah stevejobs, maka beri nama file dengan stevejobs.conf. Isi file tersebut adalah:

<Directory “/Users/{USERNAME}/Sites/”>
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>

Ganti {USERNAME} dengan username anda yang sesuai.

Untuk menginstall atau mengaktifkan PHP dan MySQL di OS X 10.8 Mountain Lion sama seperti di OS X 10.6 Snow Leopard. Dapat dilihat di sini.

Dan sekarang installasi telah selesai. Restart apache anda. 🙂

Internet Sharing on OS X 10.8 Mountain Lion

I used to sharing my internet connection from mobile broadband modem via wifi.My Internet Connection is Mobile Broadband Modem –> Macbookpro –> Wifi –> Clients.  In OS X 10.6 Snow Leopard, i just check internet sharing option on System Preferences -> Sharing.  But when i did it in OS X Mountain Lion, DHCP Server didn’t works. Clients failed to obtains IP Address from DHCP Server on Mountain Lion.

Internet Sharing

Internet Sharing

I read from official knowledge base that when i turning internet sharing on, it will starting DHCP server. But in my laptop it’s not started. It is a bug?

So, i set up manual IP Address for wifi connection. And it works!

DHCP with manual address

DHCP with manual address

OS X Mountain Lion 10.8

OS X Mountain lion telah dirilis. User yang menggunakan OS X Snow Leopard (10.6) maupun Lion(10.7) dapat langsung mendownload melalui Mac App Store. Cara yang baru untuk menginstall sebuah sistem operasi. Sampai saat ini belum ada kabar bahwa Apple akan merilis OS X terbaru tersebut dalam media DVD/USB Stick. Jadi pilihan satu-satunya saat ini adalah download langsung secara online.

OS X Mountain Lion

OS X Mountain Lion

Bagi pemilik koneksi yang bagus, mendownload OS X tidak masalah. Namun bagi fakir benwit seperti saya, ini menjadi masalah tersendiri. File installer sebesar 4,35 GB harus didownload dengan kecepatan antara 30-50kBps. Sungguh menyedihkan. Membutuhkan waktu sekitar 30 Jam untuk mendownloadnya.

Updated!

Updated!

Kesan pertama setelah mencoba OS X Mountain Lion ini adalah bingung dengan konsep natural scrolling.. 😀 terbiasa dengan Snow Leopard yang scrollingnya standar. Review lengkap sudah banyak menulis. Salah satunya sampai 24 halaman di sini.

 

 

Free Mac OS X Apps

More than 1 year ago, i’ve bought a macbook pro. Almost all software in my macbook is free software. And now i will make list of them.

1. Social Media

  • Twitter for Mac, is an official twitter client.
  • Adium, is a messenger which support multiple protocol.
2. Development Tools
  • TextWrangler, is a rich text editor, can be downloaded from Mac Apps Store.
  • Sublime Text 2, it’s like TextWrangler, a rich text editor.
  • Netbeans, is a full IDE(Integrated Development Environment)
3. Browser
I’m using Google Chrome as my primary browser, and Firefox for debugging. Yeah, Firebug and Web Developer addons on Firefox is much more better than it’s installed in Chrome. I’ve installed Opera browser, but….never use it.. 😀
4. System Tools
  • BetterTouchTool, maximizing use of touch pad. It’s can give more gesture.
5. Personal
  • Guidance, is a Islamic prayer times application for Mac OS X that plays the Adhan when it is time for prayer.
  • Flux, emm.. ever notice how people texting at night have that eerie blue glow? Or wake up ready to write down the Next Great Idea, and get blinded by your computer screen? Flux can avoid this.

Installing Gammu on Mac OS X Snow Leopard

Gammu on Mac OS X Snow Leopard

Gammu on Mac OS X Snow Leopard

Installing Gammu on Windows or major Linux distribution is very easy. There is binary distribution for it. But on Mac OS X it can make a little pain for end user like me. 😀


I use gammu 1.28. I was try some other newer version of gammu, but cannot compile it. You have to compile it using cmake(www.cmake.org). You can install cmake using binary distribution(dmg) or using brew.

You can read full tutorial installing gammu in here, complete with error solving. But i did not found error on installing gammu and i dont have to recompile it to use with MySQL.

Enable Mod Rewrite on Snow Leopard

After enable Apache and PHP (also installing MySQL) on my macbook, i want to enable mod rewrite (Rewrite engine) .  From wikipedia, Mod rewrite (rewrite engine) described as  software that modifies a web URL‘s appearance (URL rewriting). Rewritten URLs (sometimes known as short, fancy URLs, or search engine friendly – SEF) are used to provide shorter and more relevant-looking links to web pages. The technique adds a degree of separation between the files used to generate a web page and the URL that is presented to the world.

By default, mod rewrite has been enabled. But we need edit some configuration before we can use it.

  1. Go to /etc/apache2/httpd.conf than edit the <Directory /> section. Change AllowOverride to All
        AllowOverride All
  2. Edit /etc/apache2/users/youruser.conf, change to this:
    <Directory "/Users/youruser/Sites/">
    Options Indexes MultiViews FollowSymlinks
    AllowOverride All
     Order allow,deny
     Allow from all
    </Directory>
    
    <Directory "/Users/youruser/Sites/*/">
     Options Indexes MultiViews FollowSymLinks
    </Directory>
  3. Done. 🙂

Apache PHP MySQL on Mac OS X 10.6

By default, Mac OS X come with preinstalled Apache and PHP. But for a while, i’m using XAMPP for Mac in my macbook because in my first time using Mac OS, i don’t know about it.

Yesterday, i tried to using preinstalled Apache and PHP, also adding MySQL. For enable Apache, it just take a click. Go to System Preferences -> Sharing
Continue reading