Git Product home page Git Product logo

phb's Introduction

Phb

базовый шаблон для проекта на Phalcon с использованием шаблонизатора Smarty

после клонирования необходимо переименовать local.cfg.php.example в local.cfg.php (local.cfg.php исключен из git) далее заполнить необходимые поля в новом файле затем определиться с расположением вспомогательных служб/плагинов

текущий шаблон в качестве плагина использует Smarty, Mobile-Detect и phpClickHouse создайте папку PLUGINS в ней последовательно выполнить

git clone https://github.com/serbanghita/Mobile-Detect.git
git clone https://github.com/smarty-php/smarty.git
git clone https://github.com/smi2/phpClickHouse.git

для phpClickHouse необходимо войти в папку проекта и выполнить compose update

далее в файле local.cfg.php поправить константу так что бы она указывала на нашу папку PLUGINS

для установки phalcon в ubuntu:

sudo apt install -y php-phalcon

конфигурация nginx:

server {
  listen 80;
  server_name server_name;
  root /var/www/sites/server_name/public;
  index index.php;

  location / {
    try_files $uri $uri/ /index.php$is_args$args;
  }

  location ~ \.php$ {
    include fastcgi_params;
    fastcgi_index index.php;
    fastcgi_param REMOTE_ADDR $http_x_real_ip;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass unix:/run/php/php7.2-fpm.sock; # заменить на вашу версию php
  }

  location ~ /\.ht {
    deny all;
  }
}

phb's People

Contributors

zuzest avatar

Watchers

James Cloos 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.