CMSilex Documentation

Similar documents
stalun Documentation Release 0.2 Leonidas Poulopoulos, George Kargiotakis, GRNET NOC, GRNET

LET S ENCRYPT WITH PYTHON WEB APPS. Joe Jasinski Imaginary Landscape

Lyna Framework Documentation

OPTIMISING PHP-FPM FOR PRODUCTION

gosint Documentation Release Cisco CSIRT

OPTIMIZING PHP-FPM FOR PRODUCTION

Imbo Release dev Dec 17, 2018

By: Jeeva S. Chelladhurai

Software Transfer Document. SensUs Digital. Valedictorian. Version July 6, 2017

Basic guidelines for Drupal 8 projects in FCG

How to set the preferred cipher suite on Apache 2.2.x and Apache 2.4.x Reverse Proxy

Imbo Release February 14, 2014

Setting up a LAMP server

Walter walterebert.de slideshare.net/walterebert

T.A.D / ABS - Installation

Phase 1 - Getting Started

Prod Setup. Documentation and notes from creating my personal site. Phase 1 - Getting Started. BookStack Installation.

KopanoLibreOffice. Release 1.0. Kopano BV

Magister 6 API Documentation

UCServer Webservice Release. Best Practice

on CentOS 6.4 using Nginx


Magister 6 API Documentation

VMware App Volumes Administration Guide. VMware App Volumes 2.13

Performance Tuning NGINX

micro-framework Documentation

I hate money. Release 1.0

This tutorial introduces you to FuelPHP framework and makes you comfortable with its various components.

Dockerfile Documentation

Reading nginx CHANGES together

ArrayOS AG Release Note

Caching and tuning fun for high scalability. Wim Godden Cu.be Solutions

Setting up VPS on Ovh public cloud and installing lamp server on Ubuntu instance

Apache Manual Install Ubuntu Php Mysql. Phpmyadmin No >>>CLICK HERE<<<

Red Hat JBoss Core Services

NGINX Web Server. Tommaso Sardelli. 11 th May Corsi GNU/Linux Avanzati 2016 Politecnico Open unix Lab. sardelli.tommaso[at]gmail.

Grasshopper V5. For. --- Installation and configuration guide --- Conceived and realised by: Bozzy, Dan Knight and That Grasshopper Guy.

Dockerfile Documentation

How to Configure SSL Interception in the Firewall

Sulu 2.0 Documentation

" Qué me estás container?" Docker for dummies

Sulu 2.0 Documentation

[UNIT 1 <Continued>]: <Understanding Apache>

upaas Documentation Release 0.2 Łukasz Mierzwa

Beginners guide to at #phpworld

Indico Documentation. Release dev18. Indico Team

Docker on VDS. Aurelijus Banelis

AgenDAV Documentation

INFUZE NGINX MODULE USER GUIDE

hyperledger-fabric-ca Documentation

Install WordPress 3.X In Multi Blog / Multi user mode On localhost

Build a powerful Web Server

tailon Documentation Release Georgi Valkov

Build your dev environment with Docker.

Bernard. Release latest

How to perform a security assessment with Paros Proxy using Kali Linux

How to scan DVWA with Kali Sparta

Drupal Command Line Instructions Windows 7 List All Files >>>CLICK HERE<<<

Tungsten Dashboard for Clustering. Eric M. Stone, COO

Indico Documentation. Release 2.2-dev. Indico Team

Eucalyptus User Console Guide

About FIPS, NGE, and AnyConnect

Instagram PHP Documentation

All India Council For Research & Training

Phpmyadmin Error In Processing Request Error Code 200

A PAtCHy server: developed by the Apache group formed 2/95 around by a number of people who provided patch files for NCSA httpd 1.3 by Rob McCool.

WordPress WooCommerce plugin. Merchant Integration Manual

Indico Documentation. Release 2.0rc2. Indico Team

COMPOSER IN DRUPAL WORLD

SECRETS OF THE ENCRYPTED INTERNET: WORLDWIDE CRYPTOGRAPHIC TRENDS

Web Meetings Manual. Release Kopano BV

Bitnami Pimcore for Huawei Enterprise Cloud

Pusher Documentation. Release. Top Free Games

Plone Performance Testing Documentation

How to scan DVWA with the Free edition of Burp Suite

Verify certificate chain with OpenSSL

Full version is >>> HERE <<<

Zend Framework for IBM i

Secure Socket Layer (SSL) for

VMware Horizon JMP Server Installation and Setup Guide. 13 DEC 2018 VMware Horizon 7 7.7

Magento 2 Certified Professional Developer. Exam Study Guide

شرکت توسعه ارتباطات پردیس پارس. owncloud. The last file sharing platform you'll ever need

Bitnami Coppermine for Huawei Enterprise Cloud

Contents. Configuring SSH 1

VMware App Volumes User Guide. VMware App Volumes

Behat Drupal Integration Documentation

sqlite wordpress 06C6817F2E58AF4319AB84EE Sqlite Wordpress 1 / 6

Setting Up PHPlist (Open-Source Newsletter Manager)

Nginx Config Builder. Release

VMware Horizon JMP Server Installation and Setup Guide. Modified on 19 JUN 2018 VMware Horizon 7 7.5

