What am I missing?
I'm having a problem getting sites to show up after setting up virtual hosts in VirtualHostX. I'm using the latest version (2.0.4). I'm also running MAMP and it is set to use port 80 for Apache and port 3306 for MySQL. In the MAMP preferences, under the Apache tab, I set the document root folder to /Users/myusername/Sites.
In VirtualHostX, I've set up my hosts so that, let's say example.dev points to the local path:
/Users/myusername/Sites/example.com/site
...and under "Advanced Settings" in VirtualHostX, it says port 80.
So here's what's happening. If I type, in this scenario, example.dev into the browser, it's only going to the root folder that I set up in MAMP. There's a default Apple index page in the Sites folder that is showing but it's not mapping to the correct folder. It would seem that something is missing in the configuration in VirtualHostX.
Any help is much appreciated. Perhaps this is an easy fix that I'm just overlooking but I can't figure this one out for some reason. Thanks for the help!
In VirtualHostX, I've set up my hosts so that, let's say example.dev points to the local path:
/Users/myusername/Sites/example.com/site
...and under "Advanced Settings" in VirtualHostX, it says port 80.
So here's what's happening. If I type, in this scenario, example.dev into the browser, it's only going to the root folder that I set up in MAMP. There's a default Apple index page in the Sites folder that is showing but it's not mapping to the correct folder. It would seem that something is missing in the configuration in VirtualHostX.
Any help is much appreciated. Perhaps this is an easy fix that I'm just overlooking but I can't figure this one out for some reason. Thanks for the help!
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The company marked this question as answered.
-
Inappropriate?Hi, Joe.
Have you run the Setup Wizard in VirtualHostX? (It's under the File menu.) If you haven't, run it :-), and then save your changes again in VHX and restart MAMP to be certain everything takes hold. -
Inappropriate?Ok, I just did that but now it's saying server not found in Firefox. After, I ran the setup wizard, I stopped and started the servers in MAMP. What else should I try?
-
Inappropriate?That should definitely have done it. Can you send me a copy of your web server settings to take a look at on my test machine? Choose "Backup Server Settings" from the File menu, and email me the file it creates. (It doesn't send any personal info - just a copy of your Apache/MAMP settings.) Send it to support@clickontyler.com
-
Inappropriate?Ok, I just sent it over. Please let me know what you find.
-
Inappropriate?Thought: If I'm using MAMP, is the following supposed to be uncommented in /private/etc/apache2/httpd.conf ? Because it currently is and I notice that it's also stated in /Applications/MAMP/conf/apache/httpd.conf
NameVirtualHost *:80
Include /private/etc/apache2/extra/httpd-vhosts.conf
Maybe there are some conflicts going on. Are there any other requirements for the file at /private/etc/apache2/httpd.conf when MAMP is being used? (e.g. "make sure PHP5 module is commented out")
Maybe this will help us solve the issue. -
Inappropriate?MAMP operates independently of Apple's built-in Apache setup, so those files won't conflict.
-
Inappropriate?I think I may have figured out the issue. Before I ever used VirtualHostX, I configured MAMP's preferences the way I wanted (ports and document root). Then I ran VHX, did the setup wizard and created a backup under step 1. For step 2, I clicked on "make changes" and then closed out the setup wizard. That didn't seem to work, as previously reported.
After getting stumped for a few days now, I finally thought to double-check the MAMP preferences that I configured before ever running VHX. Sure enough, my preferences (for ports and document root) were reverted back to the defaults for some reason. I set those up again the way I initially did, stopped/started the servers, and that was it. It now works the way it should.
So the takeaway from this is that I think the setup wizard is altering users' MAMP preferences when they get to step 2. Of course, this may be isolated to just me, but it's something to check out. I want to clarify that before I ran the setup wizard, I already selected MAMP as the default web server in VHX's preferences. Maybe that can help to recreate the problem if you're interested in checking it out further.
I’m happy
1 person says
this answers the question
Loading Profile...



EMPLOYEE