Fast Help Needed

Discussion in 'HTML & Website Design' started by KIbeth, Oct 9, 2005.

  1. #1
    Im just trying to set up a members area and login typ thing, i have the script and t comes with the following instructions.

    1.Open config.php, and change the variables $HOST, $DBNAME, $DBUSER, $DBPASS -> to what it needs for your mysql database to work..., change the rest of the variables to what ever you like.
    2.save changes.
    3.Change the permissions of 'main.php' to read/write (chmod 777).
    4.Open setup.php in your web browser, follow the instructions, after the setup is complete, delete setup.php.

    I understan some of this, but what do i put for $host? is it the domain im on?
    Also are the dbuser and pass the same as the ones i use to login to ftp?
    Does the dbname actually matter?
    And how do i chmod :/

    Lol, sorry for all the questions, but help would be very much appericiated :)
     
    KIbeth, Oct 9, 2005 IP
  2. ash1ey

    ash1ey Member

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #2
    I'm 99% sure that for the host part you need to put - localhost
     
    ash1ey, Oct 9, 2005 IP
  3. KIbeth

    KIbeth Active Member

    Messages:
    374
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    60
    #3
    When i use that it says access denied,because of my login details, do i need a certian username and password?
     
    KIbeth, Oct 9, 2005 IP
  4. Cristian Mezei

    Cristian Mezei Notable Member

    Messages:
    3,332
    Likes Received:
    355
    Best Answers:
    0
    Trophy Points:
    213
    #4
    $HOST = The host/IP where your mysql sever resides. Usually it's "localhost" .

    $DBNAME = Your mysql database name (or one of your databases, which you will use for this application)

    $DBUSER = The mysql user who has acces to this database. It can be your main SQL user (CPANEL user) or it can be another user to which you have given rights to acces this database.

    $DBPASS = The password assigned to the user you will put in $DBUSER

    This is easy right ? ;)

    FOr you to understand Chmod, please think Windows. Chmod is the windows equivalent to "system file" , "read-only" , etc, but much much more complex.

    YOu can chmod files, by logging to your FTP accopunt with any FTP client that supports CHMOD (these days they all do)

    I recommend the FTP function from Win Commander or Total Commander because of their simplicity.

    This is easy too, right ? ;)

    Good luck.
     
    Cristian Mezei, Oct 9, 2005 IP
  5. KIbeth

    KIbeth Active Member

    Messages:
    374
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    60
    #5
    I think i managed to Chmod the file with filezilla, is there any way i can find out what my mysql database name is?
     
    KIbeth, Oct 9, 2005 IP
  6. tflight

    tflight Peon

    Messages:
    617
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Sometimes it is, but not always. It will normally be either localhost or your domain name. However it could be any valid domain name depending on how your host set it up. Sometimes hosts setup their databases on remote servers to improve performance. Ask your hosting company.

    Sometimes it is, but not always. Often hosting companies will setup separate usernames and passwords for databases versus FTP. Ask your hosting company.

    Absolutely. The database server will not know which database you want to use otherwise. You will need to ask your hosting company what your database name is if you didn't set it up yourself.

    If you can connect to your host via command line interface then you use the chmod command. For information about how to use the chmod command from the cli type 'man chmod'. Otherwise some FTP clients support chmod however they may call it something different like 'File permissions' and they might have you tick checkboxes for users, group, and world versus entering the associated chmod number. And by the way, chmod 777 can be very dangerous since that means every user can view the contents of that file. If it is a script that means anyone can view the source of the script and if the script contains passwords anyone can read it.
     
    tflight, Oct 9, 2005 IP
  7. KIbeth

    KIbeth Active Member

    Messages:
    374
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    60
    #7
    Hmm... Soapbath hosts me, so i will ask him that stuff.
     
    KIbeth, Oct 9, 2005 IP