CMS

How to Install FreeScout with Nginx on Ubuntu Linux

Richard
Written by
Richard
Sep 10, 2023 Updated Apr 18, 2026 3 min read

FreeScout is an open-source help desk and shared mailbox platform. It is a great alternative to paid services like Zendesk. It runs on your own server using PHP and a database.

Why: You want total control over your customer support data and want to avoid monthly subscription fees.

What happens when done: You will have a professional, self-hosted help desk platform ready to manage your emails and customer tickets.

Install nginx-on-ubuntu-linux/" class="sal-link" rel="noopener" target="_blank" data-sal-id="17885">Nginx on Ubuntu Linux

Nginx acts as the engine that serves your help desk pages to the web.

Run these commands to install it:

🐧Bash / Shell
sudo apt update
sudo apt install nginx

Manage the service with these commands:

🐧Bash / Shell
sudo systemctl start nginx
sudo systemctl enable nginx

Open your web browser and go to your server’s IP address. You should see the “Welcome to nginx!” page.

Install Nginx web server on Ubuntu Linux

Additional help on installing Nginx: How to install Nginx on Ubuntu

Install MariaDB on Ubuntu Linux

MariaDB acts as the filing cabinet for your help desk data.

Install it with these commands:

🐧Bash / Shell
sudo apt update
sudo apt install mariadb-server

Ensure it starts automatically:

🐧Bash / Shell
sudo systemctl enable mariadb
sudo systemctl start mariadb

Test the connection:

🐧Bash / Shell
sudo mariadb

You should see a welcome message showing the version. Additional help on installing MariaDB: How to install MariaDB on Ubuntu Linux

Create FreeScout database

You need a secure space for your data. First, secure your database installation:

🐧Bash / Shell
sudo mysql_secure_installation

Follow the prompts to remove anonymous users and lock down remote access.

Now, log back into MariaDB to create your database:

🐧Bash / Shell
sudo mariadb

Run these commands inside the MariaDB console:

💻Code
CREATE DATABASE freescoutdb CHARSET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER freescoutdbuser@localhost IDENTIFIED BY 'your_secure_password';
GRANT ALL ON freescoutdb.* TO freescoutdbuser@localhost WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit

Install PHP and Required Extensions

FreeScout needs PHP to process logic. We will use PHP 8.3, which is standard for Ubuntu 24.04.

🐧Bash / Shell
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.3-fpm php8.3-mysql php8.3-curl php8.3-gd php8.3-imap php8.3-mbstring php8.3-xml php8.3-zip php8.3-intl

Download and Configure FreeScout

Create the directory and download the files:

Command Prompt
sudo mkdir -p /var/www/freescout
cd /var/www/freescout
sudo git clone https://github.com/freescout-helpdesk/freescout .
sudo chown -R www-data:www-data /var/www/freescout

Nginx Server Block and SSL

Create a file for your site configuration:

🐧Bash / Shell
sudo nano /etc/nginx/sites-available/freescout

Paste your configuration pointing to the /var/www/freescout/public directory and ensure fastcgi_pass points to unix:/run/php/php8.3-fpm.sock.

Enable the site:

🐧Bash / Shell
sudo ln -s /etc/nginx/sites-available/freescout /etc/nginx/sites-enabled/
sudo systemctl restart nginx

Secure with Certbot:

🐧Bash / Shell
sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx

Follow the prompts to secure your domain with a free SSL certificate.

Installation Wizard

Open your browser and visit your domain.

Install FreeScout Help Desktop with Nginx on Ubuntu Linux

Follow the on-screen steps to:

  • Check requirements
  • Enter database details
  • Create your admin account

Once finished, set up the background tasks by running sudo crontab -u www-data -e and adding the line provided by the FreeScout installer. You are now ready to log in and start your dashboard.

Install FreeScout Help Desktop with Nginx on Ubuntu Linux

Conclusion: By self-hosting, you keep your data private and save money. You now have a fully functional help desk ready for use.

Reference: FreeScout

Was this guide helpful?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

One response to “How to Install FreeScout with Nginx on Ubuntu Linux”

Leave a Reply

Your email address will not be published. Required fields are marked *

Exit mobile version