sudo apt install apache2 -y<\/pre>\nOnce installed, start and enable the service.<\/p>\n
sudo systemctl enable apache2.service && sudo systemctl start apache2.service<\/pre>\nCheck if the service is up and running:<\/p>\n
sudo systemctl status apache2.service<\/pre>\nYou should receive the following output:<\/p>\n
root@host:~# sudo systemctl status apache2.service\r\n\u25cf apache2.service - The Apache HTTP Server\r\n Loaded: loaded (\/lib\/systemd\/system\/apache2.service; enabled; vendor preset: enabled)\r\n Active: active (running) since Tue 2022-06-21 11:04:28 UTC; 1h 2min ago\r\n Docs: https:\/\/httpd.apache.org\/docs\/2.4\/\r\n Main PID: 8106 (apache2)\r\n Tasks: 8 (limit: 4579)\r\n Memory: 13.3M\r\n CPU: 958ms\r\n CGroup: \/system.slice\/apache2.service<\/pre>\n<\/span>Step 3. Install MariaDB database server<\/span><\/h2>\nMariaDB database server can be installed with the following command:<\/p>\n
sudo apt install mariadb-server -y<\/pre>\nStart and enable the MariaDB.service with the following commands:<\/p>\n
sudo systemctl start mariadb.service && sudo systemctl enable mariadb.service<\/pre>\nCheck the status of the mariadb.service<\/p>\n
sudo systemctl status mariadb<\/pre>\nYou should receive the following output:<\/p>\n
root@host:~# sudo systemctl status mariadb\r\n\u25cf mariadb.service - MariaDB 10.6.7 database server\r\n Loaded: loaded (\/lib\/systemd\/system\/mariadb.service; enabled; vendor preset: enabled)\r\n Active: active (running) since Tue 2022-06-21 11:09:23 UTC; 41s ago\r\n Docs: man:mariadbd(8)\r\n https:\/\/mariadb.com\/kb\/en\/library\/systemd\/\r\n Main PID: 21540 (mariadbd)\r\n Status: \"Taking your SQL requests now...\"\r\n Tasks: 15 (limit: 4579)\r\n Memory: 57.1M\r\n CPU: 3.472s\r\n CGroup: \/system.slice\/mariadb.service\r\n \u2514\u250021540 \/usr\/sbin\/mariadbd\r\n\r\n<\/pre>\n<\/span>Step 4. Create Neos CMS database and user<\/span><\/h2>\nTo create a database, user and assign permission to that database, execute the following commands:<\/p>\n
CREATE DATABASE neosdb;\r\n CREATE USER 'neosdb'@'localhost';\r\n GRANT ALL PRIVILEGES ON neosdb.* TO 'neosdb'@'localhost' IDENTIFIED BY 'YourStrongPasswordHere';\r\n FLUSH PRIVILEGES;\r\n EXIT;\r\n<\/pre>\n<\/span>Step 5. Install PHP8 with extensions<\/span><\/h2>\nPHP8 with extensions and can be installed with the following commands:<\/p>\n
sudo apt-get install php8.1 php8.1-cli php8.1-common php8.1-imap php8.1-redis php8.1-snmp php8.1-xml php8.1-zip php8.1-mbstring php8.1-curl libapache2-mod-php php8.1-mysql -y\r\n<\/pre>\n<\/span>Step 6. Install Composer<\/span><\/h2>\nWe need Composer to install the Neos CMS requirements. Composer can be installed with the following command:<\/p>\n
curl -sS https:\/\/getcomposer.org\/installer | php -- --install-dir=\/usr\/bin --filename=composer<\/pre>\nCheck the Composer installation:<\/p>\n
composer<\/pre>\nYou should receive the following output:<\/p>\n
root@host:~# composer \nDo not run Composer as root\/super user! See https:\/\/getcomposer.org\/root for details \nContinue as root\/super user [yes]? yes \n______ \n\/ ____\/___ ____ ___ ____ ____ ________ _____ \n\/ \/ \/ __ \\\/ __ `__ \\\/ __ \\\/ __ \\\/ ___\/ _ \\\/ ___\/ \n\/ \/___\/ \/_\/ \/ \/ \/ \/ \/ \/ \/_\/ \/ \/_\/ (__ ) __\/ \/ \n\\____\/\\____\/_\/ \/_\/ \/_\/ .___\/\\____\/____\/\\___\/_\/ \n\/_\/ \nComposer version 2.3.7 2022-06-06 11:43:28<\/p>\n
<\/span>Step 7. Install Neos CMS<\/span><\/h2>\nOnce the composer is installed, go into the default Apache document root and execute the command below:<\/p>\n
cd \/var\/www\/html\/\r\n\r\ngit clone https:\/\/github.com\/neos\/neos-base-distribution.git .\r\n\r\ncomposer install\r\n<\/pre>\nOnce the installation is completed, set the right permissions:<\/p>\n
chown -R www-data:www-data \/var\/www\/html\/\r\n\r\nfind . -type d -exec chmod 755 {} \\; \r\n\r\nfind . -type f -exec chmod 644 {} \\;\r\n<\/pre>\nThe next step is to enter the database credentials into two files, one for Production and one for Development, just in case.<\/p>\n
First we need to go into the \/var\/www\/html\/Configuration\/Development<\/b> directory and rename the file Settings.yaml.example<\/b> to Settings.yaml.example<\/b><\/p>\ncd \/var\/www\/html\/Configuration\/Development\r\n\r\nmv Settings.yaml.example Settings.yaml\r\n<\/pre>\nOpen the file, enter the database name, database user, and database password, save it and close the file.<\/p>\n
backendOptions:\r\n dbname: 'neosdb' # adjust to your database name\r\n user: 'neosdb' # adjust to your database user\r\n password: 'YourStrongPasswordHere' # adjust to your database password\r\n<\/pre>\nRepeat the same procedure for the Production<\/b> directory.<\/p>\ncd \/var\/www\/html\/Configuration\/Production\r\n\r\nmv Settings.yaml.example Settings.yaml<\/pre>\nOpen the Settings.yaml<\/b> file and paste the database credentials. Save the file and close it.<\/p>\n<\/span>Step 8. Create Apache Virtual Host file<\/span><\/h2>\nGo into the Apache directory and create a configuration file for the Neos CMS.<\/p>\n
cd \/etc\/apache2\/sites-available\/\r\n\r\ntouch neos.conf\r\n<\/pre>\nOpen the file, paste the following lines of code, save the file and close it.<\/p>\n
<VirtualHost *:80>\r\nServerName yourdomain.com<\/b>\r\nDocumentRoot \/var\/www\/html\/Web\r\n\r\n<Directory \/var\/www\/html\/Web>\r\nAllowOverride All\r\n<\/Directory>\r\n\r\nErrorLog ${APACHE_LOG_DIR}\/error.log\r\nCustomLog ${APACHE_LOG_DIR}\/access.log combined\r\n\r\n<Directory \/var\/www\/html\/Web\/>\r\n RewriteEngine on\r\n RewriteBase \/\r\n RewriteCond %{REQUEST_FILENAME} !-f\r\n RewriteRule ^(.*) index.php [PT,L]\r\n<\/Directory>\r\n\r\n<\/VirtualHost>\r\n\r\n<\/pre>\n Enable the Apache configuration for Neos CMS and rewrite the module.<\/p>\n
sudo a2enmod rewrite\r\n\r\nsudo a2ensite neos.conf\r\n<\/pre>\nCheck the syntax:<\/p>\n
apachectl -t<\/pre>\nYou should receive the following output:<\/p>\n
root@vps:~# apachectl -t\r\nSyntax OK\r\n<\/pre>\nIf the syntax is OK, restart the Apache service.<\/p>\n
systemctl reload apache2.service\r\n<\/pre>\nOnce the Apache service is restarted, you can finish the Neos CMS installation at http:\/\/yourdomain.com.<\/b><\/p>\n<\/span>Step 9. Finish Neos CMS Installation<\/span><\/h2>\nOn the first window, click on the “Go to setup” button.<\/p>\n
<\/p>\n
The setup will start with initializing.<\/p>\n
<\/p>\n
Enter the password only one time, which is located in the directory explained in the picture.<\/p>\n
<\/p>\n
You need to execute the following command on your server: \ncat \/var\/www\/html\/Data\/SetupPassword.txt<\/b><\/p>\n
<\/p>\n
In the next window, you need to check for the installed extensions. If everything is OK, it will be in green.<\/p>\n
<\/p>\n
In the next window, you need to enter the database credentials.<\/p>\n
<\/p>\n
In the next window, you need to set up the Administrator account.<\/p>\n
<\/p>\n
Next is to enter your website name and choose Neos.Demo package.<\/p>\n
<\/p>\n
Once the setup is complete, go to the backend.<\/p>\n
<\/p>\n
Enter the Admin credentials you set before and click on the Login<\/b> button.<\/p>\n
<\/p>\n
You will be redirected to the following screen.<\/p>\n
<\/p>\n
That’s it. You successfully installed and configured Neos CMS with LAMP stack on Ubuntu 22.04<\/p>\n
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.<\/p>\n
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.<\/p>\n","protected":false},"excerpt":{"rendered":"
In this tutorial, we are going to install Neos CMS on Ubuntu 22.04 OS. Neos CMS is an open-source Content … <\/p>\n
Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":42743,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1710,13,1698],"tags":[2021,2012],"yoast_head":"\nHow to Install Neos CMS on Ubuntu 22.04 - RoseHosting<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n \n \n \n \n\t \n\t \n\t \n