Configuring Batch Processor

Return to Introduction  Previous page  Next page

Batch Processor is a utility in the form of a single PHP script file named 'batch.php' located in the Control Panel root directory, which runs from the command line or cron using the PHP installation on your system.

The following requirements must be met before you can use the utility:

1. You must have CLI (Command Line Interface) version of PHP installed on your system to run the utility; it would not run under the CGI version of PHP.

2. LiteCommerce ASPE Batch Processor requires LiteCommerce ASPE Control Center to be installed and operable, since it utilizes shared classes of the Control Center installation.

3. It is essential to ensure that Batch Processor is set up securely. Take the following measures to enforce the security of Batch Processor:

the script must be owned by the store administrator and not the user that runs the web server application (like 'www' on UNIX systems or 'IUSR_<computername>' on Windows systems);
it must be readable, writable and executable by the owner and deny read, write and execute permissions to user group and others;
you can also modify the '.htaccess' file in the root folder of LiteCommerce ASPE installation to deny access to the 'batch.php' script through the web.
Note:If you to do not intend to use this utility on your LiteCommerce ASPE installation, it is safe to remove the 'batch.php' file completely.

Next, Batch Processor needs to be configured properly before use by setting up the necessary parameters in the 'batch.php' script:

1. Open 'batch.php' file in the text editor of your preference and find the 'Batch script configuration' section in the script.

2. This section contains configuration parameters that need to be defined:

// ================== Batch script configuration ==============================

$cfg['host'] = ''; // Server host name where batch is running. Must be equal to

// host name you were using during ASP installation.

$cfg['user'] = ''; // Control Center admin username (email)

$cfg['password'] = ''; // Control Center admin password.

$cfg['mysql_root_user'] = ''; // Privileged user to access MySQL database

$cfg['mysql_root_password'] = ''; // Use saved if empty.

$cfg['access-policy'] = 'web based'; // The default access policy.

$cfg['modules'] = ''; // The default modules set.

// ====================================================================

 

3. Save the modifications to the script. It is now ready to be used.