Installing the Server Back End

After all you've gone through installing the lane, this will be no problem.

Install MySQL, Apache, PHP and openssh as you did on the lane, except that /var/www/ in /etc/apache2/sites-available/default should be replaced with /pos/fannie/ Make sure that /etc/apache2/apache2.conf has the lines

ServerName 127.0.0.1
DirectoryIndex index.php

unpack the same file that you use for the lane, pos.tar.gz in the root directory "/" on your server.

tar -zxvf pos.tar.gz
You will, once again, have all your files, server and lane, in /pos. You don't need the files in /pos/is4c, you can delete that directory if you like. The databases that have to be installed on the server are is4c_op and is4c_log. The database schema are in
/pos/installation/mysql/is4c_op and
/pos/installation/mysql/is4c_log

The section on database installation discusses the role of the server. To reiterate, is4c_op contains master copies of operational data table, while is4c_log contains the transaction log that holds all the sales records from the lanes. To set up these databases, we run the script /pos/installation/server_db-install. Make the script executable if it is not.

chmod 755 /pos/installation/server_db-install

Read the section on server-lane connection and edit /pos/installation/mysql/script/create_server_db if you need to. Run the script.

/pos/installation/server_db-install
If there are no error messages, that's it.

Next, let's take a look at the back end application, Fannie

Introduction Fannie