PHPMyAdmin on wrong port
Posted by: kiernan7 (---.socal.res.rr.com)
Date: March 16, 2016 07:58PM

I have changed both the "listen" and server name in my Apache httpd.conf toconfused smileyerverName localhost:127.0.0.1:8080 (because I also use IIS on this machine and yes, that's the port, not 1.1).

However, when I bring up PHPMyAdmin from the WAMP server, it still always goes to simply "localhost" instead of "localhost:8080." I can still change it by hand and it works, but it's a pain.

Is there any way to change this or is it hard coded into the WAMP system?

-- John Kiernan, Los Angeles

Options: ReplyQuote
Re: PHPMyAdmin on wrong port
Posted by: Otomatic (Moderator)
Date: March 16, 2016 08:43PM

Hi,

You have modified wrong things.

With Wampserver 3.0.4 there is à tool to change http port everywhere it is needed and also for PhpMyAdmin.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons



Edited 1 time(s). Last edit at 03/16/2016 10:09PM by Otomatic.

Options: ReplyQuote
Re: PHPMyAdmin on wrong port
Posted by: Len_Jacobson (---.hsd1.ca.comcast.net)
Date: March 17, 2016 04:26PM

Please explain how to use the tool to change the HTTP port number everwhere.

Thank you.

Len Jacobson

Options: ReplyQuote
Re: PHPMyAdmin on wrong port
Posted by: Otomatic (Moderator)
Date: March 17, 2016 04:53PM

Hi,

Right-Click Wampmanager Tray Icon -> Tools -> Use a port other than 80

- Enter the desired port : Choose 8080 (Per default), OK

Wait for Wampmanager icon goes green.

That's all.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: PHPMyAdmin on wrong port
Posted by: Len_Jacobson (---.hsd1.ca.comcast.net)
Date: March 17, 2016 05:20PM

Thank you very much for this very quick reply and this simple solution!!

Len Jacobson

Options: ReplyQuote
Re: PHPMyAdmin on wrong port
Posted by: Len_Jacobson (---.hsd1.ca.comcast.net)
Date: March 18, 2016 12:40AM

Unfortunately, I spoke too quickly.

I did exactly as you suggested and entered the default Port No. 8080.

I expected then that if I entered a URL of "<my_test_server_domain_name>" the browser would act as if I had entered the URL "<my_test_server_domain_name>:8080".

But it doesn't. I still find that I must enter the ":8080" following the domain name.

In my 'httpd.conf' file I have a section that reads:

Listen 0.0.0.0:8080
Listen [::0]:8080

Is that a mistake? Should it have been left as the default as follows?

Listen 0.0.0.0:80
Listen [::0]:80

Thanks again.

Len Jacobson

Options: ReplyQuote
Re: PHPMyAdmin on wrong port
Posted by: Otomatic (Moderator)
Date: March 18, 2016 09:44AM

Hi,

The default port of the http protocol is 80.
In all Http transactions, if we do not specify the port number this is port 80.
If for some reason you change the port, for example by 8080, in all HTTP transactions, you MUST add this port number.

Quote
Len_Jacobson
In my 'httpd.conf' file I have a section that reads:
Listen 0.0.0.0:8080
Listen [::0]:8080
Is that a mistake? Should it have been left as the default as follows?
You should know what you want!
Want to change the http port by 8080 it is mandatory to tell Apache to listen on that port.

So in all url will need to specify the port of Apache, which is no longer the default port. It will always be: (http://mysite:8080/) There is no to do otherwise.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: PHPMyAdmin on wrong port
Posted by: kiernan7 (---.socal.res.rr.com)
Date: March 23, 2016 07:36PM

I do not seem to have this. When I right click the Wampserver icon in my tray, I get:

About
Refresh
Help
Language > (sub-menu)
Exit

I am using the Wampserver Windows edition.

Options: ReplyQuote
Re: PHPMyAdmin on wrong port
Posted by: Otomatic (Moderator)
Date: March 23, 2016 07:55PM

Hi,

All Wampserver versions are for Windows.

The Tools item is with Wampserver 3.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: PHPMyAdmin on wrong port
Posted by: kiernan7 (---.socal.res.rr.com)
Date: March 23, 2016 10:43PM

Is there any way to set the port to 8080 in WAMP. Again, the system works fine already at 8080, but when you choose PHPMyAdmin, it goes to localhost instead of localhost:8080

Thanks in advance!

-- John

Options: ReplyQuote
Re: PHPMyAdmin on wrong port
Posted by: RiggsFolly (Moderator)
Date: March 24, 2016 01:26AM

Hi John,

Please start your own thread. Begin by answering these questions READ BEFORE YOU ASK A QUESTION

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: PHPMyAdmin on wrong port
Posted by: kiernan7 (---.socal.res.rr.com)
Date: March 24, 2016 06:01PM

Dear Riggs -
This ***is*** my own thread! It got hijacked by others who were NOT ANSWERING MY ORIGINAL QUESTION.

I have Wampserver 2 and I have moved the port to 8080 (works fine), yet whenever I launch PHPMyAdmin, it launches on Port 80. How do I fix this?

-- John Kiernan (originator of the thread)

Options: ReplyQuote
Re: PHPMyAdmin on wrong port
Posted by: Otomatic (Moderator)
Date: March 24, 2016 07:14PM

Hi,

You have to add :8080 to the link that launch PhpMyAdmin in index.php file.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: PHPMyAdmin on wrong port
Posted by: kiernan7 (---.socal.res.rr.com)
Date: April 01, 2016 12:22AM

Sorry, but I have looked at and attempted to change any reference to PHPMyAdmin in the index.php of both the \www and the PHPMyAdmin and this doesn't seem to work.

Am I doing something wrong?

TIA...

-- John

Options: ReplyQuote
Re: PHPMyAdmin on wrong port
Posted by: RiggsFolly (Moderator)
Date: April 01, 2016 12:27AM

Why dont you install MySQL Workbench and use that instead of phpMyAdmin.

It's 10 times better and you could forget about trying and failing to mod WAMPServer

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.