Page 1 of 2 12 LastLast
Results 1 to 15 of 29

Thread: Trouble Installing

  1. #1
    Join Date
    Feb 2004
    Location
    Australia
    Posts
    1

    Default Trouble Installing

    Hi,

    I am trying to install Indexu Lite on my sites server. I have done everything that the readme said and when I go to install, I fill in the configuration details. All are correct, have checked them several times. Have checked the MySQL database is working on the server and that it exists. (Server is Unix/Linux). After completing the details, I hit the configure button and the install.php tells me:

    Message
    Unable to select database

    I installed the script on my personal computer and it worked fine (Windows OS) yet for some reason it wont install on the actual webserver the site is located on.

    Please help, the script looks great.

  2. #2
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    make sure you have the correct information to connect to your database. the error that you are experiencing is because you enter the name of your database and/or databaseuser wrong. Hope this helps
    Polo

    --------------------------------------
    Christian Website

  3. #3
    Join Date
    May 2004
    Posts
    4

    Default

    im having the same problem

    although I did enter all of the correct information

    triple checked it too..

  4. #4
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    can you give your server details?>
    Polo

    --------------------------------------
    Christian Website

  5. #5
    Join Date
    May 2004
    Posts
    4

    Default

    i fixed it, had to edit the install.php file

  6. #6
    Join Date
    Oct 2003
    Location
    R.T.U
    Posts
    580

    Default

    what exaclty did you modified?

    tell... just in case other people find the same problem...

    thanks..
    Polo

    --------------------------------------
    Christian Website

  7. #7
    Join Date
    May 2004
    Posts
    4

    Default

    I forced the variable definitions, instead of letting the form process them.

    i think over here:
    @MYSQL_CONNECT($db_hostname,$db_username,$db_pwd)
    OR $error_msg = "Unable to connect to database";

    @mysql_select_db($db_name)
    or $error_msg = "Unable to select database";

    I actually inputted my details.

  8. #8
    Join Date
    Feb 2003
    Posts
    20

    Default

    tried thie above fix - but will not read hostname correctly. my server is not using localhost but xxxxx.net. the script does not like .net

  9. #9
    Join Date
    Feb 2003
    Posts
    20

    Default

    Just about ready to give up on this script.

    Since starting yesterday I have also installed 2 other related scripts (link directories) both ran 1st time using the same information indexu lite asks for during installation and on the same database/server.

    Is there a fix for the line unable to select database, as editing the templates of indexu looks easier than the other scripts I have tried.

    Toneranger
    Last edited by toneranger; 08-31-2005 at 09:33 AM. Reason: spelling mistakes

  10. #10
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    you could try editing the database section of the application.php file starting about line 28:
    Code:
    // ----- database -----
    
    $dbHostname = "localhost";
    $dbUsername = "user";
    $dbPassword = "password";
    $dbName = "database";
    if you have installed 2 other scripts, then you should be able to just copy a database section from one of those.

    for official support from Nicecoder, send an email to support@nicecoder.com



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  11. #11
    Join Date
    Feb 2003
    Posts
    20

    Default

    Hello - had tried this, completing all the detail down to line 55. Still fails with the same errors.

    regards Toneranger

  12. #12
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by toneranger
    ...completing all the detail down to line 55.
    not my area of expertise; but try editing line 404 with the actual values
    Code:
      MYSQL_CONNECT($dbHostname,$dbUsername,$dbPassword)


    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  13. #13
    Join Date
    Feb 2003
    Posts
    20

    Default

    Hi esm, Thanks but no joy from your last post either.

    host insists localhost will not work in connecting to database on their server.
    have to use cogia.net

    Thanks again
    Regards Toneranger

  14. #14
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Quote Originally Posted by toneranger
    host insists localhost will not work in connecting to database on their server. have to use cogia.net
    and so you tried something like?

    Code:
      MYSQL_CONNECT("cogia.net","your_user_name","your_password")
    a connection is just a connection. the PHP command MYSQL_CONNECT works the same way for INDEXU lite as it does for the other two prgrams you installed.

    upload the following as a file to your server after making the needed changes for your_db_user_name and your_db_password. what are the results?

    Code:
    <?php
    $link = mysql_connect("cogia.net", "your_db_user_name","your_db_password");
    if (!$link) {
       die('Could not connect: ' . mysql_error());
    }
    echo 'Connected successfully';
    mysql_close($link);
    ?>


    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  15. #15
    Join Date
    Feb 2003
    Posts
    20

    Default

    hi esm - that little script returns

    Connected successfully

    install script does not run index.php contains errors



    » New Listings » Hot Listings » Top Rated » Editor Pick




    Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/www/tonwil.cogia.net/links/index.php on line 24

    Warning: mysql_query(): A link to the server could not be established in /home/www/tonwil.cogia.net/links/index.php on line 24

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/tonwil.cogia.net/links/index.php on line 25

    been in touch with host, who reports connection through socket not available

    thanks again for your help.Toneranger
    Last edited by toneranger; 08-31-2005 at 05:11 PM. Reason: added extra comment

Similar Threads

  1. Installation trouble [Windows]
    By Gish in forum Indexu Lite
    Replies: 5
    Last Post: 12-02-2004, 08:02 AM
  2. Error installing in directories
    By StepFenz in forum v5.x
    Replies: 6
    Last Post: 09-20-2003, 01:28 PM
  3. News Grabber installing?
    By Andre in forum v5.x
    Replies: 0
    Last Post: 07-01-2002, 10:27 AM
  4. INstalling V3.04
    By tariqali in forum v5.x
    Replies: 10
    Last Post: 04-25-2002, 08:10 AM
  5. PHP errors when installing
    By boyracerr in forum v5.x
    Replies: 10
    Last Post: 12-11-2001, 02:35 AM

Posting Permissions

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