implementation based on Lnmp e-commerce website:
1. Yum- style installation of mariadb, mariadb-server, php-mysql , php, php-fpm
650) this.width=650; "Src=" Https://s3.51cto.com/oss/201711/03/4b9d61bec6073142e69d0dc441a8e79f.png-wh_500x0-wm_3 -wmp_4-s_2087237533.png "title=" installation. png "alt=" 4b9d61bec6073142e69d0dc441a8e79f.png-wh_ "/>
2. Download the Xiaomi Mall source code, unzip to /data/web directory, modify permissions to Nobody
650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/03/d115c47fa1bbfe6b6a198c040def824c.png-wh_500x0-wm_3 -wmp_4-s_1464824721.png "style=" Float:none; "title=" Create directory and unzip. png "alt=" D115c47fa1bbfe6b6a198c040def824c.png-wh_ "/ >
650) this.width=650; "Src=" Https://s5.51cto.com/oss/201711/03/e62879ad395d14590b676cfc73dc5eff.png-wh_500x0-wm_3 -wmp_4-s_3547390849.png "style=" Float:none; "title=" Changes the user and its owning group. png "alt=" E62879ad395d14590b676cfc73dc5eff.png-wh_ " />
3. Modifications Nginx configuration, put Nginx.conf.default template replication modifies the configuration file to specify that the site access directory is
/data/web , and set the default user and configuration with PHP-FPM Interactive
650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/03/46c6f0daae4da8bba4250ded25c333d4.png-wh_500x0-wm_3 -wmp_4-s_158399874.png "style=" Float:none; "title=" Edit Profile 1.png "alt=" 46c6f0daae4da8bba4250ded25c333d4.png-wh_ "/ >
650) this.width=650; "Src=" Https://s3.51cto.com/oss/201711/03/e5ca257dd120327e76082375b0dac6fb.png-wh_500x0-wm_3 -wmp_4-s_299176732.png "style=" Float:none; "title=" Edit Profile 2.png "alt=" E5ca257dd120327e76082375b0dac6fb.png-wh_ "/ >
650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/03/ccf9104c1ffb1bb3722f87720e0b3786.png-wh_500x0-wm_3 -wmp_4-s_744037192.png "style=" Float:none; "title=" 3.png "alt=" Ccf9104c1ffb1bb3722f87720e0b3786.png-wh_ "/>
650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/03/0aa27b70d163b5b7f76030954207493f.png-wh_500x0-wm_3 -wmp_4-s_1529832675.png "style=" Float:none; "title=" 4.png "alt=" 0aa27b70d163b5b7f76030954207493f.png-wh_ "/>
4. Modify php.ini # Modify the clock configuration date.timezone = Asia/shanghai
# can be in php.ini short_open_tag = on
# nginx
Accessing app configuration Modifications
1 , modify Server segment plus default working path, accessible to Web programs
2 , modify PHP Extended Parse file path modified to
Fastcgi_param script_filename $document _root$fastcgi_script_name;
650) this.width=650; "Src=" Https://s2.51cto.com/oss/201711/03/75788f83213315e72c59234bcf7cc341.png-wh_500x0-wm_3 -wmp_4-s_8918990.png "style=" Float:none; "title=" creates a database. png "alt=" 75788f83213315e72c59234bcf7cc341.png-wh_ "/>
650) this.width=650; "Src=" Https://s2.51cto.com/oss/201711/03/5434dcf9975bc7ebf4281592bae6da06.png-wh_500x0-wm_3 -wmp_4-s_4132432647.png "style=" Float:none; "title=" Changes the database file. png "alt=" 5434dcf9975bc7ebf4281592bae6da06.png-wh_ "/ >
650) this.width=650; "Src=" Https://s2.51cto.com/oss/201711/03/94a3a3212c38b5a1241f8e7ec6ba13c9.png-wh_500x0-wm_3 -wmp_4-s_844296951.png "style=" Float:none; "title=" restores the database file. png "alt=" 94a3a3212c38b5a1241f8e7ec6ba13c9.png-wh_ "/ >
650) this.width=650; "Src=" Https://s2.51cto.com/oss/201711/03/e996cd86f798ddbcea4890c36119de17.png-wh_500x0-wm_3 -wmp_4-s_2941594341.png "style=" Float:none; "title=" Login to view the site. png "alt=" E996cd86f798ddbcea4890c36119de17.png-wh_ "/ >
This article from "Linux" blog, declined reprint!
Implementing an e-commerce website based on LNMP