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 |
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.
- 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:
-
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 inconfig/config.yaml
file. -
To restart PHP (f. ex. after modifying something in the PHP files themselves), execute "sudo systemctl restart php7.1-fpm.service".
-
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/
-
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)
-
- Homepage: http://getcockpit.com
- Twitter: @getcockpit
- Support Forum: https://discourse.getcockpit.com
- 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.
- Download Cockpit and put the cockpit folder in the root of your web project
- Make sure that the /cockpit/storage folder and all its subfolders are writable
- Go to /cockpit/install via Browser
- You're ready to use Cockpit :-)
You need nodejs installed on your system.
First run npm install
to install development dependencies
- Run
npm run build
- For one-time build of styles and components - Run
npm run watch
- For continuous build every time styles or components change
You need docker installed on your system: https://www.docker.com.
- Run
npm run docker-init
to build the initial image. - Run
npm run docker
to start an Apache environment suited for Cockpit on port 8080 (this folder mapped to /var/www/html).
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.
We create websites and apps that click with users.
Live, Web-Based Browser Testing
Thank you to all our backers! 🙏 [Become a backer]
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]