GithubHelp home page GithubHelp logo

caixi / isign-php Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tanghengzhi/isign-php

0.0 0.0 0.0 82.64 MB

iOS 超级签名

PHP 53.67% JavaScript 27.52% Vue 0.01% CSS 2.66% HTML 14.48% Lua 0.01% Shell 0.01% Makefile 0.01% TSQL 1.35% Batchfile 0.01% PLpgSQL 0.03% Smarty 0.27%

isign-php's Introduction

安装步骤(Ubuntu 18.04 LTS)

  1. 安装软件
apt install nginx php-fpm php-mysql php-gd php-mbstring php-zip php-curl php-xml mysql-server git zip python-pip
  1. 克隆代码
cd /var/www/
git clone https://github.com/tanghengzhi/isign-php.git
chown -R www-data:www-data isign-php
  1. 配置 nginx

vi /etc/nginx/sites-available/isign-php

server {
        listen 80;
        listen [::]:80;

        server_name app.fvlrung.com;

        root /var/www/isign-php/public;
        index index.php;

        client_max_body_size 100M;

        location / {
                rewrite "^/([a-zA-Z0-9]{6})$" /user/install/index/$1 last;
                try_files $uri $uri/ /index.php?s=$uri&$args;
        }

        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
        }
}

ln -s /etc/nginx/sites-available/isign-php /etc/nginx/sites-enabled/ nginx -s reload

  1. 申请证书(Let's Encrypt)
sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update

sudo apt-get install certbot python-certbot-nginx
sudo certbot --nginx
  1. 配置 php-fpm

vi /etc/php/7.2/fpm/php.ini

upload_max_filesize = 100M

post_max_size = 100M

systemctl restart php7.2-fpm

  1. 配置 mysql
mysql -u root
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
FLUSH PRIVILEGES;

mysql -u root -p
CREATE DATABASE `isign-php`;
mysql -u root -p isign-php < /var/www/isign-php/isign-php.sql

echo "sql_mode=''" >> /etc/mysql/mysql.conf.d/mysqld.cnf
systemctl mysql restart
  1. 安装 isign
cd /var/www/
git clone https://github.com/apperian/isign.git
cd isign/
pip install .
  1. 后台地址:/admin

管理:admin 密码123456

isign-php's People

Contributors

tanghengzhi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.