Atlantic.Net Blog

How to Install Atlantis CMS with Apache on Ubuntu 20.04

Hitesh Jethva
by Atlantic.Net (272 posts) under Dedicated Server Hosting, Tutorials
0 Comments

Atlantis is a free, open-source, Laravel-based content management system that helps you to build and maintain a website for your business. It offers a lot of modules that can be used to extend the functionality of your website. Atlantis provides a rich set of features including real-time on-page editing, CMS search, content discovery, image optimization, image upload and management, free-form URLs, SEO friendly, and more.

In this post, we will show you how to install Atlantis CMS on Ubuntu 20.04.

Prerequisites

  • A fresh Ubuntu 20.04 server on the Atlantic.Net Cloud Platform
  • A root password configured on your server

Step 1 – Create Atlantic.Net Cloud Server

First, log in to your Atlantic.Net Cloud Server. Create a new server, choosing Ubuntu 20.04 as the operating system with at least 2GB RAM. Connect to your Cloud Server via SSH and log in using the credentials highlighted at the top of the page.

Once you are logged in to your Ubuntu 20.04 server, run the following command to update your base system with the latest available packages.

apt-get update -y

Step 2 – Install Apache, MariaDB, and PHP

First, install the Apache server, MariaDB, and other packages with the following command:

apt-get install apache2 mariadb-server curl git -y

By default, Atlantis CMS supports PHP version 7.0, so you will need to install PHP 7.0 to your server. By default, PHP 7.0 is not included in the Ubuntu default repository, so you will need to add it to the APT.

First, install the required dependencies with the following command:

apt-get install software-properties-common -y

Next, add the PHP repository with the following command:

add-apt-repository ppa:ondrej/php

Next, install PHP 7.0 with all required extensions using the following command:

apt-get install php7.0 libapache2-mod-php7.0 php7.0-common php7.0-gmp php7.0-curl php7.0-intl php7.0-mbstring php7.0-xmlrpc php7.0-mysql php7.0-gd php7.0-xml php7.0-cli php7.0-zip

After installing PHP, edit the php.ini file and change some settings:

nano /etc/php/7.0/apache2/php.ini

Change the following lines:

short_open_tag = On
memory_limit = 256M
upload_max_filesize = 100M
max_execution_time = 360
max_input_vars = 1500
date.timezone = America/Chicago

Save and close the file when you are done.

Step 3 – Create a Database for Atlantis

Next, log in to the MariaDB shell with the following command:

mysql

Once you are logged in, create a database and user for Atlantis:

CREATE DATABASE atlantis;
CREATE USER 'atlantis'@'localhost' IDENTIFIED BY 'password';

Next, grant all privileges to the Atlantis database:

GRANT ALL PRIVILEGES ON atlantis.* TO 'atlantis'@'localhost';

Next, flush the privileges and exit from the MariaDB:

FLUSH PRIVILEGES;
EXIT;

Step 4 – Install Atlantis CMS

First, you will need to install Composer on your server. Run the following command to install Composer:

curl -sS https://getcomposer.org/installer | php 
mv composer.phar /usr/local/bin/composer 
chmod +x /usr/local/bin/composer

Next, change the directory to the Apache web root and download Atlantis using Composer:

cd /var/www/html
composer create-project atlantis-labs/atlantis3 --prefer-dist atlantis3

Sample output:

> php artisan atlantis:key:generate
Atlantis key [uip4KIUm9AuYrULlE5eXDkzHwG2ZaSPT] set successfully.
> chmod -R 775 storage
> chmod -R 775 resources
> chmod -R 775 modules
> chmod -R 775 bootstrap/cache
> php install-instructions.php
************Please run***************
 php artisan atlantis:set:db
 php artisan atlantis:install

Next, change the directory to atlantis3 and define the database using the following command:

cd atlantis3/
php artisan atlantis:set:db

Sample output:

Do you want to set database credential? (yes/no) [no]:
 > yes

 Host:
 > localhost

 Database name:
 > atlantis

 Username:
 > atlantis

 Password:
 > 

Database configuration is changed

Next, migrate the database with the following command:

php artisan atlantis:install

Sample output:

Do you want to run migrations? (yes/no) [no]:
 > yes

Migrations complete.

 Do you want to run seeds? (yes/no) [no]:
 > yes

Seeds complete.
Installation complete.

Next, set proper ownership and permissions to atlantis3:

chown -R www-data:www-data /var/www/html/atlantis3/
chmod -R 755 /var/www/html/atlantis3/

Step 5 – Configure Apache for Atlantis3

Next, create an Apache virtual host configuration file for Atlantis:

nano /etc/apache2/sites-available/atlantis.conf

Add the following lines:

<VirtualHost *:80>
     ServerAdmin [email protected]
     DocumentRoot /var/www/html/atlantis3/
     ServerName atlantis.example.com

     <Directory /var/www/html/atlantis3/>
        Options +FollowSymlinks
        AllowOverride All
        Require all granted
     </Directory>

     ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

Save and close the file, then activate the virtual host and enable the rewrite module:

a2ensite atlantis.conf
a2enmod rewrite

Next, restart the Apache service to apply the changes:

systemctl restart apache2

Step 6 – Access Atlantis CMS

Now, open your web browser and access the Atlantis admin interface using the URL http://atlantis.example.com/admin. You will be redirected to the Atlantis CMS login page:
Atlantis Login Page
Provide default username admin and password as admin123 then click on the Login button. You should see the Atlantic CMS dashboard on the following page:
Atlantis Dashboard Page

Conclusion

In the above guide, you learned how to install Atlantis CMS with Apache on Ubuntu 20.04. Feel free to ask me if you find any errors – get started on your dedicated server hosting account with Atlantic.Net!

Get A Free To Use Cloud VPS

Free Tier Includes:
G3.2GB Cloud VPS Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year


Looking for a Hosting Solution?

We Provide Cloud, Dedicated, & Colocation.

  • Seven Global Data Center Locations.
  • Flexible Private, Public, & Hybrid Hosting.
  • 24x7x365 Security, Support, & Monitoring.
Contact Us Now! Med Tech Award FTC
SOC Audit HIPAA Audit HITECH Audit

Recent Posts

Get started with 12 months of free cloud VPS hosting

Free Tier includes:
G3.2GB Cloud VPS Server Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year


New York, NY

100 Delawanna Ave, Suite 1

Clifton, NJ 07014

United States

San Francisco, CA

2820 Northwestern Pkwy,

Santa Clara, CA 95051

United States

Dallas, TX

2323 Bryan Street,

Dallas, Texas 75201

United States

Ashburn, VA

1807 Michael Faraday Ct,

Reston, VA 20190

United States

Orlando, FL

440 W Kennedy Blvd, Suite 3

Orlando, FL 32810

United States

Toronto, Canada

20 Pullman Ct, Scarborough,

Ontario M1X 1E4

Canada

London, UK

14 Liverpool Road, Slough,

Berkshire SL1 4QZ

United Kingdom

Resources