Coder Social home page Coder Social logo

cpf(csthink php framework) cpf,PHP开源框架

安装

Git clone 并安装

    git clone https://github.com/csthink/cpf.git
    cd cpf
    composer install -v
    chmod -R 777 app/log

配置 nginx 虚拟主机

server {
    listen 80;
    server_name www.cpf.app cpf.app; # 修改成你的域名
    root "path/to/cpf/public";
    index index.html index.htm index.php;

    charset utf-8;
    autoindex off;
    
    location / { 
        try_files $uri $uri/ /index.php?$query_string;
    }
    
    access_log /usr/local/nginx/logs/cpf.app-access.log;
    error_log /usr/local/nginx/logs/cpf.app-error.log;

     location ~* \.php$ {
         fastcgi_index   index.php;
         fastcgi_pass    127.0.0.1:9000;
         include         fastcgi_params;
         fastcgi_param   SCRIPT_FILENAME    $document_root$fastcgi_script_name;
         fastcgi_param   SCRIPT_NAME        $fastcgi_script_name;
      }
      
     location ~ /\.ht {
         deny all;
     }
}

访问后台 cpf.app

composer

修改composer.json文件后,记得执行 composer dump-autoload

Mars's Projects

alpha icon alpha

基于Laravel搭建的网站

alpha-docker icon alpha-docker

基于 Docker 虚拟化技术,一键部署 alpha 网站项目

cpf icon cpf

PHP 框架- csthink cpf framework

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.