Setting Up Ubuntu to host WinterCMS
1
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:
- Read the beginner’s guide that provides a general overview about Ubuntu: https://www.digitalocean.com/community/conceptual_articles/ubuntu-20-04-beginners-guide.
- 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.
- Install composer: ``sudo apt-get install compose```
- 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.
There are no comments yet
Be the first one to comment