Winter CMS resources and help articles

Simple and to the point. Optimized by the community.

Setting Up Ubuntu to host WinterCMS

1
by mercator, last modified on March 4th, 2022

WinterCMS can easily be set up on your own server. The following references DigitalOcean, but they can be applied to any Ubuntu server.

Assume you have an Ubuntu instance running (version 20.04 as the the long term supported or 21 as the bleeding edge), prepare your server according to the following:

  1. Read the beginner’s guide that provides a general overview about Ubuntu: https://www.digitalocean.com/community/conceptual_articles/ubuntu-20-04-beginners-guide.
  2. Create user and review the firewall: https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-20-04. 3.Install web server and PHP: https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-20-04. You may skip MySQL in case you run WinterCMS with SQLite.
  3. Install composer: ``sudo apt-get install compose```
  4. And finally, WinterCmMS is making use of .htaccess in its installation directory. This might not allowed by the default installation of your web server. Edit /etc/apache2/apache2.con and make sure to define the following:
    <Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    The key element is to allow override, otherwise the .htaccess in your installation directory will not get executed. Note: The above assumes that you will install your website below /var/www, otherwise reflect accordingly.

Discussion

0 comments

We use cookies to measure the performance of this website. Do you want to accept these cookies?