how to run xampp and wamp on your local computer

Many times you phase a problem when you where working on any frameworks and that framework version changed. That newest framwork need updated PHP version. And your recent projects on oldest version. So, If you update your version than you getting many errors. Like, If you are using wordpress 3.2 for a specific project. and PHP version below 5.2 . now, you were using wordpress 4.2 and it’s need to php version ,ore than 5.2 . So, If you update your version than getting many errors. And also WAMP only working on windows platform. And xampp working on multiple. But, you need to install that with correct package.

Avoiding similar kind of problem there is one temporary way. Before install new xampp just changed your current xampp folder name. But this is not a ideal solution.

how-to-run-xampp-and-wamp-on-your-local-computer
How-to-run-xampp-and-wamp-on-your-local-computer-problem-solved

Solving the problem how to run xampp and wamp on your local computer or server in network by globally , need to follow simple step.

Here, I am going to write all steps.

Step 1 : Install XAMPP on your machine.

How to inatall XAMPP on local machine

Step 2: Close the XAMPP.

Closing XAMPP to avoid collision between XAMPP and WAMP.

Step 3 : After installing XAMPP, install WAMP.

Install WAMP with default settings and options. You can install WAMP in any directory.

Step 4 : Now run WAMP for test.

Open your browser and write Localhost in url. You will find below screen.

Step 5 : Following steps for avoiding collision between XAMPP and WAMP.

This is a magic trick to run xampp and wamp on your local computer or server in network. It’s just changing your PORT for the WAMP apache server and mysql.

Step 6 : Changing PORT for WAMP apache server and mysql
By default apache listen on port 80 for the browsers and mysql listen on port 3306. Now, you need to change PORT no for apache and mysql for WAMPP. It’s need to do small change in http.conf file.

Step 7 : Changing PORT for WAMP apache server

Change in apache port to open config file. Basically location “C:\wamp\bin\apache\apache*.*.**\conf” where stars are basically the version number.
open config file in notepad OR any editor with administrative permission.
Now, within this file search “Listen 80” and change it with port no “Listen 8081“. We are just changing server listen port address. Now it will listen on port number 8081 instead of 80 port.
After changing server port listen address. Now search “ServerName localhost:80” within this file. It need to change to “ServerName localhost:8081“.

Step 8 : Changing PORT for mysql
You must need to change port no of mysql for WAMP because XAMPP using specific mysql and your basic URL “localhost/phpmyadmin/” same for both WAMP and XAMPP. So, you need to differenciate both mysql.

for changing mysql port open the file location which is like this “C:\wamp\bin\mysql\mysql5.5.24“. open the file “my.ini” and find the line port = 3306 and replace it with port = 3307 this will enable your wamp mysql to access along with xampp mysql due to different port address.

Step 9 : Accessing the wamp mysql from wamp phpmyadmin interface.
whenever we start phpmyadmin, we need to setup which server start first WAMP OR XAMPP. Overcome to this problem we need to make a small change in phpmyadmin interface code.

open file “config.inc.php” at location “C:\wamp\apps\phpmyadmin3.5.1” now phpmyadmin3.5.1 may be different according to your version.

Search two lines :

$cfg[‘Servers’][$i][‘verbose’] = ‘localhost:3306’

;$cfg[‘Servers’][$i][‘host’] = ‘localhost:3306’;

And replace them with

$cfg[‘Servers’][$i][‘verbose’] = ‘localhost:3307’;

$cfg[‘Servers’][$i][‘host’] = ‘localhost:3307’;

It is possible that you see these lines below

$cfg[‘Servers’][$i][‘verbose’] = ‘localhost’;

$cfg[‘Servers’][$i][‘host’] = ‘localhost’;

So still replace them with lines below

$cfg[‘Servers’][$i][‘verbose’] = ‘localhost:3307’;

$cfg[‘Servers’][$i][‘host’] = ‘localhost:3307’;

now when you access the phpmyadmin with wamp you will be accessing the wamp mysql engine

e.g if now you use the following url “localhost:8081/phpmyadmin/” you will access the wamp mysql along with wamp server to access wamp server use “localhost:8081/” and for database connection string you have to use localhost:3307 for all your script from zen,wordpress, laravel, joomla to magento

Let me know, If you have any problem. I am happy to solve it. Happy Coding 🙂

8 thoughts on “how to run xampp and wamp on your local computer

  • May 16, 2016 at 8:42 pm
    Permalink

    Hi, thanks for your info but this is what am seeing on my side and am a little confuse, pls ca you help?:

    Reply
    • May 16, 2016 at 9:42 pm
      Permalink

      Yes, Tell me how can I help you…

      Reply
  • March 2, 2018 at 9:54 pm
    Permalink

    okay, i/m done but i have a question.
    phpmyadmin is not different why? it’s bother

    i can show database both side and same database in both admin.
    reply me.
    thanks..

    Reply
    • March 4, 2018 at 9:36 am
      Permalink

      Phpmyadmin also has to be different. You have to start all services of Xampp/Wamp and disable all services of other one Xampp/Wamp.

      Reply
  • April 5, 2018 at 11:36 am
    Permalink

    i did it but still i have errors, like php5.dll missing and 403 forbidden…

    Reply
    • April 5, 2018 at 10:34 pm
      Permalink

      It’s due to the latest version of PHP dependency missing. You have to add few .dll missing files Or You can install few packages of Visual C++ Redistributable like vc_redist.x64, vc_redist.x86, vcredist_x64, vcredist_x64_4 and after that try to install new xampp / wamp.

      Thanks…

      Reply
      • May 22, 2018 at 10:13 am
        Permalink

        After making all these changes it showing new error.
        Like……
        “This site can’t be reached
        localhost refused to connect.
        Search Google for localhost
        ERR_CONNECTION_REFUSED”
        Please help me to solve the error.

        Reply
        • May 22, 2018 at 10:23 am
          Permalink

          After making all changes, Don’t forgot to restart your Wamp OR Xampp. This error due not running any server.

          Reply

Leave a Reply

Your email address will not be published. Required fields are marked *