Installing MAMP on Mac OS X Lion is surely an easy way of getting Apache, PHP and MySQL working on your system. If you plan on using MySQL Workbench you will need to do some additional steps.
- Create the missing my.cnf file.
- Open a terminal window.
- Create the file by typing:
sudo touch /etc/my.cnf
- Change the owner of the file to your username:
sudo chown fraki /etc/my.cnf
- Create a new server instance and shown in my previous post: MAMP, MySQL Workbench and WordPress setup guide
- Edit the server instance settings as follows:
- Set the MySQL Server start command to:
- Set the MySQL Server stop command to:
- Set the MySQL Server status command to:
ps xa | grep “/Applications/MAMP/Library/bin/[m]ysqld”
- Configuring MySQL Workbench on OS X Lion with MAMP
Keep checking through the guide for additional configuration.
At some point any Web Developer would need to secure part of a site and therefore require an SSL certificate. There are different options available depending on the use and here is a short post documenting the various options:
Free for Open Source Projects: Some providers are willing to offer free SSL certificates for open-source projects such as GoDaddy.com, obviously some terms and conditions apply which one must read. More details can be found here.
Free with Hosting Plan: Some Web Hosting providers would include a free SSL certificate if you buy a hosting plan. Generally the offer is for the first year with competitive renewal pricing. Just to name a few: HostColor.com, DomainAvenue.com and HostGator.com
Free SSL Community: A growing community called StartSSL are offering an entry level service for free for basic used and limited warranty which might well satisfy your needs and therefore worth a check.
Comparison Charts: If none of the above suits you then you might have to actually buy an SSL certificate, not before doing the appropriate research. WhichSSL is a dedicated site to aid in the selection of the appropriate certificate authority or SSL vendor to choose with the help of a comparison chart. More comparisons can be found in Wikipedia.org and SSLShopper.com. Your research might also payoff by finding some promotional offers and/or discounts.
Self-Signed Certificates for Development: Well if you need a certificate just for development purposes then you can sign one yourself as shown in my previous post.
If you are planning on developing or customizing some web systems such as WordPress or Magento, then at one point you will need some security. You might want to sign the SSL certificate yourself. A number of guides exists for this, for Windows Systems I found the one by Shivprasad Koirala to be very intuitive and for Unix systems the one by Heroku and Scott Baker are best. Here are the steps required:
- Check that openssl is installed by running the following command in a terminal:
- If no such file is found then you need to install. Here are the possible installation methods
- Mac OSX – Via Homebrew: homebrew install openssl
- Windows – Download software package.
- Linux (Debian/Ubuntu Variants) – Guide – sudo apt-get install openssl
- Linux (RedHat Variants) – Guide – yum install openssl
- Generate the keys for the Certificate Authority
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 3650 -key ca.key -out ca.crt
- Generate the private key for your server
openssl genrsa -des3 -out server.key 4096
- Create the certificate signing request to be signed (leave challenge password and organization name empty)
openssl req -new -key server.key -out server.csr
- Sign your certificate
openssl x509 -req -days 3650 -in server.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out server.crt
- Optionally remove the password
openssl rsa -in server.key -out server.key.nopass
For some documentation about how to use openssl check the official site.
Recently I participated in a discussion of a common problem in data modelling. The question is whether to represent parties (groups) as roles or as subtypes (generalisation hierarchy).
When designing the Conceptual Data Model, parties can be represented as subtypes provided there is a common context amongst sub-types. In the Logical Model, subtypes should be represented only if each subtype has a unique concept that the others don’t.
You can read view the LinkedIn discussion here and/or see my Short notes on Barker’s ERD Notation.
Another task that I needed to do after buying my Mac was to get my Web toolkit working. Apache, MySQL and PHP are very conveniently managed by MAMP, WordPress is as straight forward as always. MySQL Workbench required some fine tuning but managed to fix it properly.
Decided to document everything as I went along and prepared a well documented guide with some of my personal recommendations. Hope you will find it useful and as always all feedback is welcome.
MAMP, MySQL Workbench and WordPress setup guide
One of my first tasks I wanted to be able to do after getting my Mac was to be able to remotely connect to my servers and a number of other trusted systems for support. I wanted to try a number of options and my first serious attempt was with TeamViewer.
My Laptop is a Mac, my Home-PC is Ubuntu Linux and my wife uses Windows XP. I installed version 7.0 of TeamViewer on each OS and got remote access in no time. Thought of creating a short guide on the subject even though the application is very self intuitive.
So here is the guide to getting remote access across different Operating Systems using TeamViewer: TeamViewer Guide
One of the first problems I encountered on my Mac was how to manage some external drives using NTFS. After reading a number of blogs, postings and articles I found the one by Sergey Vasilyev to be the best. The following is a quick guide to getting NTFS read/write support on OSX Lion.
- Tuxera MacFuse 2.2: Download Tuxera MacFuse 2.2 from here and install.
- NTFS-3G: Download NTFS-3G from here and install.
- fuse_wait: Update the fuse_wait script by downloading and installing the setup from here.
Next time you connect a storage device with NTFS you should be able to read/write from/to it.
Do note that there are a number of paid alternatives and a more detailed explanation can be found in the original blog of Sergey Vasilyev at http://blog.nolar.info/ntfs-3g-in-mac-os-x-lion-10-7-with-read-write-support/