In this tutorial, we are going to install Neos CMS on Ubuntu 22.04 OS.
Neos CMS is an open-source Content Management System that allows developers and users to build their websites in a couple of steps quickly. Neos CMS is written in PHP and javascript and uses SQL. In this blog post, we will install Neos CMS with the LAMP stack so you can easily access it via a domain name.
Installing Neos CMS with LAMP stack on Ubuntu 22.04 may take up to 30 minutes. Let’s get things done!
Table of Contents
Prerequisites
- A server with Ubuntu 22.04 as OS
- A valid domain name pointed to the server IP address
- User privileges: root or non-root user with sudo privileges
Step 1. Update the System
Since we have a fresh installation of Ubuntu 22.04 we need to update the package to the latest versions available.
Step 2. Install Apache Web Server
Apache Web server can be installed with the following command:
Once installed, start and enable the service.
Check if the service is up and running:
You should receive the following output:
Step 3. Install MariaDB database server
MariaDB database server can be installed with the following command:
Start and enable the MariaDB.service with the following commands:
Check the status of the mariadb.service
You should receive the following output:
Step 4. Create Neos CMS database and user
To create a database, user and assign permission to that database, execute the following commands:
Step 5. Install PHP8 with extensions
PHP8 with extensions and can be installed with the following commands:
Step 6. Install Composer
We need Composer to install the Neos CMS requirements. Composer can be installed with the following command:
Check the Composer installation:
You should receive the following output:
root@host:~# composer
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
______
/ ____/___ ____ ___ ____ ____ ________ _____
/ / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
/_/
Composer version 2.3.7 2022-06-06 11:43:28
Step 7. Install Neos CMS
Once the composer is installed, go into the default Apache document root and execute the command below:
Once the installation is completed, set the right permissions:
The next step is to enter the database credentials into two files, one for Production and one for Development, just in case.
First we need to go into the /var/www/html/Configuration/Development directory and rename the file Settings.yaml.example to Settings.yaml.example
Open the file, enter the database name, database user, and database password, save it and close the file.
Repeat the same procedure for the Production directory.
Open the Settings.yaml file and paste the database credentials. Save the file and close it.
Step 8. Create Apache Virtual Host file
Go into the Apache directory and create a configuration file for the Neos CMS.
Open the file, paste the following lines of code, save the file and close it.
Enable the Apache configuration for Neos CMS and rewrite the module.
Check the syntax:
You should receive the following output:
If the syntax is OK, restart the Apache service.
Once the Apache service is restarted, you can finish the Neos CMS installation at http://yourdomain.com.
Step 9. Finish Neos CMS Installation
On the first window, click on the “Go to setup” button.
The setup will start with initializing.
Enter the password only one time, which is located in the directory explained in the picture.
You need to execute the following command on your server:
cat /var/www/html/Data/SetupPassword.txt
In the next window, you need to check for the installed extensions. If everything is OK, it will be in green.
In the next window, you need to enter the database credentials.
In the next window, you need to set up the Administrator account.
Next is to enter your website name and choose Neos.Demo package.
Once the setup is complete, go to the backend.
Enter the Admin credentials you set before and click on the Login button.
You will be redirected to the following screen.
That’s it. You successfully installed and configured Neos CMS with LAMP stack on Ubuntu 22.04
If you find it difficult to install this CMS on your own, you can always contact our technical support. They are available 24/7 and will start work on your request immediately.
If you liked this post on installing Neos CMS on Ubuntu 22.04 OS, please share it with your friends on social networks or simply leave a reply below. Thanks.