ZentaoPHP framework enables the configuration and maintenance of ZenTao through commands.
The command line is very powerful, but it is a little bit complicated. So common scripts, such as scripts to back up the database and to update Burndown chart, have been provided in ZenTao 4.0+. Next, let's initialize these scripts.
After ZenTao is installed, there will be two scripts in zentao/bin, init.bat and init.sh, which is applicable to Windows and Linux respectively. These two scripts are basically used to generate command lines. Why is it configured like this? Scripts, such as checkdb.php and backup.php in bin was included in ZenTao, but these scripts must be configurated before using it. Once ZenTao is updated to the latest version, all the modified scripts will be overridden. So these two init scripts are provided to generate other scripts in ZenTao 4.0+. Now, let’s look at how to generate those scripts.
1. Windows
Use init.bat script in the Windows. For example, ZenTao is installed in i:\xamppcd i:\xampp\zentao\bin init.bat


- This script will notify you to enter the PHP file path, i:\xampp\php\php.exe. If another PHP environment is running, please enter your actual path.
- You also need to enter ZenTao URL. Please enter your actual domain, e.g. pms.abc.com. If the Port Number is not 80, you also need to enter the port number. Notes: For the one-click installation package for Windows or Linux, the address is http://127.0.0.1:88/zentao (http://127.0.0.1:88/pro for the Pro version). "zentao" must be included (for the professional version, include "zentaopro").
- When the path of PHP executable files is set, init.bat will automatically generate scripts, such as backup.bat and computeburn.bat.
2. Linux
For Linux,
init.sh is used. Take the Linux one-click installation package as an example.cd /opt/lampp/zentao/bin sudo ./init.sh


- This script will ask you to enter the path of php executable files, so enter /opt/lampp/bin/php. For other PHP environments, please enter your actual path.
- You also need to enter the URL of ZenTao. Please do it according to you actual domain, e.g. pms.abc.com. If the Port Number is not 80, you also need to enter the port number.
- When the path of PHP executable files is set, init.bat will automatically generate scripts, such as backup.bat and computeburn.sh.
3. Generate a one-click installation package via the control panel for Windows
For Windows one-click installation package, scripts can be generated through the control panel.
Notes: The access path of ZenTao is automatically calculated, when the scripts are generated through the control panel. So it might not be right. If it is wrong, you can execute init.bat manually to regenerate scripts.
4. Generate a one-click installation package through the control panel for Linux
For Linux one-click installation package, scripts will be automatically generated when executing start or start88 script to start ZenTao runtime. The scripts can be regenerated later through the init.sh mentioned above.Notes: When generated through start or start88 script, the access path to ZenTao is automatically calculated. So it may be wrong. If it is wrong, you can execute init.sh manually to regenerate scripts.