Giter VIP home page Giter VIP logo

phphub's Introduction

安装步骤

配置PHP mcrypt.so

  1. brew install mcrypt
  2. 到 PHP 官网下载对应的 PHP 版本
  3. tar -xvrf php-zip-file
  4. cd php-zip-file/ext/mcrypt
  5. phpize
  6. ./configure
  7. make
  8. sudo make install
  9. 如果出现 permission 错误, 可直接找到编译好的 mcrypt.so 文件 复制到 /usr/local/bin/php/extensions/
  10. vim /etc/php.ini, 添加 extension=mcrypt.so , extension_dir=/usr/local/bin/php/extensions/
  11. composer install

migrate

  1. 修改数据库配置, localhost 改为 127.0.0.1
  2. mysql 创建 phphub 数据库
  3. php artisan migrate (原版本会因为, timestamps字段报错, 改为 nullableTimestamps 就work)
  4. php artisan db:seed 初始化测试数据, 原版本会有一些字段没有默认值报错, 已修改

前端

  1. npm install (gulp-sass 原版本安装会报错, 已修改)
  2. sudo npm install gulp -g

启动服务

  1. php -S localhost:8888 -t public

phphub's People

Contributors

summerblue avatar nauxliu avatar appleboy avatar lifesign avatar jeroenherczeg avatar overtrue avatar brainexport avatar imjma avatar zhuzhichao avatar calinou avatar cycloneaxe avatar grahamcampbell avatar hutushen222 avatar heimonsy avatar menglr avatar xtrees avatar

Watchers

James Cloos avatar Marc Chen avatar  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.