How to Install SilverStripe on Windows 11

SilverStripe is a powerful open-source content management system (CMS) that enables you to create and manage your website. In this tutorial, we'll show you how to install SilverStripe on Windows 11.

Prerequisites

Before you start, make sure you have the following installed:

Step 1: Download SilverStripe

First, go to the SilverStripe website (https://www.silverstripe.org/) and download the latest SilverStripe installation file. Once downloaded, extract the contents to a new folder in your web server directory.

Step 2: Install Dependencies Using Composer

Open a terminal window and navigate to the SilverStripe installation directory. Then, run the following command to install SilverStripe's dependencies:

composer install

Step 3: Configure SilverStripe

Next, rename the _ss_environment.example.php file to _ss_environment.php and edit it to add your MySQL database details. You will need to enter your database name, username, and password.

define('SS_DATABASE_SERVER', 'localhost');
define('SS_DATABASE_USERNAME', 'your_username_here');
define('SS_DATABASE_PASSWORD', 'your_password_here');
define('SS_DATABASE_NAME', 'your_database_name_here');

Save the changes after you have edited the file.

Step 4: Configure Apache Web Server

Open the httpd.conf file and add the following configuration code at the end of the file:

DocumentRoot "C:/path/to/your/silverstripe/folder"
<Directory "C:/path/to/your/silverstripe/folder">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

Remember to replace the C:/path/to/your/silverstripe/folder with the actual path of your SilverStripe installation folder.

Step 5: Test Your Installation

Start the Apache web server and open your web browser. Enter http://localhost in the address bar and hit Enter. You should see the SilverStripe Installation Screen. Follow the instructions to complete the installation.

Congratulations! You have successfully installed SilverStripe on Windows 11.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!