SureInvoice Setup Instructions

1. Install the required PEAR libraries.

	DB
	Mail_MIME

This is typically done by using the pear command line utility. The
utility will prompt you to install any package dependencies. These
two PEAR packages are often installed with the base PEAR packages.

2. Create the database and user. Connect to mysql using the command 
line utility and run the following 2 SQL commands. IMPORTANT: Change
the password in the second command.

CREATE DATABASE sureinvoice;
GRANT ALL ON sureinvoice.* TO sureinvoice@localhost IDENTIFIED BY 'password';

3. Configure the database settings in the includes/global_config.php
file. You can copy includes/global_config.php.dist as a starting point. 
You should also adjust the text and logo to be displayed on 
the invoices in this file.

4. Import the setup/sureinvoice.sql file into the database you 
created in step 2. Assuming you used the db name of sureinvoice 
the following command should work.

mysql sureinvoice <sureinvoice.sql

5. Import the setup/sureinvoice_initial_data.sql file into the 
database you created in step 2. Assuming you used the db name 
of sureinvoice the following command should work.

mysql sureinvoice <sureinvoice_initial_data.sql

SureInvoice is now setup you will be able to login using the id admin and the
with admin as the password. You can now use this ID to create your 
user accounts and companies.

6. Once logged in immediately go to Global Config in the ADMIN MENU 
and update the application paths by setting the following application 
variables and clicking the save button.

error_log - Full path to a writable file for logging
debug - 1 enables debug mode and 0 disables it
attachment_dir - Full system path to the dir used to store attachments
url - HTTP URL to the root of the SureInvoice installation
path - File system path to the root of the SureInvoice installation

