473,395 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

phpMyAdmin Setup

Okay, I've never used phpMyAdmin before but I'm trying to learn.

I've downloaded the .zip file and unzipped it on my Windows box. It
looks like all I have to do now is ftp all the files to the appropriate
directory on my RedHat box, and then just configure a few settings like
hostname, username and password.

I guess I'm not quite clear on the concept of which directory I'm
supposed to ftp the files to. Since it has to run in a web browser, I
presume I'm supposed to ftp the files to:

/var/www/html

or to a new directory I create in this location.

Yes | No?

Explain?

Jul 17 '05 #1
7 6907
> I guess I'm not quite clear on the concept of which directory I'm
supposed to ftp the files to. Since it has to run in a web browser, I
presume I'm supposed to ftp the files to:

/var/www/html

or to a new directory I create in this location.

Yes | No?


I personally upload it to its own directory within the root directory, if
you are using apache I would suggest password protecting the directory as
well otherwise anyone can come along and edit your database
Jul 17 '05 #2
Filth wrote:
I personally upload it to its own directory within the root directory, if
you are using apache I would suggest password protecting the directory as
well otherwise anyone can come along and edit your database


Thanks for replying.

Okay, so I guess

/myadmin

would be a plausible place to load the files, but I might still not
understand unix apache all that well. I was under the impression that,
any files which need to be viewable to a user through a browser *must*
be somewhere within /var/www/html/

IOW if I were to just enter "www.my_registered_url.org:my_httpd_port"
into a browser, when the http request hits my server, the server would
go directly to /var/www/html and look for a file called 'index.html'.

So I guess the part I'm not still clear on is how to access the
phpmyadmin files in /myadmin through a browser...

Jul 17 '05 #3
'bonehead <se*********@here.org> wrote in news:40**************@here.org:
So I guess the part I'm not still clear on is how to access the
phpmyadmin files in /myadmin through a browser...


www.yourdomain.com/myadmin/index.php

assuming you dont have an index.html file. And... as already posted, your
password protection that you WILL add then asks you for password. Also, try
something else other than 'myadmin', as its too easy to guess. Perhaps it
doesnt really matter, but it wont hurt to choose something more unique.

Another option, assuming you have a static IP and Apache/PHP on your home
machine, is to keep the files on your computer and see if you can get your
hosting company to allow it access to the remote database.
Jul 17 '05 #4
www.yourdomain.com/myadmin/index.php

assuming you dont have an index.html file. And... as already posted, your
password protection that you WILL add then asks you for password. Also, try
something else other than 'myadmin', as its too easy to guess. Perhaps it
doesnt really matter, but it wont hurt to choose something more unique.

Another option, assuming you have a static IP and Apache/PHP on your home
machine, is to keep the files on your computer and see if you can get your
hosting company to allow it access to the remote database.


I should clarify that I'm using a RedHat box at home which has apache
and php and mysql all installed on the same machine. I'm just using it
for learning purposes.

Just so I'm clear on this: Let's assume that I've registered
www.mydomain.com to a static IP which comes to my cable router at home,
and the router is configured to send incoming http requests on a
particular port to my RedHat box on my home network. If I fire up a
browser on any machine and point it to:

http://www.mydomain.com:my_port_numb...s/example1.php

when the server gets the http request, isn't the server going to look in

/var/www/html

for a directory called /bookexamples and then look in that directory for
a file called example1.php to return to the requesting host?

Doesn't this mean that if I want to create a directory to hold the
phpMyAdmin files, the directory should be located within /var/www/html
also? Wouldn't this also be true if I wanted to install, say, PHP-Nuke?

Jul 17 '05 #5
> Just so I'm clear on this: Let's assume that I've registered
www.mydomain.com to a static IP which comes to my cable router at home,
and the router is configured to send incoming http requests on a
particular port to my RedHat box on my home network. If I fire up a
browser on any machine and point it to:

http://www.mydomain.com:my_port_numb...s/example1.php

when the server gets the http request, isn't the server going to look in

/var/www/html

for a directory called /bookexamples and then look in that directory for
a file called example1.php to return to the requesting host?

Doesn't this mean that if I want to create a directory to hold the
phpMyAdmin files, the directory should be located within /var/www/html
also? Wouldn't this also be true if I wanted to install, say, PHP-Nuke?


Yes that is exactly the way it works. in this case /var/www/html is your
root directory, if you see instructions for uploading files etc and they
mention the root directory they will ussually mean the top level directory
that the web has access to.
Jul 17 '05 #6
'bonehead pathetically mumbled:
...if I want to create a directory to hold the
phpMyAdmin files, the directory should be located within /var/www/html
also? Wouldn't this also be true if I wanted to install, say, PHP-Nuke?

