However, if you don’t back up your file and need a place to start you can visit my GitHub repository Win10-Backup. If you do not back up your hosts file and you manage to mess it up it’s going to be a headache to fix. When you get to the etc folder you will see the hosts file, BACK THIS UP. The next step is to go to C:\Windows\System32\drivers\etc If you type in site1.test or site2.test you will likely get a DNS Error because obviously site1.test isn’t a site and unfortunately, your computer doesn’t know what to do with it besides try to find it online. You will write out the code above twice (or just copy/paste twice) for the second you will just change the site1 parts into site2. # set path on your project folder DocumentRoot “C:/xampp/htdocs/site1” ServerName site1.test DirectoryIndex index.php AllowOverride All Allow from All The code in this image is written out below I’ve taken a screenshot of what this looks like below. As long as you did the default install the path is (on windows) C :\xampp.įrom your xampp folder go to htdocs and create two new folders called site1 and site2. When you are completed you can navigate to your xampp folder. However, Xampp has remained pretty steadfast in the way it does things. Do pay attention to the date I made this though, sometimes things change so if you find this a year in the future and you’re confused that’s probably why. Work through the prompts, everything should be okay on the default. Just go here and choose the platform you’re working on. Installing Xampp should be pretty straight-forward. You’ll also be able to type in site2.test and get your site2 content. Once you turn on Xampp and run Apache (and MySQL if needed) you’ll be able to type into the address bar site1.test and get your site1 content. To ensure clarity, when I am talking about using Xampp for multiple sites I’m saying you will run Xampp on your computer and you will be able to run and access multiple local sites on your computer. But, even Xampp can be a confusing mess when you start out. That’s not to say one day I don’t want to use a different environment, I’m just comfortable with this. These fantastic courses by Nuri Halperin helped me to learn a lot more about MongoDB.As a quick background, I’ve used environments such as Vagrant and while these are fantastic to use I’ve often found myself seeking simpler solutions. Hope you found this tutorial useful in the process of installing and configuring MongoDB on your Windows machine with XAMPP.įor the next step, I recommend checking out the following MongoDB online courses on Pluralsight: Just create connection and you are set to go. Download and install RoboMongoĪs an extra step I would recommend installing MongoDB management tool, such as RoboMongo, (it’s called Robo 3T now) to easily manage MongoDB on your machine. Just in case you need extra help with step 5, here is the entire process explained with images. That is it, you successfully installed MongoDB on Windows and configured it in XAMPP! Install MongoDB on WindowsĪ) Download latest MongoDB server version.ī) Choose custom setup type and install in the C:\mongodb folder.Ĭ) Then create db folder within data folder on the C drive – C:\data\dbĭ) Start MongoDB by executing the following command in the CMD: C:\mongodb\bin\mongod.exe If you don’t see that on your phpinfo page, you did something wrong so try to go back through previous steps.
0 Comments
Leave a Reply. |