Im on a macbook with a fresh installation of Lion on which I just installed MAMP 2 from here. The MAMP startup page loads fine.

Next I uncomment this line in httpd.conf

# Virtual hosts
Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf

And then add a few directives in the httpd-vhosts.conf so that it looks like this below.

Now things start going wrong. When I restart MAMP Apache and / or MySQL refuse to start. The MAMP panel becomes very slow to react. I click preferences and that window only opens 1 min later. Any settings I try to change are equally slow, for example changing the MAMP document root, etc.

When I try to edit the conf files with Textedit I'll get error messages saying that something else is trying to edit the file. The file becomes locked, do I want to save anyway? Then I don't have the rights to edit the file.

I have reinstalled MAMP half a dozen times and this keeps happening over and over. All really weird stuff.

Anyone know what could cause this or how I can diagnose things?

#
# Use name-based virtual hosting.
#
NameVirtualHost *:8888

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:8888>
       DocumentRoot "/Users/123/Sites/mysite"
       ServerName www.k.uk
       ServerAlias www.k.uk
       <Directory "/Users/123/Sites/mysite">
              Options -Indexes
               Options FollowSymLinks
               AllowOverride All
       </Directory>
</VirtualHost>

<VirtualHost *:8888>
      DocumentRoot "/Users/123/Sites/mysite"
       ServerName www.k.uk
       ServerAlias *.k.uk
       <Directory "/Users/123/Sites/mysite">
               Options -Indexes
               Options FollowSymLinks
              AllowOverride All
       </Directory>
</VirtualHost>
link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.