[ Due: N.A ] [ Points: PRICELESS ] [ Date: 2/9/2016] [ Goings, Jesse ] Computer Network Specialist Center For Arts and Technology College Kelowna BC

Configuration Example for Secure SIP Integration Between CUCM and CUC based on Next Generation Encryption (NGE)

Horizon DaaS Platform 6.1 Patch 2

Drupal & Composer Matthew Grasmick & Jeff Geerling

Relational Database Service. User Guide. Issue 05 Date

Setting Up a Cisco Unified Communications Manager SIP Trunk Integration, page 1

Bitnami Spree for Huawei Enterprise Cloud

ReferralSystemDemoBundle Documentation

Bitnami MediaWiki for Huawei Enterprise Cloud

LAMP Stack with VirtualHosts On Centos 6.x

Transcription:

CMSilex Documentation Release 0.1 Leigh Murray December 01, 2016

Contents 1 Introduction 3 2 Usage 5 2.1 Installation................................................ 5 2.2 Bootstrap................................................. 6 2.3 Config.................................................. 6 2.4 CLI-Config................................................ 7 2.5 Database................................................. 7 3 Service Providers 9 3.1 Authorisation............................................... 9 3.2 CMS................................................... 9 3.3 Converter................................................. 9 3.4 Manager Registry............................................ 9 3.5 ORM................................................... 9 3.6 Theme.................................................. 9 4 Indices and tables 11 i

ii

CMSilex Documentation, Release 0.1 Contents: Contents 1

CMSilex Documentation, Release 0.1 2 Contents

CHAPTER 1 Introduction CMSilex is a PHP content management system. It is built using Silex. CMSilex aims to be: A much better alternative to wordpress. 3

CMSilex Documentation, Release 0.1 4 Chapter 1. Introduction

CHAPTER 2 Usage 2.1 Installation Create a composer.json file: { } "minimum-stability": "dev", "prefer-stable": true Use Composer: composer require cmsilex/cmsilex "dev-master" Create a public directory. Create a cmsilex directory inside your public directory eg. /public/cmsilex that will store the assets for the backend of cmsilex. Copy the contents of /vendor/cmsilex/cmsilex/resources/public to the new /public/cmsilex directory. An example nginx webserver config: server { listen 80; server_name yoursite.com www.yoursite.com; return 301 https://$host$request_uri; } server { listen 443 ssl; server_name yoursite.com www.yoursite.com; root /var/www/yoursite.com/public; location / { # try to serve file directly, fallback to front controller try_files $uri /index.php$is_args$args; } location ~ ^/index\.php(/ $) { # the ubuntu default fastcgi_pass unix:/var/run/php5-fpm.sock; # for running on centos 5

CMSilex Documentation, Release 0.1 #fastcgi_pass unix:/var/run/php-fpm/www.sock; fastcgi_split_path_info ^(.+\.php)(/.*)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param HTTPS on; } # Prevents URIs that include the front controller. This will 404: # http://domain.tld/index.php/some-path # Enable the internal directive to disable URIs like this # internal; #return 404 for all php files as we do have a front controller location ~ \.php$ { return 404; } ssl_certificate /etc/letsencrypt/live/yoursite.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/yoursite.com/privkey.pem; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA38 ssl_prefer_server_ciphers on; ssl_dhparam /etc/nginx/dhparams.pem; } error_log /var/log/nginx/yoursite_error.log; access_log /var/log/nginx/yoursite_access.log; 2.2 Bootstrap To bootstrap CMSilex, you need to require the vendor/autoload.php file and create an instance of CMSilex\Application. Create a generic bootstrap file /bootstrap.php that can be used both by the webserver and CLI: In /public/index.php require your bootstrap file which returns your application and call the run method on your application: <?php $app = require DIR. "/../bootstrap.php"; $app->run(); 2.3 Config CMSilex uses YAML for its config file. Create a file /config/config.yml. 6 Chapter 2. Usage

CMSilex Documentation, Release 0.1 # Turn debug on or off # debug: false # the directory within /themes where your frontend theme resides theme: mythemedir # Enable or disable the /register path to allow new user registration # register: false # example mysql db config db: driver: pdo_mysql dbname: mydbname host: 127.0.0.1 user: mydbuser password: mydbpassword # example sqlite db config # db: # driver: pdo_sqlite # path: /path/to/sqlite.db 2.4 CLI-Config In order for doctrine command line to work you need a php config file at /config/cli-config.php: <?php use Doctrine\ORM\Tools\Console\ConsoleRunner; // replace with file to your own project bootstrap $app = require_once DIR. "/../bootstrap.php"; return ConsoleRunner::createHelperSet($app['em']); 2.5 Database You need to set up a database for your cms. vendor/bin/doctrine orm:schema:create 2.4. CLI-Config 7

CMSilex Documentation, Release 0.1 8 Chapter 2. Usage

CHAPTER 3 Service Providers 3.1 Authorisation Not Implemented 3.2 CMS The CMS service provider 3.2.1 Services cms: ** 3.3 Converter 3.4 Manager Registry 3.5 ORM 3.6 Theme 9

CMSilex Documentation, Release 0.1 10 Chapter 3. Service Providers

CHAPTER 4 Indices and tables genindex modindex search 11