INSTALL:
Here is a short description to get you going when installing
phpVoter.
Requirements: PHP4, MySQL
1. Copy the files to your web directory.
2. Create a mysql database, either use a graphical tool like
phpMyAdmin or use the following at a shell prompt. Of course you
will have to have mysql root access.
> mysqladmin create databasename
3. Now you will have to grant access to a web user. Type "mysql" at
the shell prompt and enter the following lines:
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER
ON votedatabase.*
TO user <at> localhos <dot>
IDENTIFIED BY 'password';
You will have to change votedatabase, user and password to
something else.
4. Create the tables in the database, again change votedatabase to
something more appropriate.
> mysql --user=user --password=password votedatabase < tables.sql
5. Edit config.inc.php to suit your needs.
6. Change mysql.inc.php to set the correct database permissions.
7. Move the sub directory "data" to somewhere outside the web root
and make it writeable by the web server. Put the path of this
directory into the variable $config['datadir'] in the config.inc.php
8. Change the username and password in data/basic_auth.inc.php
9. Change the variable $sitepath in includes/functions.inc.php to
the path where you have installed phpVoter.
That is all, you should now be able to go to the php-voter_admin.php
script and add a new poll.
Other Polls And Voting Scripts: