19 12 / 2011
Setting Virtual domain with XAMPP for mac
Sudo Edit the file /Applications/XAMPP/etc/extra/httpd-vhosts.conf
Refer to the examples in the file.
Insert Include conf/extra/httpd-vhosts.conf into
/Applications/XAMPP/etc/httpd.conf
Edit /etc/hosts and insert an entry for your doman that points to 127.0.0.1
Edit: For Lion users, add ::1 for every localhost domain that you have. This will speed things up a lot!
source: http://stackoverflow.com/questions/6841421/mac-osx-lion-dns-lookup-order
127.0.0.1 localhost
::1 localhost
Have to create a localhost domain when you are using virtual domains.
This is the default:
<VirtualHost *:80>
DocumentRoot "/Applications/XAMPP/htdocs"
ServerName localhost
ErrorLog "logs/error_log"
CustomLog "logs/access_log" common
<Directory "/Applications/XAMPP/htdocs">
Options -Indexes FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Permalink 9 notes
08 12 / 2011
Installing xdebug with XAMPP on Mac
Follow instructions from http://xdebug.org/find-binary.php to get the correct version of xdebug.
However, compile it with 32bit else you will find yourself trapped with wrong architecture error.
./configure --enable-xdebug --with-php-config=/Applications/XAMPP/xamppfiles/bin/php-config
CFLAGS="-arch i386 $CFLAGS" CCFLAGS="-arch i386 $CCFLAGS"
CXXFLAGS="-arch i386 $CXXFLAGS" LDFLAGS="-arch i386 $LDFLAGS"
source: http://blog.laaz.org/tech/2010/08/27/xdebug-with-xampp-on-mac-os-x/
Permalink 2 notes