Home » Questions » Computers [ Ask a new question ]

The same XAMPP config works on Windows, but not on Mac OS X

The same XAMPP config works on Windows, but not on Mac OS X

I've been using Xampp on Windows for some time now. I'm trying to set it up on Mac OS X also, so I copied all the configuration, but I can't get virtual hosts to work.

Asked by: Guest | Views: 363
Total answers/comments: 2
Guest [Entry]

"This works on OSX

<VirtualHost *:80>
ServerAdmin apache-consulting@confusionconsultants.com
DocumentRoot ""/dans-data""
ServerName dans-data.localhost
ErrorLog ""logs/dans-data-on-localhost.log""
CustomLog ""logs/dummy-host2.example.com-access_log"" common
</VirtualHost>

so try something similar. Good luck.

Edit: Note that there are several differences, but most notably, the port number. Some of these lines are definitely optional, like the Error and CustomLog lines."
Guest [Entry]

"I beleive you'd have to install either the linux or Mac OSX version of xampp if they have one.

http://www.apachefriendsdotorg/en/xampp-macosx.html seems to be the one.

I don't think the software works platform independently due to the way file structures are set within each operating system. For example, it is hard to define the linux equivalent of C:/xampp/htdocs and /opt/lampp/htdocs (not sure what it is for Mac)."