1.OpenCms Server Installation Steps
1.1 Install Java JDK, need 1.5 or newer version;
1.2 Install Tomcat;
1.3 Install MySQL;
1.4 Download the war package and deploy the Opencms.war package;
1.5 through the browser to access the http://localhost:8080/opencms/setup/address, follow the prompts to configure the steps can be;
Specific steps can be official address reference: http://www.opencms.org/en/development/installation/server.html, have detailed process
The following error occurred in the 2.1.5 configuration because the MySQL default configuration max_allowed_packet less than the 16M value required by OpenCms:
Note: The Max_allowed_packet parameter is only available after Mysql4, in Mysql4 Previous version, there is no such parameter
The following error occurred while installing OPENCMS:
MySQL system variable ' max_allowed_packet ' is set to 1048576 Byte (1MB).
Please note that it is not is possible for OpenCms to handle files bigger than this value in the VFS.
Error while checking the server configuration!
-------------------------------------------
Your ' max_allowed_packet ' variable is set to less than 16777216 Byte (16MB).
The required value for running OpenCms are at least 16MB. Please change your MySQL configuration (in the My.ini or my.cnf file).
Solution to this problem:
1. You can see through the Mysqlworkbench-server status check configuration file:/etc/my.cnf configuration file location, but to find when there is no such file, the installation of MySQL did not generate;
2. Find the location of my.cnf through the command of MySQL, and found no my.cnf file;
localhost:~ apple$/usr/local/mysql-5.7.17-macos10.12-x86_64/bin/mysql--help | grep my.cnf
Order of preference, MY.CNF, $MYSQL _tcp_port,
/ETC/MY.CNF/ETC/MYSQL/MY.CNF/USR/LOCAL/MYSQL/ETC/MY.CNF ~/.my.cnf
3. Later Niang search Reference http://blog.csdn.net/u013679882/article/details/52919874 address found you can modify the My-default.cnf file, and then change to my.cnf copy to/ Etc under the/usr/local/mysql/support-files can have a my-default.cnf, as long as the file copied to the/etc/, then renamed the good
3.1 Edit File Step vi/etc/my.cnf
3.2 Insert max_allowed_packet=100m, this value is greater than or equal to 16M
3.3 Press ESC and press: WQ Save
3.4 You need to turn off MySQL to restart the MySQL settings value will not take effect
Need to know more installation details can refer to: Http://www.tuicool.com/articles/Rz2Uj2I