ABN 25 173 915 011 markomedia - web development

markomedia - web development

  • Home
  • Contact
  • Blog

2009 October

  • markomedia
    • 2009
      • October
Share |
  • October 25, 2009

    Snow Leopard Gotchas

    Author
    Marko Tomic

    I recently upgraded to Snow Leopard from 10.5 and everything went relatively smoothly. I was particularly pleased to see extra 13GB of hard drive space.

    However, I noticed a couple of things that I wasn’t so pleased about:

    1. Apache unable to start
    2. PHP disabled
    3. MySQL unable to start

    I’ve already walked a couple of people through this, so if you run into the same problem you can try the following:

    1. For some reason Snow Leopard modified the following file:

    /etc/apache2/extra/httpd-ssl.conf

    I was using a self-signed SSL certificate for one of my local sites, which was stored in my custom “SSL” directory. The path to my SSL cert was specified in httpd-ssl.conf, but after upgrading to Snow Leopard, that path was replaced with the default path:

    SSLCertificateFile "/private/etc/apache2/server.crt"
    SSLCertificateKeyFile "/private/etc/apache2/server.key"

    The default .crt and .key files didn’t exist on my system, hence Apache failed to start. The error I got was:

    Syntax error on line 99 of /private/etc/apache2/extra/httpd-ssl.conf SSLCertificateFile: file '/private/etc/apache2/server.crt' does not exist or is empty

    You actually have to type ‘httpd’ in your terminal window to see those errors.

    2. PHP disabled.  This problem is closely related to the previous one and it is very simple to fix.  In your httpd.conf file uncomment the following line:

    LoadModule php5_module libexec/apache2/libphp5.so

    For some reason Snow Leopard upgrade commented this line out for me.

    3. MySQL unable to start.  This one scared me a little bit as I do all of my development work on my local machine running against a local MySQL database.   I typically start my MySQL server in terminal:

    sudo mysqld -u root

    To my surprise, I go this:

    mysqld: command not found

    The problem was that the following symbolic link was deleted:

    /usr/local/mysql

    mysql symbolic link points to your current version of MySQL install, typically in the same directory. In my case, that directory is here:

    /usr/local/mysql-5.0.45-osx10.4-i686/

    All you need to do is recreate the symbolic link and you should be able to start your MySQL server again. You can create the symbolic link in your terminal window by typing the following:

    sudo ln -s /usr/local/mysql-5.0.45-osx10.4-i686/ mysql

    Note: You need to cd into /usr/local/ before running the command above.

    Top
  • October 12, 2009

    Hello Computer

    Author
    Marko Tomic

    I’ve been thinking about blogging for a few years now and one of the main reasons for my hesitation was the commitment. These days, I feel a lot more settled :) and I feel that I should start contributing to the community, which has been very helpful to me and my professional career.

    For those of you who don’t know me, I come from an engineering background. I graduated from the University of Technology, Sydney in 2003 with a Computer Systems Engineering degree under my belt. I currently work as a Senior Web Applications Developer at Learnosityand I feel very privileged to work in a small team of experts. I occasionally do a bit of work for markomedia when I hear someone say “Hey Marko, I need a Website”.

    I have a strong passion for web technologies and in this blog I will be sharing my web experiences with the world. I specialise in Adobe products, but lately I’ve been embracing open source technologies. My interests in life are quite diverse, but web stuff is probably the only one worth blogging about. Having said that, don’t be surprised if occasionally I blog about a 3 metre shark I came head-to-head with on my regular weekend dive.

    Stay tuned
    Marko

    Top

    Navigation

    • Home
    • Contact
    • Blog

    Archives

    • February 2012
    • January 2012
    • December 2011
    • November 2011
    • October 2011
    • September 2011
    • August 2011
    • July 2011
    • May 2011
    • December 2010
    • October 2010
    • September 2010
    • August 2010
    • July 2010
    • June 2010
    • May 2010
    • April 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009

    From the blog

    • IE6, IE7, IE8, & IE9 on OS X in Virtual Machine

    • opendiff and FileMerge on OS X

    • Bandwidth throttling on OS X

    • bash script useful tips

    • apr_sockaddr_info_get() failed for mydomain.com

    About us

    Marko Tomic - Web professional and an Adobe Certified Expert with over 10 years of commercial experience using variety of technologies.

    Connect

    Facebook icon Twitter icon Email icon RSS icon