Mamp pro total max virutal hosts8/12/2023 ![]() ![]() While most tutorials on how to set up Vagrant / VVV show how clearly easy it is, my experience was anything but… I followed along installing the necessary components and ran my first Vagrant up – and nothing. But matching dev environments is the first reason on most Why Vagrant articles, and I just took it away. MAMP doesn’t allow for much configuration either, so perhaps this is a draw. As long as the server is hitting the WordPress minimum requirements, maybe it doesn’t matter. I still to this day don’t know if a site would run differently on PHP 5.5 vs 5.6. The differences between environments never actually crossed my mind, because it never seemed to actually matter. Perhaps I should have, but every WordPress site I’ve built has worked fine no matter what production environment they ended up in. It also comes with the ability to alter that configuration, but I never took the time to do so. VVV is a Vagrant configuration specifically designed for WordPress and comes with a default configuration. In practice, however, I don’t really need this. One of the most compelling arguments for switching to Vagrant is that it allows a developer to set up a virtual environment that matches exactly the final production server configurations. Matching development and production environments Well, a few months ago I switched back to MAMP Pro. But hey, it’s the price of progress I thought. Yes, Vagrant took a long time to launch every morning, and even longer to shut down at night. While the initial setup wasn’t as smooth they said it would be, I was very excited to be learning some new tricks, using the command line, and being part of, well, the cool developer crowd. After (quite a) few initial hiccups, I had a Vagrant environment up and running, with VVV to manage WordPress. My Twitter feed was overflowing with Vagrant awesomeness and tutorials on how to set it up. Quite a few influential developers were making the switch. At the time it was the trendy thing to do, and still is I’d presume. Like a lot of folks, a few years back I switched my local WordPress development environment from MAMP Pro to Vagrant / VVV. Especially learning new development tools. Yes, it can be overwhelming, but for me it is also rewarding. New code specifications, design trends, device capabilities, programming languages, API integrations… Wait, did I say rewarding? Can visit my.mamp, but not wordpress.One of the most rewarding things about web development is that it’s always changing. Is there a trick to doing sub-folders for hosts? I really need this as with wordpress, the Base URL is set as wordpress.mu, therefore an IP or a random hostname doesn't work- I need it to be wordpress.mu. I have tried visiting 172.12.123.13/wordpress-mu, but tha IP just points to MAMP/htdocs. Same deal with my.mamp/wordpress-mu in the hosts files AND in the browser. Yet when I visit wordpress.mu nothing happens, it says internet explorer can't display the page. In my hosts file on the WINDOWS part, I add: This is because I edited \etc\hosts to reflect 172.12.123.13 my.mamp, the 172 being my v8net IP. The dummy 'Hello World' file that I created shows up. ![]() Now, when I go to windows, I can access my.mamp just fine. The files for my.mamp are in Users/ME/Sites/my.mamp, and the wordpress mu stuff is in Users/ME/Sites/my.mamp/wordpress-mu. ![]() That all works, and on my mac's browsers I can visit either of these domains. I have changed a whole bunch of stuff in OS X (etc/hosts/, nf) so that my new 'domains' for my MAMP stuff is 'my.mamp' and 'wordpress.mu', running on ports Apache:80 / MySQL:3306. I am trying to access my wordpress mu installation from my windows XP Internet Explorer, which is a sub-folder in my MAMP php files. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |