473,785 Members | 2,736 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to access phpMyAdmin from local and from Internet

I've just installed phpMyAdmin.

If I have the line
$cfg['PmaAbsoluteUri '] = 'http://localhost/php/phpmyadmin';
in my config.inc.php I can login to phpMyAdmin without any problems from my
local machine. But it's not working from the Internet.

To access it from the Internet I have modify the line
$cfg['PmaAbsoluteUri '] = 'http://www.myserver.co m/php/phpmyadmin';

But now I'm not able to access it from the local machine.

Is there any solution for my problem?
Stefan
Jul 17 '05 #1
4 37016
On Fri, 15 Apr 2005 18:00:07 +0200, "Stefan Mueller"
<se************ **@yahoo.com> wrote:
I've just installed phpMyAdmin.

If I have the line
$cfg['PmaAbsoluteUri '] = 'http://localhost/php/phpmyadmin';
in my config.inc.php I can login to phpMyAdmin without any problems from my
local machine. But it's not working from the Internet.


The comment line says...

* In most cases you can leave this variable empty, as the correct
value
* will be detected automatically.

Look further down in 'config.inc.php ' and you'll see several blocks to
populate the $cfg['servers'] array. If you fill in the values for both
your servers, phpMyAdmin will prompt you to choose server.

Paul Brooks
Jul 17 '05 #2
"Stefan Mueller" <se************ **@yahoo.com> wrote in
news:3c******** *****@uni-berlin.de:
I've just installed phpMyAdmin.

If I have the line
$cfg['PmaAbsoluteUri '] = 'http://localhost/php/phpmyadmin';
in my config.inc.php I can login to phpMyAdmin without any problems
from my local machine. But it's not working from the Internet.

To access it from the Internet I have modify the line
$cfg['PmaAbsoluteUri '] = 'http://www.myserver.co m/php/phpmyadmin';

But now I'm not able to access it from the local machine.


If you cannot access an internet address from your local PC, it has a
problem with it's setup. Maybe incorrect DNS? A quick easy fix for
that one hostname is to put the server name/IP in your hosts file, but
if you can't access an internet address, you may have a bigger problem
on that machine. Can you access other internet addresses?

--
Stan McCann "Uncle Pirate" http://stanmccann.us/pirate.html
Webmaster/Computer Center Manager, NMSU at Alamogordo
Coordinator, Tularosa Basin Chapter, ABATE of NM; AMA#758681; COBB
'94 1500 Vulcan (now wrecked) :( http://motorcyclefun.org/Dcp_2068c.jpg
A zest for living must include a willingness to die. - R.A. Heinlein
Jul 17 '05 #3
Yes, you're right. The behavior of my network is somehow strange, but I
can't change it.
If I do a connection from my internal network to an internet address the
traffic goes to my ZyXEL H650i (ADSL Router) and from there to the internet.
Everything works fine.
If you do a connection from the internet to my server with
http://www.myserver.com/php/phpmyadmin
the traffic also goes to my ZyXEL H650i and is NATted there to my internal
server address.
If I do this connection from my internal network the traffic also goes to my
ZyXEL H650i but is not NATted there to my internal server address.
It seems that my ZyXEL H650i can only do NAT for traffic comming from the
internet to my internal network and not if the traffic is comming from the
LAN side with a WAN address.

Stefan

"Uncle Pirate" <Un*********@st anmccann.us> wrote in message
news:Xn******** *************** ***********@216 .234.192.142...
"Stefan Mueller" <se************ **@yahoo.com> wrote in
news:3c******** *****@uni-berlin.de:
I've just installed phpMyAdmin.

If I have the line
$cfg['PmaAbsoluteUri '] = 'http://localhost/php/phpmyadmin';
in my config.inc.php I can login to phpMyAdmin without any problems
from my local machine. But it's not working from the Internet.

To access it from the Internet I have modify the line
$cfg['PmaAbsoluteUri '] = 'http://www.myserver.co m/php/phpmyadmin';

But now I'm not able to access it from the local machine.


If you cannot access an internet address from your local PC, it has a
problem with it's setup. Maybe incorrect DNS? A quick easy fix for
that one hostname is to put the server name/IP in your hosts file, but
if you can't access an internet address, you may have a bigger problem
on that machine. Can you access other internet addresses?

--
Stan McCann "Uncle Pirate" http://stanmccann.us/pirate.html
Webmaster/Computer Center Manager, NMSU at Alamogordo
Coordinator, Tularosa Basin Chapter, ABATE of NM; AMA#758681; COBB
'94 1500 Vulcan (now wrecked) :( http://motorcyclefun.org/Dcp_2068c.jpg
A zest for living must include a willingness to die. - R.A. Heinlein

Jul 17 '05 #4

On Tue, 19 Apr 2005 23:00:57 +0200, "Stefan Mueller"
<se************ **@yahoo.com> wrote:

( Better late than never )
Yes, you're right. The behavior of my network is somehow strange, but I
can't change it.
If I do a connection from my internal network to an internet address the
traffic goes to my ZyXEL H650i (ADSL Router) and from there to the internet.
Everything works fine.
If you do a connection from the internet to my server with
http://www.myserver.com/php/phpmyadmin
the traffic also goes to my ZyXEL H650i and is NATted there to my internal
server address.
If I do this connection from my internal network the traffic also goes to my
ZyXEL H650i but is not NATted there to my internal server address.
It seems that my ZyXEL H650i can only do NAT for traffic comming from the
internet to my internal network and not if the traffic is comming from the
LAN side with a WAN address.
Try:
ip nat loopback on

If it works, try to insert it in the startup script of the
router, so the command will be executed at every power up and
reset:

sys edit autoexec.net
i (=Insert)
<enter> until you see: wan adsl ...etc
ip nat loopback on<enter>
x (=exit and save)
Stefan


Should work on that ZyXEL ..
--
) Kees Nuyt
(
c[_]
Sep 24 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
8127
by: John Lauwers | last post by:
Hi, Can I download a file automatically from internet, Just type the internet adress in a textbox and in another textbox the pad where it will be saved and then push a button so the downloaded file is automatically saved on the computer ? Sorry for my bad English Greets John
0
8600
by: Steffen | last post by:
Hi! I'm trying to access a EntityBean from a servlet via the bean's local home interface. The EJB and the Servlet are together in one .ear file and I'm using JBoss 3.2.3. I think the "<local-jndi-name>" in jboss-web.xml is wrong. But I don't know what to write there. I've searched for examples or other help, but I haven't found anything useful. Thanks for your help in advance!
4
43443
by: barmaley | last post by:
how do I allow access to mySQL from another computer on local network? when I am trying to connect from MySQL Studio on Windows XP, I get error "Host '192.168.0.100' is not allowed to connect to this MySQL server"
1
1257
by: Bob Alston | last post by:
Anyone interested in using an Access database in an internet environment might be interested in reading the summary of my journey in this direction. I tried several web development environments, web site generators and even Access' Data Access Pages. Hopefully this will save you some headaches. http://members.cox.net/tulsaalstons/Documents/Microsoft%20Access%20Developer%20Transition%20to%20Internet.htm Bob
1
1327
by: staeri | last post by:
I have a web application developed in ASP.NET 2.0 with SQL Server 2005. The application is on a hosted server accessible from Internet. I have a potential customer who insists on having the application hosted on their own web server and SQL Server and I'm very worried about someone stealing the application or database. I'm not so worried about their own people doing this, but I know that other suppliers/consultants have access to the...
17
1686
by: GinTon | last post by:
How to access to a variable (that value is not returned) from a module imported? And the variable is set at the module-level. That module is external to my program, it's from another project so I wann't modifying it.
4
4911
by: garyusenet | last post by:
Hi, I am writing a utility to help me in Internet Explorer. How do i access Internet Explorer information. For starters I would like to read the current URL from internet explorer, into a variable in my programme. How do i do this? Thankyou
3
1855
by: tamilnandhu | last post by:
Hi, i installed MySQL in my linux. I want to access this Database from Internet Or from local LAN. So can u pls help, how to do this..? In my linux machine, i use 'mysql -u root -p' to get into MySQL DB. But through nternet or LAN, how to do this..?
2
1794
by: kirk | last post by:
I'd like to programmatically be able to determine if a network interface is currently in "Local Only" or "Local and Internet" access mode. Also I wasn't sure if this is only applicable to Windows Vista? If not possible in C#, maybe netsh can do it?
0
759
by: Muhhammad Fahad | last post by:
I have attached SQL database on internet server and have a static IP address from ISP. now i want to connect Or access this data from VB.6 codes. please guide me about the database cnnection through Vb code. thnx.
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10319
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10087
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9947
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5380
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.