• I am trying to setup a blog site.

    I have the following setup on a SOLARIS BOX (Sparc 64 – Sun Blade 100)

    Apache 2
    Mysql 4.1.10 (max)
    PHP 5

    – Apache works , PHP pages show up
    -I ran all the tests “mysql-test-run” and everything was successful
    – I created a DB , USER successfully in mysql on my HOST
    $mysql -u wordpress -h blade -p
    password: *****

    It connects to the DB and when I do
    show databases;
    I see the database. Also when I say “use webpress;” it works;

    So when I setup the above DB values in “wp-config.php” and try to run
    http://rprajapa.*****.com/blog/wp-admin/install.php
    It says cannot connect to the database.

    Any suggestions why it cannot connect through the PHP script/browser.

    BTW I am running the browser from a windows machine , connecting to my Sun machine but when use browser on the sun box the same thing. So i dont think its a browser or client/server issue.

    Is it a Permissions issue ? The mysql daemon is owned/run by root and the mysql directories are owned by root.

    Thanks,
    Rakesh

Viewing 3 replies - 16 through 18 (of 18 total)
  • I don’t know anything about IIS – but a search probably would bring up a lot of topics; many people had problem with installing.

    If you have the WP in “cinencuentro” folder, why are you testing it in a folder below? > cinencuentro/test ?

    EDIT. Posting the same question in multiple threads just will confuse the potential helpers and might result ingnoring your questions…

    ok, sorry for posting that twice.

    I did check the 4 parameters in the wp-config file. Although i’m not sure about the last one:

    define(‘DB_HOST’, ‘database’); // 99% chance you won’t need to change this value

    they say dont change it, but in other examples I’ve seen that people use an IP address, plus a port number. I also tried using the IP number where my DB is and the port 3306 which is the one that use MySQL Administrator, which btw can connect without any problem to the DB.

    the ‘test.php’ script is a separated php. I just tried it to see if i could connect using that bit of code. and I couldnt. I also tried:

    <html>
    <head>
    <title>Ejemplo de PHP</title>
    </head>
    <body>
    <?php echo “Hola mundo”; ?>
    </body>
    </html>

    getting the same response: “No input file specified.”

    I guess that means there’s something wrong with IIS and the way it manages PHP.
    Which is confusing because when i try http://www.imaginaccion.net/cinencuentro/wp-admin/install.php
    I got the error page of WP, but it’s still a HTML page built with PHP, my guess then was that PHP worked. now I realize I can’t even run a “hello world” script…

    Should i need to use Apache instead of IIS?

    As far as I know there are many users running WP on IIS – but as I said, I am not a server expert.
    Based on what I can see when clicking on the install link you’ve posted above I would say PHP is running (otherwise there would be just code gibberish), you just have to figure out what the 4 pieces of info are. Is it hosted by yourself or is it a hosting company? In the latter case they should be able to tell you exactly what the needed info is.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Error Establishing Database connection.’ is closed to new replies.