Robert Lemke launched the Neos project in 2006. Then a group of software engineers joined in to get a look at how to manage and edit content. The Neos project became independent in 2015. The open-source nature of Neos software helps it to become better quality software. The establishment of the Neos Foundation Community Interest Company (CIC) by the Neos team in 2017 allows you to take control of your affairs with the least amount of administrative bureaucracy. This article will teach you about Tutorial Configure Neos CMS on Ubuntu 18.04 step by step.

How to Configure Neos CMS on Ubuntu Linux VPS

Prerequisites to Install Neos CMS on Ubuntu 18.04

Neos CMS installation prerequisites include:

_ Run Ubuntu Server 18.04

_ Create Sudo user and set the root password

How to Install Neos CMS on Ubuntu 18.04

Before doing anything, update your system by running the following command:

apt-get update -y 
apt-get upgrade -y

You must restart your server to apply the changes after the update is complete.

First, you can install the required Apache web server, PHP database server, MariaDB, and other required packages by entering the following commands:

apt-get install apache2 mariadb-server php7.2 libapache2-mod-php7.2 php7.2-common php7.2-mysql php7.2-gmp php7.2-curl php7.2-intl php7.2-mbstring php7.2-xmlrpc php7.2-gd php7.2-bcmath php7.2-xml php7.2-cli php7.2-zip curl unzip git -y

You should start Apache and enable it to start on boot by entering the following command:

systemctl start apache2
systemctl enable apache2

Also, you should start the MariaDB service and enable it to start on boot by running the following command:

systemctl start mariadb
systemctl enable mariadb

Now change the php.ini file as the following command:

nano /etc/php/7.2/apache2/php.ini

In this step, you must do the following to change the following lines:

short_open_tag = On
memory_limit = 256M
upload_max_filesize = 150M
max_execution_time = 360
date.timezone = Your_Desired_Timezone

Finally, you must save the file and then close it.

To configure the MariaDB database, first, you must secure it by running the following command:

mysql_secure_installation

Now you have to answer the questions in the command:

Enter current password for root (enter for none):
Set root password? [Y/n]: N
Remove anonymous users? [Y/n]: Y
Disallow root login remotely? [Y/n]: Y
Remove test database and access to it? [Y/n]: Y
Reload privilege tables now? [Y/n]: Y

Run the following command to log in to the MariaDB shell:

mysql -u root -p

By entering the following command you create a database and user for Neos:

MariaDB [(none)]> CREATE DATABASE neosdb;
MariaDB [(none)]> CREATE USER 'neos'@'localhost' IDENTIFIED BY 'mypassword';

Be sure to replace your password with the word “mypassword” in the previous and next commands. Then enter the following command to grant all privileges to the Neos database:

MariaDB [(none)]> GRANT ALL PRIVILEGES ON neosdb.* TO 'neos'@'localhost' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;

You can change the character set of your database to utf8 with the following command:

MariaDB [(none)]> ALTER DATABASE neosdb charset=utf8;

In this step, You must flush the privileges. You can do this by entering the following command:

MariaDB [(none)]> FLUSH PRIVILEGES;

To exit the MariaDB shell, just enter the following command:

MariaDB [(none)]> EXIT;

Now run the following command to change the default MariaDB configuration file:

nano /etc/myql/mariadb.conf.d/50-server.cnf

In this step, you must add the following lines to make the change in the file:

innodb_file_format = Barracuda
innodb_large_prefix = 1
innodb_file_per_table = 1
innodb_default_row_format = dynamic

Remember to save the file before closing it. Restart the MariaDB service by entering the following command:

systemctl restart mariadb

Just run the following command to check the status of the MariaDB server:

systemctl status mariadb

Before installing Neos, you must first install Composer by entering the following command:

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

Use the following command to change the directory to Apache Webroot:

cd /var/www/html/

Enter the following command to install Neos CMS:

composer create-project --no-dev neos/neos-base-distribution neoscms

You can change the Neos CMS permission by running the following command:

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

How to Configure Neos CMS on Ubuntu 18.04

To configure Apache for NeosCMS First, you should create an Apache virtual host file for Neos by entering the following command:

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

Now you need to add the following lines:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/neoscms/Web
ServerName example.com
<Directory /var/www/html/neoscms/Web/>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>

ErrorLog ${APACHE_LOG_DIR}/neos_error.log
CustomLog ${APACHE_LOG_DIR}/neos_access.log combined

<Directory /var/www/html/neoscms/Web/>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*) index.php [PT,L]
</Directory>
</VirtualHost>

Save and close the file as usual. Now you must enable the Neos virtual host by entering the following command:

a2ensite neoscms.conf

Enter the following command to enable the Apache rewrite module:

a2enmod rewrite

Finally, you need to restart the Apache service with the following command to apply the changes:

systemctl restart apache2

To check the status of Apache, run the following command:

systemctl status apache2

How to Access Neos CMS on Ubuntu 18.04

You must first type the URL http://example.com/setup in your web browser and you will see the following page:

 

Neos Enter setup password

 

Then you need to find your password from the /var/www/html/neoscms/Data/SetupPassword.txt file and after entering it, click on Login. The following page will open:

 

Neos requirements check

 

Now you need to click Next after confirming that you have installed all the required packages:

 

Neos configure database

 

On the following page, after entering your database name, database username, and password, click Next:

 

Neos create new site

 

In this step, after providing your administrator account details, click Next:

 

Neos create new site

 

Click Skip. If the installation is successful, the following page will open:

 

Neos setup complete

 

Now you should click “Go to the backend“.

 

Neos go to backend

 

Enter your username and password and finally click on Login:

 

Neos login

 

Conclusion

In this article, we introduce Neos CMS and briefly mention its history. Then how to install and configure Neos CMS on Ubuntu 18.04 was taught. With Neos you can easily host your own website.