Http //localhost

     

For security reasons, phpMyAdmin is accessible only when using 127.0.0.1 as the hostname. To access it from a remote system, you must create an SSH tunnel that routes requests khổng lồ the Web hệ thống from 127.0.0.1. This implies that you must be able lớn connect lớn your VPS over SSH in order to lớn access these applications remotely.

Bạn đang xem: Http //localhost

IMPORTANT: Before following the steps below, ensure that your Web & database servers are running.

NOTE: The steps below suggest using port 8888 for the SSH tunnel. If this port is already in use by another application on your local machine, replace it with any other port number greater than 1024 và modify the steps below accordingly. Similarly, if you have enabled Varnish (TM) or HTTPS redirection, your stack’s Web VPS might be accessible on port 81 (Varnish (TM)) or port 443 (SSL). In this case, modify the steps below to use ports 81 or 443 respectively instead of port 80 for the tunnel endpoint.

Access phpMyAdmin on Windows

Watch the following đoạn Clip lớn learn how to easily access phpMyAdmin on Windows through an SSH tunnel:

TIP: Refer to these instructions khổng lồ learn how lớn obtain your private key.


In order khổng lồ access phpMyAdmin via SSH tunnel, you need an SSH client. In the instructions below we have selected PuTTY, a không tính phí SSH client for Windows and UNIX platforms. The first step is to lớn configure PuTTY. Find out how khổng lồ configure PuTTY.

Once you have sầu your SSH client correctly configured & you have confirmed that you can successfully access your instance using SSH, you need to create an SSH tunnel in order khổng lồ access phpMyAdmin. Follow these steps:

In the “Connection -> SSH -> Tunnels” section, add a new forwarded port by introducing the following values:

Source port: 8888Destination: localhost:80

Rethành viên that if you are redirecting HTTPhường requests lớn the HTTPS port, you must use destination port 443 instead of 80.

This will create a secure tunnel by forwarding a port (the “destination port”) on the remote hệ thống to lớn a port (the “source port”) on the local host (127.0.0.1 or localhost).

In the “Session” section, save sầu your changes by clicking the “Save” button.

Xem thêm: Cách Diệt Virus Facebook Tự Gửi Link, Nhắn Tin, Cách Xử Lý Như Thế Nào?

Click the “Open” button lớn open an SSH session to the hệ thống. The SSH session will now include a secure SSH tunnel between the two specified ports.

Access the phpMyAdmin console through the secure SSH tunnel you created, by browsing lớn http://127.0.0.1:8888/phpmyadmin.

Log in to lớn phpMyAdmin by using the following credentials:

Username: rootPassword: application password.Here is an example of what you should see:

If you are unable lớn access phpMyAdmin, verify that the SSH tunnel was created by checking the PuTTY event log (accessible via the “Event Log” menu):

*

Access phpMyAdmin on Linux and macOS

To access the application using your Web browser, create an SSH tunnel, as described below.

xuất hiện a new terminal window on your local system (for example, using “Finder -> Applications -> Utilities -> Terminal” in macOS or the Dash in Ubuntu).

Run the following command to configure the SSH tunnel using the SSH key file. Remember khổng lồ replace KEYFILE with the path to your private key & SERVER-IP. with the public IP address or hostname of your server:

$ ssh -N -L 8888:127.0.0.1:80 -i KEYFILE jdomain.vn
SERVER-IPRethành viên that if you are redirecting HTTPhường requests lớn the HTTPS port, you must use destination port 443 instead of 80.

NOTE: If successful, the above comm& will create an SSH tunnel but will not display any output on the VPS console.

Access the phpMyAdmin console through the secure SSH tunnel you created, by browsing khổng lồ http://127.0.0.1:8888/phpmyadmin.

Log in khổng lồ phpMyAdmin by using the following credentials:

Username: rootPassword: application password.

Here is an example of what you should see:


Chuyên mục: Domain Hosting