Results 1 to 14 of 14

Thread: Installing phpMyadmin

  1. #1

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827

    Installing phpMyadmin

    Where do I unzip it? If I do that in my htdocs folder, it'll ask me to overwrite some of the files (eg Index.php). I don't want to do that because I also have some pages with these names in the same folder. Is there anyway to put all the phpMyadmin files into a separate folder in htdocs folder so I can use it?
    Baaaaaaaaah

  2. #2
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    You will want to make a new directory in your htdocs folder (do not name it phpMyAdmin as that is commonly used), then unzip all the files in the phpMyAdmin zip file to that directory, edit the config file and your all set.
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  3. #3

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Ok thanks. I created a folder called "myadmin" in htdocs and now when I try this URL "http://localhost/myadmin/index.php", it gives me this:
    The $cfgPmaAbsoluteUri directive MUST be set in your configuration file!

    What do I edit in the config file to get it to work?
    Baaaaaaaaah

  4. #4

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Never mind, got it working now after editing config.inc.
    Baaaaaaaaah

  5. #5
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    The $cfgPmaAbsoluteUri variable?

    Also, if you have the ability, you might want to password your phpMyAdmin directory so others can't access it. Because last I knew, phpMyAdmin doesn't have password protection built in.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  6. #6

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Yes, $cfgPmaAbsoluteUri was empty in config.inc. I had to set to the path to phpMyAdmin (localhost/myadmin).
    But now I can only access the database on my local machine (using localhost). I have registered at www.coolfreepage.com and it supports php/mysql. It sent me my account information and database name through email. It says that my homepage is http://gx.coolfreepage.com but when I use "http://gx.coolfreepage.com" as the host (eg localhost) and the username/password that the company gave me, it says that the access was blocked.
    Baaaaaaaaah

  7. #7
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    That may be due to restrictions by your host. Have you tried uploading the myadmin file to your free server and running it on there?
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  8. #8

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Ok thanks, I am uploading myadmin to the web server and then I'll see if it works or not. But if I do that, wouldn't anybody who runs phpMyAdmin(he'll certainly be able to because he can see my webpage) be able to edit the database and stuff?
    Baaaaaaaaah

  9. #9
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by abdul
    Ok thanks, I am uploading myadmin to the web server and then I'll see if it works or not. But if I do that, wouldn't anybody who runs phpMyAdmin(he'll certainly be able to because he can see my webpage) be able to edit the database and stuff?
    You're going to have to password protect the directory like I said, if your webhost has support for it. If not, then yes, they can edit the database. Unless you hide it in a really weird directory like http://www.yoursite.com/g532i235a1 or something.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  10. #10
    Fanatic Member cpradio's Avatar
    Join Date
    Apr 2002
    Posts
    616
    or edit the index.php file that phpMyAdmin uses. Make it show a form and ask for a username and password, then check to see if the form was submitted and that the information is correct.

    If it is correct display the frames that phpMyAdmin uses
    http://cpradio.net/
    Administrator @ WDForums and a Moderator @ WebXpertz City Forums

  11. #11
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Or hire a doorman to keep all the bad people out?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  12. #12

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    I guess I'll just work on the website/database locally and then upload it instead of going through this hard work...
    Baaaaaaaaah

  13. #13
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    it's not that hard...
    My evil laugh has a squeak in it.

    kristopherwilson.com

  14. #14

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width