(11 intermediate revisions by 3 users not shown)
Line 5: Line 5:
 
Then follow these steps to set up your Open CSP wiki:
 
Then follow these steps to set up your Open CSP wiki:
  
# Copy the installation script from [https://raw.githubusercontent.com/Open-CSP/open-csp/main/.github/install_open_csp.sh this GitHub] repo to your mediawiki server.
+
# Copy the installation script from [https://raw.githubusercontent.com/Open-CSP/open-csp/REL1_39/.github/install_open_csp.sh this GitHub] repo to your mediawiki server.
 
# Run the installation script
 
# Run the installation script
  
     ./install_csp.sh <mediawiki directory>
+
     ./install_open_csp.sh <mediawiki directory>
 +
 
 +
From this point on the script will guide you through all the necessary steps for installation.
 +
 
 +
Should it be aborted or run into an error, if you restart it will restart from the step it failed at. If you would like it to re-run from the start instead you can add the parameter –skip-steps=0 to do this.
 +
 +
== Files that will be installed ==
 +
* composer.local.json - For installing all the necessary extensions.
 +
* settings/CSPSettings.php - This file contains all the CSP related MediaWiki settings. It is to be included from LocalSettings.php (install step 2 will take care of this)
 +
* logo/Logo.svg - The Open CSP logo. You can replace this with your own logo and it will be preserved in upgrades. If present it will not be overwritten by the install script unless you explicitly choose to let it do so.
 +
* skin/* - CSP skin files
 +
* wsps/* - Pages to be imported, this will be done by PageSync; one of the extensions installed in the composer step.
 +
 +
== Additional install options ==
 +
The install script for this release has been significantly rewritten resulting in a number of new options.
 +
You can see what they are by running:
 +
    ./install_open_csp.sh --help.
 +
 
 +
There is one that's worth highlighting here: --automatic.
 +
 
 +
Actually there's two if you count -–manual, but if omitted, --manual is the default mode.
 +
 
 +
In manual mode you will be guided through the installation and be given a number of prompts.
 +
 
 +
In automatic mode, however, it will - where needed - attempt to make the logical choices inferred from context or other parameters, but it will - in any case - not present prompts.
 +
 
 +
This allows this install script to be used in things like a Dockerfile or a cloud-init script for VPS deployment.
 +
 
 +
== Installation done ==
 +
Make sure to [[DevOps:Doc/Open_CSP/2.0/Additional content|Install Additional Content]] to get you started with Open CSP easily.
ws-class-props
Line 2: Line 2:
 
|Subject version=2.0
 
|Subject version=2.0
 
|Doc subject=DevOps:Doc/Open CSP
 
|Doc subject=DevOps:Doc/Open CSP
|Doc sort order=2
+
|Doc sort order=20
|Doc target group=User
+
|Doc target group=Administrator
 +
|Doc synopsis=How to install Open CSP
 +
|Doc parent=
 
}}
 
}}
ws-seo
Line 1: Line 1:
 
+
{{SEO
 +
|Title=Open CSP Installation
 +
|Keywords=opencsp,installation,documentation
 +
|Description=How to install Open CSP.
 +
|Image=OCSP-Documentation.jpg
 +
|Image alt=Open CSP Documentation Banner
 +
|Section=Documention/Open_CSP
 +
|Published time=2023-10-01
 +
}}

Latest revision as of 22:06, 2 November 2023

Prerequisites for a successful installation

Make sure the MediaWiki installation you want to install Open CSP on meets the requirements.

Steps to install Open CSP

Then follow these steps to set up your Open CSP wiki:

  1. Copy the installation script from this GitHub repo to your mediawiki server.
  2. Run the installation script
    ./install_open_csp.sh <mediawiki directory>

From this point on the script will guide you through all the necessary steps for installation.

Should it be aborted or run into an error, if you restart it will restart from the step it failed at. If you would like it to re-run from the start instead you can add the parameter –skip-steps=0 to do this.

Files that will be installed

  • composer.local.json - For installing all the necessary extensions.
  • settings/CSPSettings.php - This file contains all the CSP related MediaWiki settings. It is to be included from LocalSettings.php (install step 2 will take care of this)
  • logo/Logo.svg - The Open CSP logo. You can replace this with your own logo and it will be preserved in upgrades. If present it will not be overwritten by the install script unless you explicitly choose to let it do so.
  • skin/* - CSP skin files
  • wsps/* - Pages to be imported, this will be done by PageSync; one of the extensions installed in the composer step.

Additional install options

The install script for this release has been significantly rewritten resulting in a number of new options. You can see what they are by running:

    ./install_open_csp.sh --help. 

There is one that's worth highlighting here: --automatic.

Actually there's two if you count -–manual, but if omitted, --manual is the default mode.

In manual mode you will be guided through the installation and be given a number of prompts.

In automatic mode, however, it will - where needed - attempt to make the logical choices inferred from context or other parameters, but it will - in any case - not present prompts.

This allows this install script to be used in things like a Dockerfile or a cloud-init script for VPS deployment.

Installation done

Make sure to Install Additional Content to get you started with Open CSP easily.