Results 1 to 7 of 7

Thread: [RESOLVED] phpmyadmin installation troubles

  1. #1

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Resolved [RESOLVED] phpmyadmin installation troubles

    ABORTED...Settled for MySQL Administrator.

    I removed xampp from my machine, and installed Apache (ok), MySQL (ok) and PHP (ok).
    All works fine, so I created a "phpmyadmin" folder in my "www" folder, and extracted phpmyadmin there.
    Copied and renamed config.inc.php and set auth_type to config, and set the password and config.
    First time I tried http://localhost/phpmyadmin, I got the login screen (that time I used cookies) and had to log in. But after that I get redirected to "http://www.localhost.com/phpmyadmin/" ... ***?

    After setting the auth_type to config, it just take me directly to www.localhost.com/phpmyadmin (this is all local!!!)

    I went so far to copy a coworkers phpmyadmin (done by wampserver) directly, changing the user and password to suit my machine...same result, which make me suspect the problem is with apache.
    But then, I copied another site to my www folder and that run as expected.

    Anyone??? (yes, i added the php folder and php/ext to my path, i commented the mysql, mysqli dll's in php.ini, i configured everything to work jsut fine (remember apache, mysql and php works just fine)
    Last edited by StrangerInBeijing; Dec 4th, 2009 at 02:34 AM.
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  2. #2

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: phpmyadmin installation troubles

    Been fiddling with this for a while now and pretty much at a dead end.

    If I create a folder in my "new" www directory, create a "phpmyadmin" folder and place an index.php with phpinfo() in it, going to localhost/phpmyadmin work just fine.

    I then extract the phpmyadmin code in there and configured the config.inc.php manually and also using the "/setup" way. With all configurations I get the following result:
    1) The first time I go to localhost/phpmyadmin I get the login (which is strange, as the config auth is set to "config" and the username/password are there correctly.
    2) I enter the correct login details, and then get redirected to get a dead page (In IE "Internet Explorer cannot display the webpage" and in FF, it try open www.localhost.com/phpmyadmin)
    3) If I close and open the browser it give me the dead page immediately.
    4) I rename phpmyadmin/index.php, place a new one there with phpinfo(), and localhost/phpmyadmin will display phpinfo correctly.

    Lost.... This is what the config.inc.php look like: (this one generated by setup)
    <?php
    /*
    * Generated configuration file
    * Generated by: phpMyAdmin 3.2.3 setup script by Piotr Przybylski <[email protected]>
    * Date: Wed, 02 Dec 2009 12:37:26 +0000
    */

    /* Servers configuration */
    $i = 0;

    /* Server: localhost [1] */
    $i++;
    $cfg['Servers'][$i]['verbose'] = '';
    $cfg['Servers'][$i]['host'] = 'localhost';
    $cfg['Servers'][$i]['port'] = '';
    $cfg['Servers'][$i]['socket'] = '';
    $cfg['Servers'][$i]['connect_type'] = 'tcp';
    $cfg['Servers'][$i]['extension'] = 'mysqli';
    $cfg['Servers'][$i]['auth_type'] = 'config';
    $cfg['Servers'][$i]['user'] = 'root';
    $cfg['Servers'][$i]['password'] = 'mypassword;

    /* End of servers configuration */

    $cfg['DefaultLang'] = 'en-utf-8';
    $cfg['ServerDefault'] = 1;
    $cfg['UploadDir'] = '';
    $cfg['SaveDir'] = '';
    ?>
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  3. #3
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    Re: phpmyadmin installation troubles

    a problem I've sometimes had with phpMyAdmin is not having some extensions enabled. do you have the mcrypt extension enabled in your PHP ini? if you do, also ensure that libmcrypt.dll is in a directory in your PATH environment variable (for Windows). if it still doesn't work, you could try putting it in your system32 directory, too.

    usually, after doing that, everything works fine for me. however, recently I've switched to using the MySQL Query Browser and the MySQL Administrator for local use. phpMyAdmin is probably more convenient, though.

  4. #4

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: phpmyadmin installation troubles

    1) Yep, php.ini got extension=php_mcrypt.dll (uncommente)
    2) libmcrypt.dll is in D:\Apps\PHP, which is in my PATH (C:\Program Files\Java\jdk1.6.0_17\bin;D:\Apps\Ruby\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32 \Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;%TFSPowerToolDir%;%BPADir%;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Mozilla Firefox\;D:\Apps\MySQL\bin;D:\Apps\PHP;D:\Apps\PHP\ext)
    3) Copied libmcrypt.dll to System32 (so that's all that's new)

    ...and about to see the result.....

    ....uuurgh. The same. I'll circle back to this one over the weekend. Just about fedup of it, and don't need to work with the databases today.

    Thanks for the try though mate...appreciated
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  5. #5
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: phpmyadmin installation troubles

    What is the problem? I found it hard tell by your first post.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  6. #6
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    Re: phpmyadmin installation troubles

    you probably shouldn't worry about it then.

  7. #7

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: phpmyadmin installation troubles

    Quote Originally Posted by Nightwalker83 View Post
    What is the problem? I found it hard tell by your first post.
    Extract phpmyadmin to my document root
    Configure config.inc.php as I should (and did in past)
    localhost/phpmyadmin will take me to the login page the first time, and after that just not be able to open (IE say "Internet Explorer cannot display the webpage", FF will try to add www.localhost.com/phpadmin)

    Worked fine in the past, the only difference this time I don't use xampp or wampserver, but installed Apache, PHP, MySQL and PEAR manually.
    All other sites (in document root and aliases in my httpconfig) works fine.

    If I replace phpmyadmin's index.php content with phpinfo(), that print out just fine also. (Guess that mean my issues is within phpmyadmin, not my WAMPP setup)
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

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