And Filth provided the following path to enlightenment:
Yes that is exactly the way it works. in this case /var/www/html is your
root directory, if you see instructions for uploading files etc and they
mention the root directory they will ussually mean the top level directory
that the web has access to.


Thanks for clearing that one up. I'm the type that likes to be totally
led by the nose the first time I try anything...just ask my first
girlfriend...

--
'bonehead
------------------------------------------------
Q: Where are the "Open Source" women?
You know, the ones that we can use
freely and configure to fit our needs?

A: They are all out looking for Open Source men
with a long, long list of defects and features
that need fixing...

Jul 17 '05 #7
>I should clarify that I'm using a RedHat box at home which has apache
and php and mysql all installed on the same machine. I'm just using it
for learning purposes.
Just be sure that your security is not so week that strangers will
be using it for anonymous child porn distribution (they CAN stick
images into a database if that's the only way to make use of their
newly-found free disk space), spamming, or remote-controlled DDOS
attacks. You don't want to find out about this when the FBI breaks
in your door.
Just so I'm clear on this: Let's assume that I've registered
www.mydomain.com to a static IP which comes to my cable router at home,
and the router is configured to send incoming http requests on a
particular port to my RedHat box on my home network. If I fire up a
browser on any machine and point it to:

http://www.mydomain.com:my_port_numb...s/example1.php

when the server gets the http request, isn't the server going to look in

/var/www/html

for a directory called /bookexamples and then look in that directory for
a file called example1.php to return to the requesting host?
True, in general, although you can use Apache directives to modify
this behavior somewhat. (See mod_alias, mod_rewrite, mod_userdir,
use of symlinks, etc.) I am assuming /var/www/html is your
DocumentRoot. The default setup varies on different systems.
Doesn't this mean that if I want to create a directory to hold the
phpMyAdmin files, the directory should be located within /var/www/html
also? Wouldn't this also be true if I wanted to install, say, PHP-Nuke?


Yes, assuming you mean the phpMyAdmin files meant to be served to
the web, NOT unprotected html files containing passwords or credit
card numbers. There are other alternatives, like giving phpMyAdmin
its own vhost, or aliasing it to somewhere else. But this is a
reasonable setup. I figure a reasonable place to put it is at
http://my.domain.com/phpMyAdmin/ (which you ARE going to password-protect,
right?)

In general, stuff for the web goes under the DocumentRoot. Stuff
NOT for the web, especially sensitive stuff like files of credit
card numbers, goes OUTSIDE the DocumentRoot. Passwords inside .php
files can be safe, but you'd better be sure that you NEVER manage
to turn PHP off (say, by breaking the plugin in the process of
upgrading to a new version).

Gordon L. Burditt
Jul 17 '05 #8

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

Similar topics

7
by: SCS | last post by:
Running PHP 4.5.7 PHPMyAdmin 2.5.7-pl1 IIS 6 I am thrying to get phpmyadmin to work, but whenever I click a link or try to browse a database I get a 404 error, because the PmaAbsoluteUri...
0
by: phpnube | last post by:
I used this php package to install on my system... (i had problems with the isapi package from php so im back to the cgi portion of PHP php-cgi.exe) PHP 5.0.0 installer - 26 July 2004 (CGI...
4
by: Stefan Mueller | last post by:
I've just installed phpMyAdmin. If I have the line $cfg = 'http://localhost/php/phpmyadmin'; in my config.inc.php I can login to phpMyAdmin without any problems from my local machine. But it's...
5
by: NewbieSupreme | last post by:
I installed Apache 2.0.58, tested it, got the "working" page. Installed MySQL 5.0.22, and didn't really see how to test that, but there is a mysql process running in the task manager. Ran through...
2
by: Marcus | last post by:
Hello, I am trying to install phpMyAdmin 2.8.2 and have a question about config.inc.php. Is it necessary to include all of the $cfg fields in config.default.php, or is it ok to just have...
4
tolkienarda
by: tolkienarda | last post by:
Hi all I work for a small webdesign company and we have remote hosting. i built a mysql database with phpmyadmin on the server. i then downloaded and modified a php login page. i am continuing to...
4
by: Paul Herrmann | last post by:
Hi, I am new to this forum and to PHP. I have set up a local Apache server with MYSQL and PHP and in an attemp to use the mysqldump function came accross PHPMyAdmin. A simple download and placed...
8
by: Jonathan Sachs | last post by:
I just tried to install phpMyAdmin on my system, and I can't get it to work. When I tried to run the setup procedure (setup.php) I got the following message: Fatal error: session_start() :...
2
by: nogger | last post by:
Hi all, newbie here so be gentle :-) I just installed PHPMYADMIN V3.0.0 and (after a lot of struggle with mysql extensions) finally got it running with Apache 2.2.4 & PHP 5.2.3 The problem i...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.