This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Configuration FIle


  1. chemenephillips
    Member

    Hello,

    I am setting up a database and form for my very first time. Please forgive me if I am about to ask a stupid question but when I am following the directions for the configuration file it says (for example) DB_NAME. Do I actually type that and then my information or do I just type my information? For example: electric_raffle if raffle is my database name.

    Thank you, I searched for a previous post for this but didn't see anything and I want to make sure I do it right the first time.

    Posted 16 years ago #
  2. chemenephillips
    Member

    Also, does the admin username and password have to match that on my hosting server for my database or can this be any new username and password?

    Posted 16 years ago #
  3. WarPig
    Member

    It should look like this:

    define('DB_NAME', 'your_db_name_here')

    Same goes for the other 4 settings (user, pass and host). So if raffle is your db name, then it should be:

    `define('DB_NAME', 'raffle')

    Posted 16 years ago #
  4. WarPig
    Member

    On the username/password for the admin side, it can be whatever you want it to be. I wouldn't make it the same as other passwords... Someone with read access to this file can easily get access.

    Posted 16 years ago #
  5. chemenephillips
    Member

    Great, thanks. One last question, not sure if you can answer.

    Would what I put in for the host be my cpanal website or would it just be the standard website for my host?

    Posted 16 years ago #
  6. WarPig
    Member

    It's generally localhost, unless your host/admins have set a specific host for your db's. Try "localhost", if it fails go through your cpanel configs and see what's set there....

    Posted 16 years ago #
  7. chemenephillips
    Member

    Just to confirm. If my host is network solutions let's say do I just put in `define('DB_HOST, 'network solutions')or do I have to put in www.networksolutions.com or just network solutions .com?

    Posted 16 years ago #
  8. chemenephillips
    Member

    Nevermind, I think I've got it.

    Posted 16 years ago #

RSS feed for this topic

Reply