Skip to content

Cockpit CMS for the UNESCO open Transparency Portal

Notifications You must be signed in to change notification settings

zimmerman-team/UNESCO-CMS

Repository files navigation

UNESCO-CMS

Requirements

Name Recommended version Reference for ubuntu xenial 16.04
Apache2 --- Installing Apache2
Nginx (for deployment) 1.15 Installing nginx
PHP 7.0 or higher Installing PHP
MongoDB 3.2 or higher Installing mongoDB
Nodejs v10 Installing Nodejs
Supervisor (for deployment) 3.2 Installing supervisor

Set up

This current deployment is not possible to run locally. See deployment to run the current CMS on a server. It's possible to set up cockpit itself using docker, but that would run on sqlite and you would need to create all of the components and fields in them, in the same way that its done in one other UNESCO CMS instances.

Deployment

  • Set up nginx for your instance. And start the nginx service.
  • Set up supervisor for your instance. And start the supervisor service.
  • Start your mongoDB service: sudo service mongod start
  • Set up apache for your instance. And start the apache service.
  • Some more specific information on cockpit cms set up:
    1. Unesco production server holds Cockpit CMS files (they were simply downloaded using wget). This CMS is written in PHP (Unesco production uses PHP v. 7.) and for the database it uses Mongodb (v. 3.2.20). CMS settings (like which database to use and etc.) can be configured in config/config.yaml file.

    2. To restart PHP (f. ex. after modifying something in the PHP files themselves), execute "sudo systemctl restart php7.1-fpm.service".

    3. For Mongodb docs (f. ex. how to use Mongo db shell or insert records manually, make / load db dumps), refer to https://docs.mongodb.com/v3.2/

    4. Cockpit CMS docs are here, but at the point of making this doc they really lack information. F. ex. for forgotten admin password, this needs to be done: agentejo/cockpit#109 (comment)

Below you'll find the original cockpit documentation

Cockpit Next

Backers on Open Collective Sponsors on Open Collective

Requirements

  • PHP >= 7.0
  • PDO + SQLite (or MongoDB)
  • GD extension
  • mod_rewrite enabled (on apache)

make also sure that $_SERVER['DOCUMENT_ROOT'] exists and is set correctly.

Installation

  1. Download Cockpit and put the cockpit folder in the root of your web project
  2. Make sure that the /cockpit/storage folder and all its subfolders are writable
  3. Go to /cockpit/install via Browser
  4. You're ready to use Cockpit :-)

Build (Only if you modify JS components)

You need nodejs installed on your system.

First run npm install to install development dependencies

  1. Run npm run build - For one-time build of styles and components
  2. Run npm run watch - For continuous build every time styles or components change

Dockerized Development

You need docker installed on your system: https://www.docker.com.

  1. Run npm run docker-init to build the initial image.
  2. Run npm run docker to start an Apache environment suited for Cockpit on port 8080 (this folder mapped to /var/www/html).

Copyright and license

Copyright 2015 Agentejo under the MIT license.

The MIT License (MIT)

Copyright (c) 2015 Agentejo, http://agentejo.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

💐 SPONSORED BY

ginetta
We create websites and apps that click with users.

BrowserStack
Live, Web-Based Browser Testing

OpenCollective

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

About

Cockpit CMS for the UNESCO open Transparency Portal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published