If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Beginning poll installation questions  XML
Forum Index » Support Forum
Author Message
Anonymous



Hello,

I am just learning php and mysql, so I have a question regarding the installation of the advanced poll program 2.03. I'm using the db version also. Of that I've uploaded all the unzipped files into a directory called poll on my server.

Installation:

1. Open the configuration file 'config.inc.php' with a text editor
and set up your database settings.

$POLLDB["dbName"] = "YourDBName";
$POLLDB["host"] = "localhost";
$POLLDB["user"] = "YourUsername";
$POLLDB["pass"] = "YourPassword";

When I look in my config.inc.php file I don't see anything like the above. Everthing starts out with $cfg["hhh"] = "". So my question is, are these considered constants and if so are they safe, and finally where do I put them. I know all the values for the variables, but I'm not sure where I should list these in my config file.


Next assuming that I have my variables from above correct, i.e. username, password, localhost, dbase name, I then go to step two.

2. Call the install script from your browser -> http://www.yourURL.com/poll/install.php

How long should it take to install at this point? I click the next button and it seems like nothing is happening even after 5 minutes. When I hit the cancel button it says are you sure. Should it take this long. I'm running this on my schools servers and I know that they aren't slow, so if anyone has any ideas please let me know. Thank you
amber222
Graduate

Joined: 07/05/2004 21:13:07
Messages: 586
Offline

When I look in my config.inc.php file I don't see anything like the above. Everthing starts out with $cfg["hhh"] = "". So my question is, are these considered constants and if so are they safe, and finally where do I put them. I know all the values for the variables, but I'm not sure where I should list these in my config file.

Not sure which file you are looking at, because the config.inc.php file has exactly this on lines 9 thru 13.
  • $POLLDB["dbName"] = "";
    $POLLDB["host"] = "localhost";
    $POLLDB["user"] = "root";
    $POLLDB["pass"] = "";
    $POLLDB["class"] = "class_mysql.php";

  • It is in the "include" folder. Just open the include/config.inc.php file and add your info between the quotes for "dbname", "user" and "pass". Most hosts add a prefix to any database info, so if yours does, you would need to include the prefix, also, like "myprefix_mydatabase" and "myprefix_myusername"

    How long should it take to install at this point? I click the next button and it seems like nothing is happening even after 5 minutes.

    Probably nothing is happening because the info is not set correctly in the config.inc.php file. Fix that item and things should move quickly.
     
    Forum Index » Support Forum
    Go to:   
    Based on the open source JForum