How to Install Neos on Ubuntu Server

In this tutorial, we will guide you through the process of installing Neos on Ubuntu server latest version.

Prerequisites

Before starting the Neos installation, make sure that your server is up to date by running the following commands in your terminal:

sudo apt-get update
sudo apt-get upgrade

Step 1: Install required packages

To install Neos, we need to install some packages on our server. Run the following command to install those packages:

sudo apt-get install apache2 php7.4 libapache2-mod-php7.4 php7.4-cli php7.4-mbstring php7.4-xml php7.4-mysql unzip

This command will install Apache web server, PHP, and required PHP modules.

Step 2: Install Neos

To download Neos, navigate to the official website, https://www.neos.io, and download the latest stable release of Neos in a zip format.

Once the download is complete, go to the directory where the file is stored and run the following command:

sudo unzip neos-X.X.X.zip -d /var/www/html/

Replace X.X.X with the version of Neos you have downloaded.

This command will extract the contents of the zip file into /var/www/html/ directory.

Step 3: Configure Apache

By default, Apache is configured to serve files from /var/www/html directory. However, we need to configure Apache to serve Neos from this specific directory. To do that, we need to create an Apache virtual host file for Neos.

Run the following command to create a virtual host file:

sudo nano /etc/apache2/sites-available/neos.conf

Add the following contents to the file:

<VirtualHost *:80>
    ServerAdmin admin@example.com
    DocumentRoot /var/www/html/neos/Web
    ServerName neos.example.com

    <Directory /var/www/html/neos/Web>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
        Require all granted
    </Directory>

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

Save and close the file by pressing ctrl+x, then y, then enter.

Now, enable the newly created virtual host by running the following command:

sudo a2ensite neos.conf

Also, enable the Apache rewrite module by running the following command:

sudo a2enmod rewrite

Finally, restart the Apache service to apply these changes by running the following command:

sudo systemctl restart apache2

Step 4: Set Permissions

Next, we need to make sure that the web server has the necessary permissions to access the Neos files.

To do that, run the following command:

sudo chown -R www-data:www-data /var/www/html/neos

This command will change the owner of the Neos files to the web server user www-data.

Step 5: Access Neos

Open your web browser and navigate to http://<server-ip-address>/neos.

You will see the Neos setup screen. Follow the instructions to complete the setup process.

Once the setup is complete, you will be redirected to the Neos backend login page.

Congratulations! You have successfully installed Neos on your Ubuntu server.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!