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…

[UPDATE] How to move your wordpress site and mysql database from local XAMPP to the web server

Most web developers follow the way of "first local, then on the server" for their website's early development or setup stages in order to gain either speed or freedom in installing pluging and extensions due to servers' permissions for files and folders.

A small problem comes around when you need to move your site from your local environment ( commonly XAMPP ) to your webserver so your website can go "live". This article will let you know the steps you need to follow when it comes to Wordpress and moving if from local to yuor server.

Before we start, you will need to : 1. have the url, username and password of your hosting environment's management panel ( cPanel or Plesk e.t.c. ) and log into it.
2. in your hosting panel, you need to add FTP access to your site, you will need to jot down the IP or domain name ( depending on DNS ), a username and a password
3. you will need to go into your hosting's database management via your management panel, cre…

How to create a simple Facebook page cover photo with Inkscape

Inkscape is a free, open source application via which you can create vectory graphics. You can also use Inkscape to create your facebook page main graphics such as the logo and the cover photo, maybe also some images to highlight and assign as album covers.

In order to create your first Facebook cover photo for your page, first open us inkscape :


Second, go to File-> Document Properties and assign the canvas size to match the Facebook cover photo size in pixels, as below :


Next, you can add a rectangle to your cover and some text, via the tools to your left, the mail tool bar of Inkscape as you can see in the next two images : 
 Once you are done with your cover, you can save it :


Remember that you can save this as png which is something Facebook can "understand" and also it would be wise to save this as "Inkscape SVG" which is a native form of Inkscape file type which you can open again later via Inkscape and be able to edit it. 
Then, you can change your cover…