How do I get VirtualHostX, MAMP and the PHP within MAMP to work?
I have virtualhostx working on my MAC with MAMP however it only works with html files. I had PHP working as well before I installed VitualHostX. How can I get them both playing friendly?
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?VirtualHostX shouldn't modify anything PHP related in your MAMP settings. Try disabling PHP in MAMP and then re-enabling it.
-
Well, I'm a novice apache-er I'm not sure how to disable I've just tried stoping and starting MAMP with no success. -
Open the MAMP dialog window, click on "Preferences", then select the "PHP" tab. Switch to PHP4, save your settings. Then re-enable PHP5. -
Inappropriate?I just tried disabling PHP and then re-enabling with no success. I then tried to delete the virtualhsot I created and revert back to my backup file as well as reboot MAMP with no success. My Alias's are still broken, and my main documentroot is not htdocs as it was before. I placed a helloworld.html in there and I just get a 404 error.
I would be happy to troubleshoot this issue as it seems there may be a bug with VirutalHostX but I will need a title more guidance as to what files VHx has changed?
I’m undecided
-
Inappropriate?The first time you run VHX, if it detects MAMP on your system, it asks if you'd like to install MAMP support. If you choose yes, it adds the following line
Include /private/etc/apache2/extra/httpd-vhosts.conf (for Leopard)
-or-
NameVirtualHost *
Include /private/etc/httpd/users/*.conf (for Tiger)
to the file
/Applications/MAMP/conf/apache/httpd.conf
In addition, whether or not you have MAMP installed, VHX creates this file to store your virtual hosts:
/private/etc/apache2/httpd.conf (for Leopard)
-or-
/etc/httpd/httpd.conf (for Tiger)
Now that MAMP is running on port 80, is Apple's built-in Apache server conflicting with it? Make sure "Web Sharing" is turned off in your System Preferences. -
Inappropriate?btw...I'm on OSX Tiger.
I can't seem to find "Web Sharing" in system prefs. I've looked under "Sharing", "Network" and "Security". -
Inappropriate?BINGO! I just disabled "Personal Web Sharing" under "System Prefs>Sharing". Not sure how this got checked off to begin with it wasn't before I installed VirtualHostX? Now to retest all scenarios. :P brb
-
Inappropriate?BINGO! Alias' work without adding localhost to VHX. HTML works. VHX works. and PHP works. Thanks Tyler! Great App!
You may want to investigate why VHX would turn on Personal Web Sharing for MAMP users. but other then that it works like a charm.
I will most likely be purchasing this app as well as others. -
Inappropriate?Great!
Loading Profile...



EMPLOYEE