Skip to main content

How to have more than one sites in XAMPP

A simple question friends and colleagues have been asking about lately, was how they can have more than one sites running in their local XAMPP installation.

Its very simple really, XAMPP simulates a webserver called Apache and there is a root file directory in your C:/drive called "c:/xampp/htdocs/" which contains the sites. Each subfolder there is a seperate website. For instance, as you can see in the image below, there are three subfolders there called 1site, 2site and 3site.

If, in each of those subfolders you put in the files of i.e. wordpress or joomla and you go to your browser and hit http://localhost/1site then you will see your site 1, same for http://localhost/2site you will see site 2 and so on.

That was step one, now you need to think about the database ( if there is one needed ). For instance, if site 1 was wordpress and i.e. site 2 was joomla, then you will need to have two databases too in order for each site to have its own ( although you could have both in the same database which is not the right way to go ).

To have more than one databases in XAMPP, you will need to open up your http://localhost/phpmyadmin panel ( which is the database management panel for the local server and for most of the linux-based web servers ) and then go to "Databases" and create a new one. Create as many as your sites so each site can have its own.

When you either run the installation wizard of your wordpress or joomla installation ( whose files will be in c:/xamp/htdocs/1site or /2site e.t.c. ) you will be asked for a database, for each site you will fill in the name of the coresponding database you created in phpmyadmin.

Keep in mind that in XAMPP, you can have as many sites as you like, as many as your computer can contain due to storage ( websites tend to be really small in size, a wordpress plain installation is about 50 Megabytes ).

All of the above apply for XAMPP, LAMPP and xampp for Mac as they all work about the same.

You can download XAMPP here http://www.apachefriends.org/en/xampp-windows.html
Enhanced by Zemanta

Comments

Popular posts from this blog

Enable AMD's Radeon Chill feature for all games.

Since 2014 AMD has been following the tradition of releasing new performance and usability features in their December driver, and 2016 was no exception. Among the myriad of new features and enhancements, was also one that passed almost unnoticed, called Radeon Chill.

Stemming from AMD's acquisition of HiAlgo earlier in 2016, it offers the possibility of huge power and thermal savings while gaming, by monitoring screen movement and adjusting the frame rate accordingly. There is even the claim that it could also reduce response times since the GPU is not occupied with rendering as often.

Its only issue: it's not global, and it's based on a white list of applications to function. But fear not, for we are here. Using a trick as old as operating systems themselves, you can try to make it work with every title. Let's see how to do that.
Step One: Activate Radeon Chill. Doing that is fairly easy. Right click on your desktop and select "Radeon Settings":

Then naviga…

Your first post in your Facebook Page, some simple tips

Many new pages are created on Facebook every day by brands that need to use the network for wither exposure or marketing or both. There are many small businesses that want to use Facebook and need to know about some initial tips to get started with their facebook page.

Facebook page management is no rocket science, but it can lead your brand to either a successful presence or nothing at all, if you don't pay attention to some details. You have to start with the basics. Your every-day process with your page is your posts, information you share on your page and your fans will see. First take a note that not all of your fans will see your post. Let's say you have 1000 fans, only about 10-15% of your fans are expected to actually see that post. What's important here is to make your post appealing so whoever sees it, will be able to engage with it, thus either comment, share or like it.

Take a look at our video for those tips :



Every time a Facebook user likes, share or commen…

Resident Evil 7 no stutter guide for 30 and 60 fps systems

The release of the last Resident Evil game has had us go from indifferent, to cautiously optimistic, to infatuated with one of the best releases in the series; a game on par with the couple of initial classics and the fourth instalment. Capcom decided to drop the third person over-the-shoulder perspective for this one and go with the first person camera, refreshing the whole series in the process. Make no mistake, this is one of the greats, and you owe it to yourself to at least try it out even if you aren't into horror games at all. Unlike other publishers, Capcom has been kind enough to provide a demo of the first hour of the game in Steam. Go ahead and try it.

The game itself is quite well optimized, as it is one of the initial PlayStation VR titles released and that means it has to adhere to specific latency requirements. The good news for PC gamers (sorry, no PC VR yet) is a 60fps target where most older GPUs and systems can have a proper experience. Unfortunately, the game …