Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Goto page: 1 - 2 [+1]

Bottom
Problem in Database Connection with pnRender
  • Posted: 15.08.2004, 22:23
     
    ilivetoshop
    rank:
    Helper Helper
    registered:
     July 2004
    Status:
    offline
    last visit:
    17.06.07
    Posts:
    175
    I have a huge problem!! I need pnRender and I have tried to install twice and keep getting an error. After I instal i got o my homepage and get "problem with database connection" and i can't even get to my site.

    I have seen posts about the config.php file, is that my problem? Where is this located? and wwhat would I need to change.

    Also I have seen Swiss Army Knife, is that an option? Please help I just want to install pnrender!
  • Posted: 15.08.2004, 22:26
     
    rank:
    Professional Professional
    registered:
     April 2002
    Status:
    offline
    last visit:
    24.11.08
    Posts:
    716
    "problem with database connection" means the cora can't connect to the database. This might be due to problems in the database server (try with phpMyAdmin), or because the wrong credentials are in config.php (this file is located at the root of your PostNuke directory)
  • Posted: 15.08.2004, 22:36
     
    ilivetoshop
    rank:
    Helper Helper
    registered:
     July 2004
    Status:
    offline
    last visit:
    17.06.07
    Posts:
    175
    what would be problem be with the database server?

    in the config.php file, what would I need to change?
  • Posted: 16.08.2004, 00:08
     
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    online
    Posts:
    13418

    Quote

    what would be problem be with the database server?


    Such as it crashing or otherwise not being available.

    Quote

    in the config.php file, what would I need to change?


    That depends on whether this is actually causing the problem. Information in config.php is encrypted, so you need to enter the correct database connection values, and set the encoded variable to 0.

    --
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide
  • Posted: 16.08.2004, 00:57
     
    ilivetoshop
    rank:
    Helper Helper
    registered:
     July 2004
    Status:
    offline
    last visit:
    17.06.07
    Posts:
    175
    My database is fine...

    I changed the encoded variable to 0 and it still isn't working. Can you think of anything else.

    I am stuck, everything I want to do requires pnrender and I can't seem to get it up and running.
  • Posted: 16.08.2004, 00:59
     
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    online
    Posts:
    13418
    Your variables in config.php must be wrong. Check that the values in the file are correct.

    --
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide
  • Posted: 16.08.2004, 02:14
     
    ilivetoshop
    rank:
    Helper Helper
    registered:
     July 2004
    Status:
    offline
    last visit:
    17.06.07
    Posts:
    175
    This is my config.php file:


    ----------------------------------------------------------------------
    //
    $pnconfig['dbtype'] = 'mysql';
    $pnconfig['dbtabletype'] = 'MyISAM';
    $pnconfig['dbhost'] = 'localhost';
    $pnconfig['dbuname'] = '';
    $pnconfig['dbpass'] = '';
    $pnconfig['dbname'] = 'Phoenix';
    $pnconfig['system'] = '0';
    $pnconfig['prefix'] = 'nuke';
    $pnconfig['encoded'] = '0';

    // ----------------------------------------------------------------------
    // For debugging (Pablo Roca)
    //
    // $debug - debugger windows active
    // 0 = No
    // 1 = Yes
    //
    // $debug_sql - show SQL in lens debug
    // 0 = No
    // 1 = Yes
    // ----------------------------------------------------------------------
    GLOBAL $pndebug;
    $pndebug['debug'] = 0;
    $pndebug['debug_sql'] = 0;

    // ----------------------------------------------------------------------
    // You have finished configuring the database. Now you can start to
    // change your site settings in the Administration Section.
    //
    // Thanks for choosing PostNuke.
    // ----------------------------------------------------------------------

    // ----------------------------------------------------------------------
    // if there is a personal_config.php in the folder where is config.php
    // we add it. (This HAS to be at the end, after all initialization.)
    // ----------------------------------------------------------------------
    if (@file_exists("PostNuke1/personal_config.php"))
    { include("PostNuke1/personal_config.php"); }
    // ----------------------------------------------------------------------
    // Make config file backwards compatible (deprecated)
    // ----------------------------------------------------------------------
    extract($pnconfig, EXTR_OVERWRITE);
    ?>



    Can you tell me what is wrong??
  • Posted: 16.08.2004, 02:19
     
    mhalbrook
    rank:
    Legend Legend
    registered:
     December 1969
    Status:
    online
    Posts:
    6534

    ilivetoshop


    $pnconfig['dbhost'] = 'localhost';
    $pnconfig['dbuname'] = '';
    $pnconfig['dbpass'] = '';
    $pnconfig['dbname'] = 'Phoenix';


    Need to put in your database connection info..
  • Posted: 16.08.2004, 02:48
     
    ilivetoshop
    rank:
    Helper Helper
    registered:
     July 2004
    Status:
    offline
    last visit:
    17.06.07
    Posts:
    175
    OK! I am going to try this. One question, is your host name the same as your domain name? or do you usually use localhost?
  • Posted: 16.08.2004, 02:55
     
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    online
    Posts:
    13418
    usually, its localhost.

    --
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide
  • Posted: 16.08.2004, 02:59
     
    ilivetoshop
    rank:
    Helper Helper
    registered:
     July 2004
    Status:
    offline
    last visit:
    17.06.07
    Posts:
    175
    OK I got it! Now I have a new problem. It just says:

    Session initialisation failed

    now what?
  • Posted: 16.08.2004, 03:05
     
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    online
    Posts:
    13418
    Are there any tables in the database? Did you ever run the install script and get past the table creation stage? Is the prefix value in config.php set correctly?

    --
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide
  • Posted: 16.08.2004, 03:07
     
    batpuppy
    registered:
     June 2002
    Status:
    offline
    last visit:
    10.11.04
    Posts:
    611
    Ok in a normal install, the install script for PostNuke populates the config.php file with the values that you give it during the install. How was this PostNuke installed in the first place?
  • Posted: 16.08.2004, 03:10
     
    ilivetoshop
    rank:
    Helper Helper
    registered:
     July 2004
    Status:
    offline
    last visit:
    17.06.07
    Posts:
    175
    Yes there are all of the PostNuke tables in this database. My site has been up and running for a while with no problems until this www.ilivetoshop.com What is the prefix value you are referring to?

    Post Nuke was already installed my my server by the server company I didn't do it myself.
  • Posted: 16.08.2004, 03:16
     
    batpuppy
    registered:
     June 2002
    Status:
    offline
    last visit:
    10.11.04
    Posts:
    611

    Quote

    Post Nuke was already installed my my server by the server company I didn't do it myself.

    Well if it was the version in the plesk application vault, it is a hacked version and they(plesk) add the database connection information in I "think" the pnAPI.php file, not sure though where they stuck it but its not in the config.php file where its supposed to be at.
    If this is the case then you are going to have lots of problems with installing 3rd party modules and also with upgrading PostNuke.

Goto page: 1 - 2 [+1]

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula