当前位置: 首页 > wzjs >正文

网站建设教程软件建站系统主要包括

网站建设教程软件,建站系统主要包括,百度快照什么意思,网站商城开发独立站PrestaShop安装 独立站PrestaShop安装系统需求下载PrestaShop浏览器下载命令行下载 解压PrestaShop创建数据库移动PrestaShop源码到web目录composer安装依赖包nginx配置访问域名进入安装页面选择语言许可协议系统兼容性店铺信息Content of your store系统配置数据库店铺安…

独立站PrestaShop安装

  • 独立站PrestaShop安装
    • 系统需求
    • 下载PrestaShop
      • 浏览器下载
      • 命令行下载
    • 解压PrestaShop
    • 创建数据库
    • 移动PrestaShop源码到web目录
    • composer安装依赖包
    • nginx配置
    • 访问域名进入安装页面
      • 选择语言
      • 许可协议
      • 系统兼容性
      • 店铺信息
      • Content of your store
      • 系统配置数据库
      • 店铺安装
    • 命令行脚本安装
      • 进入安装目录
      • 安装脚本参数
      • 删除parameters.yml和parameters.php
      • 执行安装脚本

独立站PrestaShop安装

系统需求

System: Unix, Linux, or Windows.
MySQL: 5.7 or later.
PHP: 8.1 or later.
In your php.ini file:
Useful settings

allow_url_fopen set to “On” ✅,
register_globals set to “Off” ❌,
upload_max_filesize set to “16MB” or more.
Must have PHP extensions:

CURL
DOM
Fileinfo
GD
Intl
Mbstring
Zip
JSON
Iconv

Useful server tools:
Cron/Crontab, Memcached.

下载PrestaShop

浏览器下载

下载页面

https://github.com/PrestaShop/PrestaShop/releases

在这里插入图片描述

命令行下载

wget https://github.com/PrestaShop/PrestaShop/archive/refs/tags/8.1.7.tar.gz

解压PrestaShop

tar -zxvf 8.1.7.tar.gz

创建数据库

在这里插入图片描述

移动PrestaShop源码到web目录

mv /usr/local/src/8.1.7/* /www/wwwroot/www.prestashop817.com/

composer安装依赖包

composer install

在这里插入图片描述
注: 安装过程中symfony老是会安装失败,请多次尝试

nginx配置

server
{listen 80;server_name www.prestashop817.com;index index.php index.html index.htm default.php default.htm default.html;root /www/wwwroot/www.prestashop817.com;#CERT-APPLY-CHECK--START# 用于SSL证书申请时的文件验证相关配置 -- 请勿删除include /www/server/panel/vhost/nginx/well-known/www.prestashop817.com.conf;#CERT-APPLY-CHECK--END#SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则#error_page 404/404.html;#SSL-END#ERROR-PAGE-START  错误页配置,可以注释、删除或修改error_page 404 /404.html;#error_page 502 /502.html;#ERROR-PAGE-END#PHP-INFO-START  PHP引用配置,可以注释或修改## include enable-php-81.conf;#PHP-INFO-END#REWRITE-START URL重写规则引用,修改后将导致面板设置的伪静态规则失效location / {try_files $uri $uri/ /index.php$is_args$args;}location /admin-dev/ {try_files $uri $uri/ /admin-dev/index.php$is_args$args;}#REWRITE-END#禁止访问的文件或目录location ~ ^/(\.user.ini|\.htaccess|\.git|\.env|\.svn|\.project|LICENSE|README.md){return 404;}#一键申请SSL证书验证目录相关设置location ~ \.well-known{allow all;}#禁止在证书验证目录放入敏感文件if ( $uri ~ "^/\.well-known/.*\.(php|jsp|py|js|css|lua|ts|go|zip|tar\.gz|rar|7z|sql|bak)$" ) {return 403;}location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)${expires      30d;error_log /dev/null;access_log /dev/null;}location ~ .*\.(js|css)?${expires      12h;error_log /dev/null;access_log /dev/null;}access_log  /www/wwwlogs/www.prestashop817.com.log;error_log  /www/wwwlogs/www.prestashop817.com.error.log;####################prestashop官方配置##############################client_max_body_size 16M;error_page 404 /index.php?controller=404;# Images.rewrite ^/(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$1$2.jpg last;rewrite ^/(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$1$2$3.jpg last;rewrite ^/(\d)(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$3/$1$2$3$4.jpg last;rewrite ^/(\d)(\d)(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg last;rewrite ^/(\d)(\d)(\d)(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg last;rewrite ^/(\d)(\d)(\d)(\d)(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg last;rewrite ^/(\d)(\d)(\d)(\d)(\d)(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg last;rewrite ^/(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(-[\w-]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg last;rewrite ^/c/([\w.-]+)/.+\.jpg$ /img/c/$1.jpg last;# AlphaImageLoader for IE and FancyBox.rewrite ^images_ie/?([^/]+)\.(gif|jpe?g|png)$ js/jquery/plugins/fancybox/images/$1.$2 last;# Web service API.rewrite ^/api/?(.*)$ /webservice/dispatcher.php?url=$1 last;# Installation sandbox.rewrite ^(/install(?:-dev)?/sandbox)/.* /$1/test.php last;# .htaccess, .DS_Store, .htpasswd, etc.location ~ /\. {deny all;}# Source code directories.location ~ ^/(app|bin|cache|classes|config|controllers|docs|localization|override|src|tests|tools|translations|var|vendor)/ {deny all;}# vendor in modules directory.location ~ ^/modules/.*/vendor/ {deny all;}# Prevent exposing other sensitive files.location ~ \.(log|tpl|twig|sass|yml)$ {deny all;}# Prevent injection of PHP files.location /img {location ~ \.php$ { deny all; }}location /upload {location ~ \.php$ { deny all; }}location ~ [^/]\.php(/|$) {# Split $uri to $fastcgi_script_name and $fastcgi_path_info.fastcgi_split_path_info ^(.+?\.php)(/.*)$;# Ensure that the requested PHP script exists before passing it# to the PHP-FPM.try_files $fastcgi_script_name =404;# Environment variables for PHP.include fastcgi_params;fastcgi_param SCRIPT_FILENAME $request_filename;fastcgi_index index.php;fastcgi_keep_conn on;proxy_connect_timeout 100s;fastcgi_read_timeout 100s;fastcgi_send_timeout 100s;# Uncomment these in case of long loading or 502/504 errors.# fastcgi_buffer_size 256k;# fastcgi_buffers 256 16k;# fastcgi_busy_buffers_size 256k;# [EDIT] Connection to PHP-FPM unix domain socket.fastcgi_pass unix:/tmp/php-cgi-81.sock;}}

访问域名进入安装页面

选择语言

在这里插入图片描述
注: 首次安装程序会下载中文语言包,可自行连接VPN保证下载成功

许可协议

在这里插入图片描述

系统兼容性

在这里插入图片描述
我们web服务用的是nginx报错是Aapche,这是安装程序的BUG
我们修改项目目录的modules目录及里面的文件权限为0777

chmod 0777 modules -R

刷新信息
在这里插入图片描述
在这里插入图片描述

店铺信息

在这里插入图片描述

在这里插入图片描述

Content of your store

在这里插入图片描述

系统配置数据库

在这里插入图片描述
在这里插入图片描述

店铺安装

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

命令行脚本安装

如果页面安装失败报504错误且多次尝试无果,请采用安装脚本进行安装

进入安装目录

cd install-dev

在这里插入图片描述

安装脚本参数

To start the installation, you need to 5 arguments:

domain. The location where you want your store to appear.

db_server. The database server address.

db_name. The name of the database you want to use.

db_user. The username for the database you want to use.

db_password. The password for the database username used above.

删除parameters.yml和parameters.php

如果之前进行过页面安装操作需要删除app/config/parameters.yml和app/config/parameters.php

cd app/config
rm -f parameters.yml
rm -f parameters.php

执行安装脚本

chmod 0777 var/ -R
cd ..
chown www:www www.prestashop817.com/ -R
cd www.prestashop817.com/install-dev
php index_cli.php --domain=www.prestashop817.com --db_server=127.0.0.1 --db_name=prestashop_817 --db_user=root --db_password=123456789
http://www.dtcms.com/wzjs/299161.html

相关文章:

  • 公司网站建立流程百度竞价点击一次多少钱
  • 做网站运营用什么软件石家庄网络推广
  • 帮人做海报的网站谷歌搜索引擎香港免费入口
  • 聪明的上海网站柳州今日头条新闻
  • 还有哪些网站可以做淘宝活动网络文章发布平台
  • 建设西安网站关键词优化的发展趋势
  • 网站怎么做返回主页按钮怎样宣传自己的产品
  • 网站后台尺寸一般做多大的南宁seo推广公司
  • 阿里网站建设费用seo培训机构哪家好
  • 做网站什么样的域名好搜客
  • 哪里网站备案长春网站开发
  • asp做网站很少sem是什么牌子
  • 嘉定西安网站建设微营销平台
  • 注册外国网站百度投诉中心24人工客服
  • 网站关键词密度怎么计算的深圳百度开户
  • 长沙网站推广公司哪家好北京关键词排名推广
  • 深圳商城网站建设报价单seo网络优化培训
  • 国外大型门户网站外贸平台哪个网站最好
  • 好用的建站系统外贸网站模板
  • 天津自动seo网站优化怎么操作
  • 宿迁市住房和城乡建设局网站东莞网站制作的公司
  • 高职图书馆网站建设大赛seo数据监控平台
  • 徐州丰县建设局网站推广代理平台
  • 南京网站制作公司招聘seo外链在线提交工具
  • 东莞塘厦网站建设制作网站要找什么公司
  • php 怎么做网站超链接黑帽seo培训
  • 九江茶叶网站建设站长权重
  • 哪个网站做外贸比较好优化大师官方正版下载
  • 黄页网站大全免费哪里做网络推广
  • 搭建专业网站服务器雅思培训机构哪家好机构排名