*** empty log message ***
[fa-stable.git] / install.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><title>FrontAccounting</title></head>
3 <body>
4 <div><strong><span style="font-size: 20pt;"><span style="color: rgb(204, 102, 0); font-style: italic;">Front</span>Accounting
5 Installation</span></strong></div>
6 <h2>Pre-requisites</h2>
7 <ul style="margin-top: 0pt;" type="disc">
8 <li>A working HTTP web server eg. <em><strong>Apache,
9 IIS</strong></em>. </li>
10 <li><strong><em>PHP</em></strong>
11 installed on the web server. </li>
12 <li>A working <strong><em>MySQL</em></strong>
13 server - with <strong><em>innodb</em></strong>
14 tables enabled (see notes below) </li>
15 <li><strong><em>Adobe Acrobat Reader</em></strong>
16 - for viewing the PDF reports before printing them out. </li>
17 </ul>
18 <h2>Important Notes</h2>
19 <ul>
20 <li>One critical aspect of the PHP installation is the setting
21 of <strong><em>session.auto_start</em></strong>
22 in the php.ini file. Some rpm distributions of PHP have the default
23 setting of <strong><em>session.auto_start = 1</em></strong>.
24 This starts a new session at the beginning of each script. However,
25 this makes it impossible to instantiate any class objects that the
26 system relies on. Classes are used extensively by this system. When
27 sessions are required they are started by the system and this setting
28 of <strong><em>session.auto_start</em></strong>
29 can and should be set to 0. </li>
30 <li><strong><em>Innodb</em></strong>
31 tables must be enabled in the MySQL server. These tables allow database
32 transactions which are a critical component of the software. This is
33 enabled by default in the newer versions of MySQL. If you need to
34 enable it yourself, consult the MySQL manual. </li>
35 <li>FrontAccounting is implemented and tested with MySQL.
36 Generally
37 it should work with other databases, but this is not supported in any
38 way at the moment. </li>
39 </ul>
40 <h2>Copying all the project files to the correct directory</h2>
41 <ul>
42 <li>You must obviously have downloaded the project archive to
43 be reading this file. </li>
44 <li>All the files inside this archive should be copied to a
45 directory under the web server root directory. </li>
46 <li>For example, create a folder called <strong>/account</strong>,
47 and extract the archive into this folder. </li>
48 </ul>
49 <h2>Installation Steps (automatic, recommended)</h2>
50 <ol>
51 <li>If you have the option to create multiple databases on your
52 host, create one, fi. <strong>frontacc</strong>, otherwise
53 write down the database name for your account. At the same time look up
54 the username and password for the database. You will need these
55 informations during the wizard install. </li>
56 <li>Enter <strong><em>your_url/account/install</em></strong>
57 (or whatever directory you entered). This will run the install wizard,
58 setup a drill company and populating with initial data. You can later
59 on create your own real company. It is a good idea to get familiar with
60 the system before starting your own company.&nbsp; </li>
61 <li>After successfully install, remove or rename your install
62 directory for safety reasons. You don't need it any more.</li>
63 </ol>
64 <h2>Installation Steps (manuel, for advanced users, not
65 recommended)</h2>
66 <p><br />
67 </p>
68 <ol>
69 <li>
70 <h3>Creating the Database</h3>
71 <ol>
72 <li>NOTE : As FrontAccounting is still heavily under
73 development, the database structure will ALWAYS change between
74 releases, so if you have a database that you created for a previous
75 release of FrontAccounting, it WILL NOT WORK after installing a new
76 release. You may run the script, update_db.php and select the
77 appropriate script, f.i. alter.sql&nbsp; and alter2.sql (from
78 release 1.XX to release 2.0). </li>
79 <li>We strongly suggest using a GUI to manage your
80 database(s) and database users. If you don&#8217;t have any, download <a href="http://www.phpmyadmin.net/"><strong>phpMyAdmin</strong></a>.
81 </li>
82 <li>Create a database with a name of your choice. The
83 default in config_db.php is &#8216;<strong><em>frontacc</em></strong>&#8217;,
84 but of course you can select whatever name you desire. </li>
85 <li>Populate the database you have created. There are two
86 scripts
87 are provided to populate the database (both inside the folder /sql) :
88 <ol>
89 <li><strong><em>en_US-demo.sql</em></strong>.
90 This has a minimal amount of demonstration data set up so that
91 transactions can be tried to see how the system works. </li>
92 <li><strong><em>en_US-new.sql</em></strong>.
93 This script has
94 only the basic data necessary to start a new company system off. If you
95 wish to set up your company on FrontAccounting then this is the script
96 to use. </li>
97 </ol>
98 </li>
99 <li>Now that the database is created you will need to set
100 up a database user to access this database. DO NOT USE THE USER &#8216;ROOT&#8217;.
101 Set up a new user and give that user full privileges over the database
102 &#8216;frontacc&#8217;. </li>
103 <li>After successfully install, remove or rename your
104 install directory <strong><em>your_url/account/install</em></strong>
105 (or
106 whatever directory you entered) for safety reasons. You don't need it
107 any more.</li>
108 </ol>
109 </li>
110 <li>
111 <h3>Editing config_db.php</h3>
112 <ol>
113 <li><strong><em>config_db.php</em></strong>
114 contains connection information for the database. These must be set to
115 your local settings or you will not be able to access FrontAccounting. </li>
116 <li>FrontAccounting allows multiple connections, you can
117 enter as many connections as you have separate entities (most people
118 will use only one). </li>
119 <li><strong>$db_connections</strong> is an
120 array of connections &#8211; for each connection : </li>
121 <li>&#8220;<strong>name</strong>&#8221; is the name of the
122 connection, this is the name that will be displayed to the user </li>
123 <li>&#8220;<strong>host</strong>&#8221; is the computer IP
124 address or name where the database is. The default is localhost
125 assuming that the web server is also the sql server. </li>
126 <li>&#8220;<strong>dbuse</strong>r&#8221; is the user name
127 under which the database should be accessed. NB, again, do not use the
128 user ROOT. A user with appropriate privileges must be set up. </li>
129 <li>&#8220;<strong>dbpassword</strong>&#8221; is the
130 password for &#8220;dbuser&#8221;. You would have entered this when you created
131 &#8220;dbuser&#8221;. </li>
132 <li>&#8220;<strong>dbname</strong>&#8221; is the name of
133 the database. The provided scripts use the name OpenAccounting. </li>
134 <li>&#8220;<strong>tbpref</strong>&#8221; is the table
135 prefix for
136 the tables. If you only have access to one database, you must use table
137 prefix to separate the companies. Table prefix is set by a table prefix
138 counter inside config_db.php, fi. 0_ for the first company.</li>
139 </ol>
140 </li>
141 </ol>
142 <h2>&nbsp;Logging In For the First Time</h2>
143 <ol>
144 <li>Pleae ensure that the folder <strong>/company/0</strong>
145 on the server is <strong>writable</strong>. </li>
146 <li>Open a browser and enter the URL for the web server
147 directory where FrontAccounting is installed. </li>
148 <li>Enter the user name:&nbsp; '<strong>admin</strong>'
149 </li>
150 <li>Enter the password: '<strong>password</strong>'
151 </li>
152 <li>(NB : enter without quotation marks). </li>
153 <li>
154 <div>You can set up additional user accounts from the System
155 Setup
156 tab. Be careful not to delete the demonstration user until a new user
157 has been set up. If there are no users defined the next time you try to
158 login you won't be able to. The only way then to create a user to login
159 with is to manually edit the SQL table "users" to insert a user.</div>
160 </li>
161 </ol>
162 <h2>Setting Up Company Specific Data</h2>
163 <ol>
164 <li>All the standing configuration data is defined from the
165 Setup tab
166 and each link should be reviewed to enter appropriate data for the
167 business. Setup wizards that guide you through this process has been
168 implemented and we strongly recommend you to use this approach, see <strong><em>Installation
169 steps (automatic, recommended)</em></strong> . </li>
170 </ol>
171 <h2>Troubleshooting</h2>
172 <ol>
173 <li>If FrontAccounting is installed locally, you may have the <strong><em>session
174 save path</em></strong> not set correctly. Normally this is
175 set in your php.ini (for Windows). The entry is called <strong><em>session.save_path</em></strong>.
176 Make sure this is set to a directory that actually exists. The default
177 is set to /tmp, which may not be valid. </li>
178 <li>If you are installing FrontAccounting onto a shared server,
179 you may have to set the session save path within FrontAccounting. At
180 the top of&nbsp;
181 /includes/session.inc you will find this line : </li>
182 <li>Uncomment this line and set the path to a directory that
183 exists
184 on your server. Make sure that you have read/write privileges on this
185 directory. </li>
186 </ol>
187 <p>&nbsp;</p>
188 </body></html>