<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://open-csp.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Bryan+Hilderbrand</id>
	<title>CSP Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://open-csp.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Bryan+Hilderbrand"/>
	<link rel="alternate" type="text/html" href="https://open-csp.org/Special:Contributions/Bryan_Hilderbrand"/>
	<updated>2026-05-24T23:06:42Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://open-csp.org/index.php?title=DevOps:Doc/Open_CSP/2.0/open-csp-on-canasta&amp;diff=3319</id>
		<title>DevOps:Doc/Open CSP/2.0/open-csp-on-canasta</title>
		<link rel="alternate" type="text/html" href="https://open-csp.org/index.php?title=DevOps:Doc/Open_CSP/2.0/open-csp-on-canasta&amp;diff=3319"/>
		<updated>2024-11-21T20:47:10Z</updated>

		<summary type="html">&lt;p&gt;Bryan Hilderbrand: Removed spelling error for &amp;quot;likeg&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Getting this running is a two-step process, not including preparation of a docker host with all the prereqs that come with that.&lt;br /&gt;
&lt;br /&gt;
=== First of all we’ll create a new Canasta wiki, and then upgrade it to Open CSP. ===&lt;br /&gt;
&lt;br /&gt;
===== Creation of a new Canasta wiki: =====&lt;br /&gt;
For this we’ll use Canasta-DockerCompose.&lt;br /&gt;
&lt;br /&gt;
# Clone the Canasta-DockerCompose repo, master branch. It can be found here : https://github.com/CanastaWiki/Canasta-DockerCompose&lt;br /&gt;
# Copy the .env.example file to .env (optional; to override default values)&lt;br /&gt;
# Alter .env as needed (refer to https://canasta.wiki/other-maintenance/#configuration )&lt;br /&gt;
# Launch instance ( In your console you to the downloaded files and inside the main folder run : &#039;&#039;&#039;&#039;&#039;docker-compose up -d&#039;&#039;&#039;&#039;&#039; )&lt;br /&gt;
# Wait for the database container to become responsive&lt;br /&gt;
# Restart everything ( run &#039;&#039;&#039;&#039;&#039;docker-compose down&#039;&#039;&#039;&#039;&#039;, then &#039;&#039;&#039;&#039;&#039;docker-compose up -d&#039;&#039;&#039;&#039;&#039; again )&lt;br /&gt;
# Navigate to your webpage (localhost in your web browser on the docker host)&lt;br /&gt;
# Follow the MediaWiki installation steps to install your version of MediaWiki&lt;br /&gt;
# Copy the downloaded LocalSettings.php to &amp;lt;where you installed the download rep in step 1&amp;gt;/config/ on the host&lt;br /&gt;
# Shut down Canasta instance ( run &#039;&#039;&#039;&#039;&#039;docker-compose down&#039;&#039;&#039;&#039;&#039; )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The shutdown and restart is needed to make the previously configured (either implicitly by defaults or explicitly through .env) MySQL root password become active.&lt;br /&gt;
 You may encounter an issue like I did initially where the site will never come online.&lt;br /&gt;
 In this case use ‘docker logs &amp;lt;container&amp;gt;’ to inspect your MediaWiki container’s goings-on.&lt;br /&gt;
 It may report that it cannot access files directly under the “/mediawiki/”, in which case shut it down and edit docker-compose.yml as follows:&lt;br /&gt;
 &lt;br /&gt;
 Under services → web → volumes, at the top, add: - ./mediawiki:/mediawiki&lt;br /&gt;
 &lt;br /&gt;
 It should then look something like:&lt;br /&gt;
&lt;br /&gt;
 web:&lt;br /&gt;
     image: ghcr.io/canastawiki/canasta:latest&lt;br /&gt;
     restart: unless-stopped&lt;br /&gt;
     extra_hosts:&lt;br /&gt;
       - &amp;quot;gateway.docker.internal:host-gateway&amp;quot;&lt;br /&gt;
     depends_on:&lt;br /&gt;
       - db&lt;br /&gt;
       - elasticsearch&lt;br /&gt;
     environment:&lt;br /&gt;
       # Sourced from .env&lt;br /&gt;
       - MW_SITE_SERVER=${MW_SITE_SERVER:-&amp;lt;nowiki&amp;gt;https://localhost}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
       - PHP_UPLOAD_MAX_FILESIZE=${PHP_UPLOAD_MAX_FILESIZE:-10M}&lt;br /&gt;
       - PHP_POST_MAX_SIZE=${PHP_UPLOAD_MAX_FILESIZE:-10M}&lt;br /&gt;
       - PHP_MAX_INPUT_VARS=${PHP_MAX_INPUT_VARS:-1000}&lt;br /&gt;
       - MW_SITEMAP_SUBDIR&lt;br /&gt;
       - MW_SITEMAP_IDENTIFIER&lt;br /&gt;
     volumes:&lt;br /&gt;
       &#039;&#039;&#039;- ./mediawiki:/mediawiki&#039;&#039;&#039;&lt;br /&gt;
       - ./extensions:/var/www/mediawiki/w/user-extensions&lt;br /&gt;
       - ./skins:/var/www/mediawiki/w/user-skins&lt;br /&gt;
       - ./config:/mediawiki/config&lt;br /&gt;
       - ./images:/mediawiki/images&lt;br /&gt;
       - sitemap:/mediawiki/sitemap&lt;br /&gt;
&lt;br /&gt;
 Then spin the farm up again.&lt;br /&gt;
&lt;br /&gt;
==== Upgrading to Open CSP: ====&lt;br /&gt;
&lt;br /&gt;
# Clone the Canasta-OpenCSP fork, master branch. ( this can be found here : https://github.com/LarsS88/opencsp2-canasta, you can simply download and unzip )&lt;br /&gt;
# Build the image with a tag such as ‘open-csp:2.0’ for instance. ( inside the main folder that you have just downloaded, type &#039;&#039;&#039;&#039;&#039;docker build --tag open-csp:2.0 .&#039;&#039;&#039;&#039;&#039; ( do not forget the . at the end )&lt;br /&gt;
# Go back to your Canasta-DockerCompose repo and edit &#039;&#039;docker-compose.override.yml&#039;&#039;&lt;br /&gt;
# Uncomment “web” and its “image” property.&lt;br /&gt;
# Set the image to your locally built Canasta-OpenCSP tag.  It should look something like this :&lt;br /&gt;
&lt;br /&gt;
 services:&lt;br /&gt;
   #db:&lt;br /&gt;
   web:&lt;br /&gt;
     image: open-csp:2.0&lt;br /&gt;
   #elasticsearch:&lt;br /&gt;
   caddy:&lt;br /&gt;
       ports:&lt;br /&gt;
       - &amp;quot;${PORT:-80}:80&amp;quot;&lt;br /&gt;
       - &amp;quot;${HTTPS_PORT:-443}:443&amp;quot;&lt;br /&gt;
   #varnish:&lt;br /&gt;
Launch the farm again.&lt;/div&gt;</summary>
		<author><name>Bryan Hilderbrand</name></author>
	</entry>
</feed>