Skip to content
  • GDPR-compliant
  • 100% hosting in Germany
  • Personal contact
  • Support included
  • Provisioning within 24 hours
Installation guides 4 min read

Installing Statamic on our managed hosting service

Introduction to Statamic

This guide will walk you through the installation of Statamic, a modern content management system (CMS), on our Managed Shared Hosting. As the server environment is already pre-configured, including pre-installed services such as PHP and Composer, the installation process is greatly simplified. Follow the steps below to install Statamic quickly and efficiently.

Prerequisites

Before you begin, please ensure you have access to your hosting account and the control panel.

Our Managed Shared Hosting environment already includes everything you need for Statamic:

  • PHP (version 8.0 or higher)
  • Composer
  • Access via SSH

Step 1: SSH access

Setting up SSH access:

If you have not yet set up SSH access to your hosting account, please follow the instructions in the Control Panel or in our separate guide on setting up SSH.

Establishing an SSH connection:

Use a terminal or SSH client software to connect to your hosting account. You will find the necessary login details in the Control Panel.

Step 2: Select the installation directory

1. Navigate to the web directory:

Change to the directory where your website is to be hosted. Typically, this is the “www” directory or a specific subdirectory within it.

cd ~/www

To install Statamic in a subdirectory, create that directory and then change to it:

mkdir meine_statamic_site
cd meine_statamic_site

Step 3: Install Statamic

1. Create a Statamic project:

Run the following Composer command to create a new Statamic project.

Replace “my_statamic_site” with your desired project name.

composer create-project statamic/statamic meine_statamic_site --prefer-dist --stability=stable

2. Complete the installation:

Composer will now download and install all the necessary dependencies. This process may take a few minutes.

Step 4: First steps after installation

Once Statamic has been successfully installed, there are a few steps you should take to configure and customise your new website.

1. Customise configuration files:

Check and edit Statamic’s configuration files in your project directory as required. These are located in the `config` directory of your Statamic installation.

2. Create a user account:

Create an administrator account for the Statamic Control Panel. To do this, run the following command and follow the instructions:

php please make:user

3. Accessing the website:

Access your Statamic website via your web browser by entering the relevant URL. To access the Control Panel, append `/cp` to your website’s URL.

4. Add content:

Start adding content to your website via the Statamic Control Panel. Statamic offers an intuitive user interface for managing pages, posts and other content.

Step 5: Point your domain to the Statamic directory

Once Statamic has been installed, it is important to configure the domain in your Control Panel so that it points to the correct directory for your Statamic installation. This ensures that visitors to your website can view the content generated by Statamic.

1. Open the control panel:

Log in to your hosting control panel and navigate to the ‘Domains’ section.

2. Edit domain settings:

Find the domain you wish to use for your Statamic website and select the option to edit the domain settings.

3. Change the document root:

Change the document root path for your domain so that it points to the `public` directory of your Statamic installation. The path should look something like this:

/www/my_statamic_site/public/

Replace `my_statamic_site` with the name of the folder you used when installing Statamic.

4. Save changes:

Save the changes. It may take a few minutes for the changes to take effect.

This change ensures that the web server serves Statamic’s static files correctly and enhances the security of your website, as access to the rest of your Statamic installation is restricted.

Completion

Now that you have successfully pointed the domain to the `public` directory of your Statamic installation, your website is now accessible via the relevant domain. Check the website in your browser to ensure that everything is working as expected.

If you wish to make further adjustments or add content, you can do so via the Statamic Control Panel, which you can access by appending `/cp` to your website’s URL.

If you have any questions or encounter any problems, our support team is always on hand to help. We wish you every success with your new Statamic website!

Conclusion

Congratulations! You have successfully installed Statamic on your Managed Shared Hosting. This guide is designed to help you get started quickly with Statamic. For more detailed information and guides, please visit the official Statamic documentation ( https://statamic.dev/ ).

Still looking for the right Statamic hosting?

If you’re still looking for a hosting provider that supports your Statamic site, take a look at our hosting. Our plans are designed to offer the best conditions for Statamic and other applications, ensuring maximum performance and security. Find out more about our Statamic hosting here.

Was this article helpful?

You might also be interested in:

Personal support

Of course, our support team is also happy to assist you personally. If you cannot find what you are looking for in our knowledge base or require personalised support, please do not hesitate to contact us. We’re here to help you and to ensure that your experience with our products and services is as smooth and enjoyable as possible.