|
Install DataBreeze components for the Apache ModPerl Server
|
5 of 10
|
The Apache ModPerl Server will function as the Application Server, generating all Dynamic DataBreeze content. Program code, configuration and data files must be loaded properly for operation and security.
|
DataBreeze Source Code Library (dbz_code)
|
|---|
|
The .pm Perl Source Code files contain all program code for the DataBreeze system. This code will be accessed by the Entry Script and loaded into the Apache ModPerl Server each time it is started. In this demonstration the DataBreeze source code files are placed in /opt/dbz/DBZ/
|
# mkdir /opt/dbz
# cd /opt/dbz
Download the DataBreeze Source Code dbz_code
# gunzip dbz_code-x.x.tar.gz
# tar xvf dbz_code-x.x.tar
# chown -R www:root DBZ/
# chmod -R o-rwx DBZ/
# chmod -R u+r DBZ/
| |
Install Notes:
These files must NOT be directly accessible by the Web Server
These files have read permission by the Web Server User
These files contain the core of the DataBreeze system and should be secured from unauthorized access
| |
|
DataBreeze Metadata files (dbz_data)
|
|---|
|
The Metadata text files contain all user and database data that configures the DataBreeze System. In this demonstration, the DataBreeze Metadata files are placed in /opt/dbz/data/.
|
# cd /opt/dbz
Download the DataBreeze Metadata dbz_data
# gunzip dbz_data-x-x.tar.gz
# tar xvf dbz_data-x-x.tar
# chown -R www:root data/
# chmod -R o-rwx data/
# chmod -R u+rwx data/
| |
Install Notes:
These files must NOT be directly accessible by the Web Server
These files must have read and write permission by the Web Server User/Group
These files contain system data and configuration and should NOT be read or write accessible from other accounts.
| |
|
DataBreeze Entry Script (dbz)
|
|---|
|
The Entry Script is the single point of entry made from the Apache Web Server to the DataBreeze Source Code. It must be placed in a ModPerl enabled script directory in the ModPerl Apache configuration (similar to a cgi-bin) and called on each access. In this example, the DataBreeze Entry Script file is placed in /opt/script/.
|
# mkdir /opt/script
# cd /opt/script
Download the DataBreeze Entry Script dbz
# chown www:root dbz
# chmod o-rwx dbz
# chmod u+x dbz
|
Install Notes:
The Entry Script file must have execute permission by the Web Server User/Group
| |
|
Perl preload script (preload.pl)
|
|---|
|
The preload.pl file is a Perl script that will be called by the Apache ModPerl Server to preload/precompile the DataBreeze Source Code. This activity is performed upon startup of the Apache ModPerl Server and will facilitate faster access of DataBreeze code. In this example, the preload file is located in /opt/conf/
|
# cd /opt/conf
Download the Preload File preload.pl
# chown root:root /opt/conf/preload.pl
# chmod +x /opt/conf/preload.pl
| |
This file provides two things:
Calls the Apache registryloader to preload the DataBreeze libraries by loading the 'dbz' Entry Script.
Defines the sub My::ProxyRemoteAddr function that works with the mod_proxy_add_forward module to forward information from the SSL Apache Server to the ModPerl Apache Server.
| |