 |
 |
| |
Installation Directions
back
- You will need php, mysql, GD and freetype.
- Download the compressed file from Activist in a Box.
- Unzip the file. The folder 'contacts' should contain everything you need to make the contact form work.
- Create a database and install the table using this sql:
- Edit config file /contacts/assets/box.php to include your database settings.
- $hostname_box: whereever your database is hosted. Often 'localhost'. Sometimes something like mysql.domain.com.
- $database_box: the name of the database
- $username_box: the user name
- $password_box: the password
- Edit config file /contacts/assets/config.php to include your preferred information:
- $BAS_mode: for testing purposes - see the config file. Otherwise leave blank.
- $BASnumimgchars: number of characters to use in the image.
- $BASaddimgnoise: add some random lines to the image.
- $BAS_companyname: Change this to your actual company name.
- $BAS_fromemail: Change this to the email that will be in the 'From' field for the 'Thanks' auto reply. Usually this will be something like 'noreply@domain.com'. This address either doesn't exist or is set to send all replies to the recycle bin.
- $BAS_colorscheme: You have a choice of green, sea, blue, red, purple or brown.
- $BAS_chars: You can choose between numbers, lower-case letters, uppercase letters or numbers with lower-case letters.
- Upload the entire contact folder to your webroot.
- Apache password protection method:
There are two files at "/contact/admin/temp/". We'll use those to protect the admininstrative area with a user name and password.
- The .htaccess file should actually go to /contact/admin/.htaccess
Edit this file so that the first line reads (most likely) thus:
"AuthUserFile /home/gr33nman/.htpasswd".
- The .htpasswd file should to /home/<path to file>/.htpasswd, most likely here:
/home/gr33nman
- Remove the temp folder.
- If you do not use this password protection scheme, please be sure to find another method to protect the administrative folder from prying eyes.
- Username: activistinabox
- Password: mintyfresh
- Change the user password by generating an apache password as appropriate.
- In a browser, go to http://www.yourdomain.com/contact/
Everything should work.
- DO NOT leave the administrative area unprotected. If you can't protect it immediately, edit the database until you're happy with the contacts you need, and delete the administrative interface temporarily until you have time to figure it out.
|
|
 |