魔众短链接系统安装说明

魔众短链接系统 / 文档中心
文档中心
开发教程
安装常见问题

一定先看

在阅读本文档安装系统时,请确保您已经 熟练掌握 如何使用 apachenginx 的进行网站系统的配置方法。
如果您 稍微懂一点不是很了解了解甚少,请直接购买我们的 付费安装服务,同时把服务器信息、需要安装的系统源码提供给我们,我们会帮您配置并安装系统。
因为每个人的系统环境千差万别,很多问题没有统一的解决办法,所以遇到问题一定找懂技术的人员进行错误排查,或者直接购买我们的 付费安装服务

环境要求

操作系统
Linux/UnixWindows

软件环境
Laravel 5.1 的运行环境,Apache/Nginx , PHP 5.6PHP 7.0 , MySQL 5.7

安装步骤

  1. 配置 apache/nginx 服务器,请将网站的根目录配置到 <网站目录>/public
  2. 访问 http://www.example.com/install.php
  3. 使用安装引导向导进行安装;

Nginx参考配置

server {
    listen       80;
    server_name  demo.tecmz.com;
    charset utf-8;
    index index.php index.html;
    root /var/www/html/demo.tecmz.com/public;
    autoindex off;

    location ^~ /.git {
        deny all;
    }

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  PHP_VALUE  "open_basedir=/var/www/html/demo.tecmz.com/:/tmp/:/var/tmp/";
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        include fastcgi_params;
    }

    location ~ \.(gif|jpg|jpeg|png|bmp|ico|css|js)$ {
       expires max;
    }

    location ~* \.(eot|ttf|woff|woff2)$ {
        add_header Access-Control-Allow-Origin '*';
    }

}

Apache参考配置

<VirtualHost *:80>
      ServerName www.example.com
      DocumentRoot d:/wwwroot/example.com/public
</VirtualHost>
QQ
微信
公众号