Preparations
Before embarking on the construction of the zen cart site, it is necessary to ensure that the server environment meets the following basic requirements: the operating system recommends linux (e. G. Centos, ubuntu, etc.), the web server recommends apace 2. 2+ or nginx 1. 8+, the database supports mysql 5. 1+ or mariadb 5. 1+, the php version requires 5. 6-7. 4 (recommendation 7. 2 or 7. 3), the preparation of a decrypted domain name and a server with sufficient storage space (at least 2gb memory, 10gbs storage space) and the installation of lamp (linux + apache+mysql+php) or lnmp environment through a server package management tool (e. G. Yum or apt), the need to check whether the php extension meets the requirements of zen cart, and the need to expand: curl, gd, mbstring, openssl, xml, zep, jsqli。
Download and install zen cart
Acquire installation packages: access to the zen cart network (www. Zen-cart. Com) to download the latest stable installation packages, which are currently v1. 5. 8, and upload the files to the server root directory (e. G. /var/www/HTML/), which can be uploaded through ftp tools (e. G. Filezilla) or command lines (e. G. Wget). Set directory privileges: enter the zen cart installation directory by command line and execute the following command settings:
# assume web server user is aaache chmod-r755 / find. /-type d-execchmod 777 \; # recursive settings to write permissions find. /-type f-execchmod 644 \; # recursive settings
Note: in the production environment, authority needs to be adjusted to safety requirements to avoid excessive openness。
Run installation wizard: access to domain names in browsers, e. G. Http://yourdomain. Com/zencart/, will automatically jump to the installation page and, if not, manually access install. Php in the dmin directory (http://yourdomain. Com/zencart/admin/install. Php)。
Configure database and site information
Start installation on the installation wizard page by clicking on "new information " , entering "datab "Please complete the database information by:

(photo-source network, hacking)
After filling out, click "next" for "site construction" steps setting basic site information: e. G. "my zen cart store"
After the configuration is completed, click " next " , the installation program will automatically create the database table and import the initial data, which takes about one to three minutes. Once installed successfully, the administrator login information will be displayed and must be saved (user name defaults admin, password is randomly generated string)。
Configure and optimize after installation




