Hi Guys, If you want to change your default port 80 to 90 or whatever then Here’s what I did, Just in case backup anyfiles you have.

First:

Goto your wamp root folder, x:\wamp, then there’s a file called ‘wampserver’ (configuration settings).
OPEN that in notepad and you should see something like this:

[Menu.Left]
Type: separator; Caption: “WAMP5”
Type: item; Caption: “Localhost”; Action: run; FileName: “C:\Program Files\Mozilla Firefox\firefox.exe”; Parameters: “[localhost];; Glyph: 5
Type: item; Caption: “phpMyAdmin”; Action: run; FileName: “C:\Program Files\Mozilla Firefox\firefox.exe”; Parameters: “[localhost];; Glyph: 5
Type: item; Caption: “SQLiteManager”; Action: run; FileName: “C:\Program Files\Mozilla Firefox\firefox.exe”; Parameters: “[localhost];; Glyph: 5
Type: item; Caption: “www directory”; Action: shellexecute; FileName: “E:/wamp/www”; Glyph: 2
Type: submenu; Caption: “Log files”; SubMenu: log_files; Glyph: 3
Type: submenu; Caption: “Config files”; SubMenu: conf_files; Glyph: 3
Type: separator; Caption: “Services”
Type: servicesubmenu; Caption: “Apache”; Service: wampapache; SubMenu: apache
Type: servicesubmenu; Caption: “MySQL”; Service: wampmysqld; SubMenu: MySql
Type: item; Caption: “Start All Services”; Action: multi; Actions: StartAll
Type: item; Caption: “Stop All Services”; Action: multi; Actions: StopAll
Type: item; Caption: “Restart All Services”; Action: multi; Actions: RestartAll

As you can see I alread edited my localhost paths to say “[localhost]; instead of “[localhost];. Do that for each of the three Parameters.

NEXT i went to my phpmyadmin folder, and opened my ‘config.inc.php’ file.

from there you should see something like this:

$cfg[‘PmaAbsoluteUri’] = ‘localhost/phpmyadmin/’;

Quote this out by sorrounding the string above with /* */ LIKE SO:

/* $cfg[‘PmaAbsoluteUri’] = ‘localhost/phpmyadmin/’; */

THEN in the same file, find:

$cfg[‘PmaAbsoluteUri_DisableWarning’] = FALSE;

Change this to TRUE like so:

$cfg[‘PmaAbsoluteUri_DisableWarning’] = TRUE;

Save and close. Then restart your server and try again. Worked for me.

Hope that helps! Remember to backup the files mentioned just in case you want to revert to your old configuration. smiling smiley

also see below link if you are using new version of wamp server

***********************************************************************************

If you are using Apache Version 2.2 or 2.4 then use below steps

Change port 80 to 81 on Wampserver

I assume your server Configuration:
Apache Version: 2.2.
PHP Version:   5.2.6

Now that you have WampServer 2.0 installed, you’ll want to use it along side   with other servers such as IIS. This is easily done by changing the port that   WampServer 2.0 listens to. I suggest changing the port from 80 to 81.

Use Notepad or WordPad to open the files below.

Open the httpd.conf file for the Apache server. On my machine, it’s located   here C:\wamp\bin\apache\apache2.2.8\conf\httpd.conf
Do a search for “Listen   80″and replace it with “Listen 81″.
Save and close the file.

Open the wampmanager.tpl file. On my machine, it’s located here:   C:\wamp\wampmanager.tpl
Do a search for “http://localhost/” and replace it   with “http://localhost:81/” (There are four total).
Do a search for   “${w_testPort80}” and replace it with “${w_testPort81}”.
Save and close the   file.

Open the testPort.php file. On my machine, it’s located here:   C:\wamp\scripts\testPort.php
Do a search for “80″ and replace it with “81″   (There are three total).
Save and close the file.

Open the english.lang file. On my machine, it’s located here:   C:\wamp\lang\english.lang
Do a search for “$w_testPort80 = ‘Test Port 80″;”   and replace it with “$w_testPort81 = “Test Port 81″;.
Save and close the   file.

Right click on the WampServer icon and click on “Exit”.
Restart your   WampServer.

Congratulations! You have now changed your WampServer 2.0 to port 81. All of   your links (localhost, phpMyAdmin, SQLiteManager) are configured to the new port   and you can even test port 81 by going to the Apache Services.
If you found   this helpful (or if you didn’t), please let me know.

***********************************************************************************

Regards,

Krishna

Advertisements