|
Configuring Batch Processor |
|
|
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:
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. |