Tag Archives: xampp

XAMPP and virtual hosts on Mac

Do virtual hosts work on your XAMPP?

In my case they didn’t. What I mean when tell you this is that every simple technique I tried to setup a simple virtual hosts was completely non sense. They simply didn’t work out.

Did you managed to setup everything?

It appears so! Everything was OK. The /etc/hosts file, the httpd-vhosts.conf and the httpd.conf.

Something really important was missing …

Simply to uncomment the following line:

Include /Applications/xampp/etc/extra/httpd-vhosts.conf

Now everything’s working like a charm! After fixing this I start to realize that this problem is not Mac specific, but however …

Connect MySQL from Zend Server CE trough unix socket!

First of all, let me introduce you to my case. I’m working on a Mac with both Xampp and Zend Server CE. Both have separate MySQL servers installed from their default installation on my machine. Both have their separate phpMyAdmins.

The one thing I couldn’t find in the man page of Zend Server CE is how to I access this MySQL server installation from my PHP scripts.

The answer is quite simple – trough UNIX socket. The ZS CE default db socket is:

/usr/local/zend/mysql/tmp/mysql.sock

and yet again let me say that this is for Mac.