-
Recent Posts
- Problems connecting to unix:///var/mysql/mysql.sock
- Using rails and respond_to to include nested data
- Handle different environments with PHP
- MySQL 5.5, Mac OS X and startup item security error
- Rails plugin development using WebMock
- Read more, continue reading, and how to easily fix it using WP
- Windows clients with CUPS and Samba
- Making a Cafe Latté without a “do it all” machine
- Using form_tag and collection_select with Rails3
- Switching coffee and PHP testing
Tags
ajax apache api authentication cakephp coffee configuration cups cxf daily365 design firebug gedit hibernate history java javascript jcs job language linux mac mvc mysql non-tech opensource paginate php plugin projects prototypejs quick tip rails ror ruby samba smashingmag snapopen spring terminal test twitter usability wordpress wpml
Tag Archives: mac
Problems connecting to unix:///var/mysql/mysql.sock
In this post I’ll go through fixing the problems with PHP and connecting to your local mysql install, using “localhost”.
The problems began a while back, with lots of errors in my apache error log saying:
[error] [client ::1] PHP Warning: mysql_connect(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) in …
Continue reading “Problems connecting to unix:///var/mysql/mysql.sock” »
Tagged mac, mysql, osx, php
3 Comments
MySQL 5.5, Mac OS X and startup item security error
A few days ago I got a shiny new macbook at work and I needed to install my dev environment again.
I came across a few problems when installing the new MySQL community server package though, which had been upgraded to 5.5 instead of the 5.1 release I had on my old Mac.
Continue reading “MySQL 5.5, Mac OS X and startup item security error” »
Tagged mac, mysql
2 Comments
Cycle through history in linux/mac terminal
If you are like me, you often use the terminal for… well.. let’s face it, most things. I cannot remember one day, when i’m not bashing the keys in the terminal, trying to find, script or copy my way out …
Continue reading “Cycle through history in linux/mac terminal” »
Fixing symlinks in Mac OS 10 + built in Apache
The other night I was fiddling about with my macbook, trying to setup a “MySQL-Apache-PHP” server on my system. Digging a bit about the system and googling a bit, it seems that the system comes with a built in apache server and php installation.
I thought to myself, why not use the built in server instead of installing a MAMP package?
Anyways, seconds went by and I found the option in the system preferences, turned on “web sharing” and excitedly headed on to localhost. It worked perfectly, now I just needed to set it up as it was on my linux desktop.
The apache’s httpd.conf file is located in the folder: /private/etc/apache2/httpd.conf
(I used textmate to edit the file.)
What I wanted to do was, since I’m the only user on this laptop, I wanted my Sites folder to have a www “folder”, which was a symlink to a folder in my Documents folder. The symlink would then point to the webapp I was currently coding.
Continue reading “Fixing symlinks in Mac OS 10 + built in Apache” »
Tagged apache, configuration, mac
3 Comments