安装opencart

 一、安装模板

Install SO Emarket Opencart 4 Theme
一:so_emarket_quick2
二:theme package installation
1、installed opencart Default
2、Extensions->Installer->Upload->so_emarket_theme_oc4011_home21_to_home35_v2.0.3->so_theme.ocmod.zip->Install
3、Extensions->Extensions->Modules->install Theme Control Panel
4、Users->Users Groups->Administrator->Permissions
5、extract image file, coppy and paste into installation folder: image->catalog folder
6、Go to Extensions->Edit->Theme Control Panel->Choose any layout that you want to use.
7、Design->layouts->edit home
8、Select the correct homepage that you selected in the previous step in So Page Builder.
9、refresh the frontend again




Install So Revo Theme for OpenCart 3
1、Go to Admin to install theme : installed->upload
2、Extensions->Modules->Theme Control Panel->Install
3、Change the permission of Administrator
4、Modification->Refresh
5、Overview the setting of So Revo theme
6、View the frontpage

二、服务器布置

 设置网站用户权限
 chown -R www:www /home/wwwroot/www.***.com/
 
 设置open_basedir防跨目录
 vim /usr/local/nginx/conf/fastcgi.conf
 chattr -i /home/wwwroot/www.***.com/.user.ini
 https://lnmp.org/faq/lnmp-vhost-add-howto.html
 
 设置storage
 cp -r /home/wwwroot/www.***.com/system/storage/* /home/wwwroot/storage/
 chown -R www:www /home/wwwroot/storage/

三、rewrite规则

location / {
    if ($host != 'www.***.com') {
	    rewrite ^/(.*)$ https://www.***.com/$1 permanent;
	}
    #try_files $uri @opencart;
    try_files $uri $uri/ @opencart;
}

location @opencart {
    rewrite ^/sitemap.xml$ /index.php?route=extension/feed/google_sitemap last;
    rewrite ^/googlebase.xml$ /index.php?route=extension/feed/google_base last;
    rewrite ^/payment_callback/(.*) /index.php?route=extension/payment/$1/callback last;
    rewrite ^/callback/(.*) /index.php?route=extension/module/social/login&provider=$1 last;
    rewrite ^/system/download/(.*) index.php?route=error/not_found last;
    rewrite ^/blog$ /index.php?route=panda/blog last;
    rewrite ^/(.+)$ /index.php?_route_=$1 last;
}

location /admin/ {
    index index.php;
}

location = /robots.txt {
    allow all;
}

location ~* (\.(js|css|png|jpg|jpeg|gif|ico|otf|eot|svg|ttf|woff|woff2))$ {
    expires max;
}

location ~* (\.(tpl|ini|twig|log))$ {
    deny all;
}

systerm->Setting->Server->seourl开启

四、opencart-3-0版本菜单导航栏添加文章链接修改:

opencart 3.0版本菜单导航栏添加文章链接修改 - OpenCart - 中文官方网站 | 免费开源商城系统 - OpenCart模板|OpenCart二次开发|OpenCart插件|OpenCart微信|OpenCart APP

五、

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值