Problem installing script - error message

Discussion in 'Programming' started by TheNoose, Mar 19, 2009.

  1. #1
    I bought a script from built2go and I can't seem to get it installed. I created the database needed and put the password and what not in, but when it goes to create the tables I get the following error:

    I get this error on the first step:

    Warning: include_once(/home/extremh8/public_html/xqpx/rateme/adminpanel/func.php) [function.include-once]: failed to open stream: No such file or directory in /home/extremh8/public_html/xqpx/config.php on line 84

    Warning: include_once() [function.include]: Failed opening '/home/extremh8/public_html/xqpx/rateme/adminpanel/func.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/extremh8/public_html/xqpx/config.php on line 84


    This error after the 2nd step (which is inputting the database information that I have already created:


    Warning: mysql_query() [function.mysql-query]: Access denied for user 'extremh8'@'localhost' (using password: NO) in /home/extremh8/public_html/xqpx/adminpanel/sql.php on line 10

    Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/extremh8/public_html/xqpx/adminpanel/sql.php on line 10
    DB TABLE ERROR:
    Problem:
    Access denied for user 'extremh8'@'localhost' (using password: NO)
     
    TheNoose, Mar 19, 2009 IP
  2. Arqi

    Arqi Banned

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    it is giving database problem
    see Last msg is Access Denied

    you have to give privileges to database username and pass..

    Try it
     
    Arqi, Mar 19, 2009 IP
  3. TheNoose

    TheNoose Peon

    Messages:
    1,005
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #3
    All privileges have been given to username in db.
     
    TheNoose, Mar 19, 2009 IP
  4. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #4
    does this file exist?
    rateme/adminpanel/func.php

    and it has the correct path?
    how did you upload the script: ftp or cpanel (and extract zip)
     
    shallowink, Mar 19, 2009 IP
  5. koko5

    koko5 Active Member

    Messages:
    394
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    70
    #5
    Warning: include_once(/home/extremh8/public_html/xqpx/rateme/adminpanel/func.php) [function.include-once]: failed to open stream: No such file or directory in /home/extremh8/public_html/xqpx/config.php on line 84

    public_html/xqpx/rateme/adminpanel/func.php file is missing-check your directories configuration.Regards!
     
    koko5, Mar 19, 2009 IP
  6. creativeGenius

    creativeGenius Well-Known Member

    Messages:
    273
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    120
    #6
    i agree, it seems the func.php file is missing
     
    creativeGenius, Mar 19, 2009 IP
  7. TheNoose

    TheNoose Peon

    Messages:
    1,005
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #7
    This is what I get when I change the config.php to the correct path:

    Fatal error: Unable to read 4307 bytes in /home/extremh8/public_html/xqpx/adminpanel/system_cls.php on line 0

    I used ftp to upload the script.
     
    TheNoose, Mar 19, 2009 IP
  8. creativeGenius

    creativeGenius Well-Known Member

    Messages:
    273
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    120
    #8
    looks like the script is encoded

    In order to run encoded files you need to install Zend Optimizer. This error indicates that you have an old
    version of Zend Optimizer installed.
     
    creativeGenius, Mar 19, 2009 IP
  9. koko5

    koko5 Active Member

    Messages:
    394
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    70
    #9
    OK, use ftp client , log-in and right-click on the adminpanel directory, then set 777 permission for folder,sub-folders and files and try install again.
     
    koko5, Mar 19, 2009 IP
  10. TheNoose

    TheNoose Peon

    Messages:
    1,005
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #10
    K, I used ioncube. The first error on step one I no longer get.

    Now these:

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'extremeh8_xqpx'@'localhost' (using password: YES) in /home/extremh8/public_html/xqpx/adminpanel/db.php on line 2

    Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'extremh8'@'localhost' (using password: NO) in /home/extremh8/public_html/xqpx/adminpanel/db.php on line 3

    Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/extremh8/public_html/xqpx/adminpanel/db.php on line 3
    Rate My Photo Install

    Warning: mysql_query() [function.mysql-query]: Access denied for user 'extremh8'@'localhost' (using password: NO) in /home/extremh8/public_html/xqpx/adminpanel/sql.php on line 10

    Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/extremh8/public_html/xqpx/adminpanel/sql.php on line 10
    DB TABLE ERROR:
    Problem:
    Access denied for user 'extremh8'@'localhost' (using password: NO)
     
    TheNoose, Mar 19, 2009 IP
  11. [GV]AnarchY

    [GV]AnarchY Well-Known Member

    Messages:
    599
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    #11
    pm sent. :)
     
    [GV]AnarchY, Mar 19, 2009 IP
  12. creativeGenius

    creativeGenius Well-Known Member

    Messages:
    273
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    120
    #12
    well, in this case, it looks like you have provide a wrong db account most probably the username

    in cpanel, usually the username is appended with the name of the db you're using..

    ex: dbname_username
     
    creativeGenius, Mar 19, 2009 IP
  13. koko5

    koko5 Active Member

    Messages:
    394
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    70
    #13
    DB TABLE ERROR:
    Problem:
    Access denied for user 'extremh8'@'localhost' (using password: NO)

    No password given in your config file.
    Edit:
    config file I mean /home/extremh8/public_html/xqpx/config.php
     
    koko5, Mar 19, 2009 IP
  14. TheNoose

    TheNoose Peon

    Messages:
    1,005
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #14
    This is the config file, it doesn't ask for database name or pw anywhere:

    <?php
    /* $Id: config.php,v 1.3 2006-03-21 13:23:36-07 brian Exp brian $ */
    // vim: expandtab sw=4 ts=4 sts=4:
    ########################################################################
    ## Built2Go PHP RateMyPhoto v1.0 ##
    ## ---------------------------------------------------------------- ##
    ## Copyright © Big Resources, Inc. All Rights Reserved. ##
    ## This software must be used in accordance with its licensing ##
    ## terms and conditions at: http://www.built2go.com/faq.php ##
    ## ##
    ## This file may not be redistributed in whole or significant part. ##
    ## ---------------- BUILT2GO IS NOT FREE SOFTWARE ----------------- ##
    ########################################################################
    /* Set your language...
    Code: eng for english, nor for norwegian or other... */
    $language = "eng";

    /* allows you to check over photos submitted before they go live
    1 = live on submit
    2 = pending
    */
    $SetPending = '2';
    $AdminAllowComments = '1'; // Allow Comments on Site
    $AdminAllowMsg = '1'; // Allow Private Messages on Site
    /*
    Site url, ONLY change if you add the script to a sub folder under root. If you did add it to a
    sub folder then it would be like this:
    define('SITE_URL', "http://".$_SERVER['SERVER_NAME']."/somefolder");

    DO NOT change the $_SERVER['SERVER_NAME'] variable.
    */
    define('SITE_URL', "http://".$_SERVER['SERVER_NAME'].""); //no ending slash.


    /*
    Site path, ONLY change if you add the script to a sub folder under root. If you did add it to a
    sub folder then it would be like this:
    define('FULL_PATH', $_SERVER['DOCUMENT_ROOT']."/somefolder");

    DO NOT change the $_SERVER['DOCUMENT_ROOT'] variable.

    for IIS users you will need to add this manually.
    eg: c:/Inet/www/path/script_name
    define('FULL_PATH', "c:/Inet/www/path/script_name");

    */
    define('FULL_PATH', $_SERVER['DOCUMENT_ROOT'].""); //no ending slash.


    /* Your emailadress. BE SURE TO SET. */
    $from_address = "admin@xqpx.com";
    define('FLOOD_TIMEOUT',"1800"); // defines max time they have to wait before sending messages. used for slowing down spam
    define('MAXFILE_SIZE',"500000"); // defines max file size for uploaded images
    define('MAXIMAGE_W_SIZE',"450"); // defines max image width size for images
    define('MAXIMAGE_H_SIZE',"450"); // defines max image height size for images
    define('LOWESTIMAGE_W_SIZE',"66"); // defines Lowest image width size for thumbnail images

    /* How many members do you want per page*/
    $admin_member_per_page = 25;
    /* Number of profiles per each page */
    $number_of_ads_per_page = 16; //multiples of 4
    define('CHARSET',"iso-8859-1"); // charset for content_type. only use iso-8859-1 or utf-8

    define('TABLE_PREFIX',""); // mysql table prefix
    /* Table names must be set here
    Do Not edit the TABLE_PREFIX below.
    */
    $admintbl = TABLE_PREFIX."admin";
    $usr_tbl = TABLE_PREFIX."users";
    $cat_tbl = TABLE_PREFIX."categories";
    $comment_tbl = TABLE_PREFIX."comments";
    $msg_tbl = TABLE_PREFIX."emailmesg";
    $pic_tbl = TABLE_PREFIX."picture";
    $secure_image = TABLE_PREFIX."security_images";
    $rating_tbl = TABLE_PREFIX."rating";
    $sess_tbl = TABLE_PREFIX."session";


    // set to on (1) it will NOT clean out the session db table automatically.
    $GLOBALS['noshutdownfunc'] = 1;
    // Do not edit below unless you change install directory:
    $upload_dir = FULL_PATH."/pictures"; // no ending slash
    define('VERSION',"1.46.4"); // version of Rate My Photo
    include_once(FULL_PATH."/adminpanel/func.php");
    ?>
     
    TheNoose, Mar 19, 2009 IP
  15. koko5

    koko5 Active Member

    Messages:
    394
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    70
    #15
    Sorry, my bad
    Please check db.php and line 1 too - is this include: if yes, check this included file for options too.
    Same for sql.php above line 10.
     
    koko5, Mar 19, 2009 IP
  16. TheNoose

    TheNoose Peon

    Messages:
    1,005
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Problem solved by creativeGenius, thanks for the suggestions though everyone :)
     
    TheNoose, Mar 19, 2009 IP