Skip to content
Follow
CMS Ubuntu Linux

How to Install UVdesk with Apache on Ubuntu Linux

Richard
Written by
Richard
Feb 10, 2021 Updated Jul 14, 2026 7 min read
Enable Automatic Suspension in Ubuntu Linux Easily
Enable Automatic Suspension in Ubuntu Linux Easily

Installing UVdesk with Apache on Ubuntu Linux sets up an open-source system to handle customer support tickets.

UVdesk is a platform that helps your business manage customer inquiries and support requests in one place. It makes it easier to keep track of who needs help and what they need.

This guide shows you how to install UVdesk on Ubuntu 20.04 or 18.04, using the Apache2 web server and MariaDB for your database. You will prepare your system, get UVdesk from GitHub, and configure Apache2 to make it work.

⚡ Quick Answer

Install Apache2 using `sudo apt install apache2`, then install MariaDB with `sudo apt install mariadb-server mariadb-client`. Create a database and user for UVdesk within MariaDB. Finally, install PHP and necessary modules via `sudo apt install php7.4 libapache2-mod-php7.4 php7.4-mysql`.

Install Apache

Apache is a popular web server that UVdesk needs to run. Installing Apache2 on your Ubuntu system is the first step to get UVdesk working. You can install Apache2 by running the commands ‘sudo apt update’ and ‘sudo apt install apache2’ in your terminal.

To install Apache2 HTTP on the Ubuntu server, run the commands below.

🐧Bash / Shell
sudo apt update
sudo apt install apache2

After installing Apache2, the commands below can stop, start, and enable the Apache2 service to always start up with the server boots.

🐧Bash / Shell
sudo systemctl stop apache2.service
sudo systemctl start apache2.service
sudo systemctl enable apache2.service

To test the Apache2 setup, open your browser and browse to the server hostname or IP address. You should see the Apache2 default test page, as shown below. When you see that, Apache2 will work as expected.

💻Code
http://localhost
Apache2 test page displayed on Ubuntu server
apache2 test page

Install MariaDB

UVdesk needs a database to store its information, and MariaDB is a great open-source choice. To install MariaDB on your Ubuntu server, you’ll run the commands ‘sudo apt update’ and ‘sudo apt install mariadb-server mariadb-client’. This sets up the database system for UVdesk.

To install MariaDB, run the commands below:

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

After installing MariaDB, the commands below can stop, start, and enable the service to start when the server boots.

🐧Bash / Shell
sudo systemctl stop mariadb.service
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service
⚠️Warning
When done, run the commands below to secure the MariaDB server by creating a root password and disallowing remote root access.
🐧Bash / Shell
sudo mysql_secure_installation

When prompted, answer the questions below by following the guide.

  • Enter current password for root (enter for none): Press the Enter
  • Set root password? [Y/n]: Y
  • New password: Enter password
  • Re-enter new password: Repeat password
  • 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

Restart the MariaDB server when done.

Create UVdesk database

After installing MariaDB, you need to create a specific database for UVdesk to use. You can create this blank UVdesk database by first logging into MariaDB using ‘sudo mysql -u root -p’ and then running the command ‘CREATE DATABASE uvdesk;’. This prepares the database for UVdesk.

⚠️Warning
To do that, run the commands below to log on to MariaDB. When prompted for a password, type the root password you created above.
🐧Bash / Shell
sudo mysql -u root -p

Then, create a database called uvdesk

💻Code
CREATE DATABASE uvdesk;

Create a database user called uvdeskadmin with a new password

💻Code
CREATE USER 'uvdeskadmin'@'localhost' IDENTIFIED BY 'new_password_here';

Next, grant the user full access to the uvdeskadmin database.

💻Code
GRANT ALL ON uvdesk.* TO 'uvdeskadmin'@'localhost' WITH GRANT OPTION;

Finally, save your changes and exit.

💻Code
FLUSH PRIVILEGES;
EXIT;

Now that the MariaDB server is installed and a database created go and install UVdesk.

UVdesk requires PHP to function, and we’ll install version 7.4. Since this might not be in Ubuntu’s default list, you need to add a third-party repository first. Run ‘sudo apt-get install software-properties-common’ and ‘sudo add-apt-repository ppa:ondrej/php’ to get PHP 7.4.

Run the commands below to add the below third party repository to upgrade to PHP 7.4

🐧Bash / Shell
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php

Then update and upgrade to PHP 7.4

🐧Bash / Shell
sudo apt update

Next, run the commands below to install PHP 7.2 and related modules.

🐧Bash / Shell
sudo apt install php7.4 libapache2-mod-php7.4 php7.4-common php7.4-gmp php7.4-curl php7.4-intl php7.4-mbstring php7.4-xmlrpc php7.4-mysql php7.4-gd php7.4-xml php7.4-imap php7.4-mailparse php7.4-cli php7.4-zip

After installing PHP 7.4, run the commands below to open the PHP default config file for Apache2.

🐧Bash / Shell
sudo nano /etc/php/7.4/apache2/php.ini

Then, save the changes on the following lines below in the file. The value below is an ideal setting to apply in your environment.

💻Code
file_uploads = On
allow_url_fopen = On
short_open_tag = On
memory_limit = 256M
upload_max_filesize = 100M
max_execution_time = 360
max_input_vars = 1500
date.timezone = America/Chicago

After making the change above, please save the file and close it.

Next, enable Apache modules for FastCGI support, then restart the Apache service.

🐧Bash / Shell
sudo systemctl restart apache2.service

To test PHP 7.4 settings with Apache2, create a phpinfo.php file in the Apache2 root directory by running the commands below

🐧Bash / Shell
sudo nano /var/www/html/phpinfo.php

Then, type the content below and save the file.

🐘PHP
<?php phpinfo( ); ?>

Save the file. Then browse to your server hostname followed by /phpinfo.php

🐘PHP
http://localhost/phpinfo.php

You should see the PHP default test page.

PHP 8 installation on Ubuntu Linux
php8 0 ubuntu

Install UVdesk

It’s time to install UVdesk using its GitHub repository. First, you need to install Composer, which helps manage UVdesk’s code, along with tools like Curl and Git. Run ‘sudo apt install curl git’ and then use the provided command to install Composer.

🐧Bash / Shell
sudo apt install curl git
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

After installing curl and Composer above, please change it to the Apache2 root directory and download UVdesk packages from GitHub.

Command Prompt
sudo mkdir /var/www/uvdesk
sudo chown $USER:$USER /var/www/uvdesk
cd /var/www/uvdesk
composer clear-cache
composer create-project uvdesk/community-skeleton helpdesk-project

After running the commands above, you should see a success message similar to the one below:

🐘PHP
To start things off, here are a few commands to help you setup:

  * Configuring your project:

    php bin/console uvdesk:configure-helpdesk

  * Run your project through a local php web server:

    php bin/console server:run

Made with 💖  by the UVDesk Team. Happy helping :)

Then, run the commands below to set the correct permissions for UVdesk to function.

🐧Bash / Shell
sudo chown -R www-data:www-data /var/www/uvdesk/
sudo chmod -R 755 /var/www/uvdesk/

Configure Apache

To let Apache know how to serve your UVdesk site, you need to create a configuration file. You’ll set up this Apache configuration file for UVdesk by running ‘sudo nano /etc/apache2/sites-available/uvdesk.conf’. Copy and paste the provided content into this file.

🐧Bash / Shell
sudo nano /etc/apache2/sites-available/uvdesk.conf

Then copy and paste the content below into the file and save it. Replace the highlighted line with your domain name and directory root location.

💻Code
<VirtualHost *:80>
     ServerAdmin admin@example.com
     DocumentRoot /var/www/uvdesk/helpdesk-project/public
     ServerName example.com
     ServerAlias www.example.com

     <Directory /var/www/uvdesk/helpdesk-project/public/>
        Options +FollowSymlinks
        AllowOverride All
        Require all granted
     </Directory>

     ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

Save the file and exit.

Enable the UVdesk

With the Apache configuration ready, you need to enable it for your server to use UVdesk. To enable the UVdesk site and make it live, run the commands ‘sudo a2ensite uvdesk.conf’, ‘sudo a2enmod rewrite’, and ‘sudo systemctl restart apache2.service’. Then, you can access the UVdesk setup wizard in your browser.

🐧Bash / Shell
sudo a2ensite uvdesk.conf
sudo a2enmod rewrite
sudo systemctl restart apache2.service

Then open your browser and browse to the server domain name. You should see the complete UVdesk setup wizard. Please follow the wizard carefully.

http://example.com/.

UVdesk installation process on Ubuntu
uvdesk ubuntu install

The wizard will check your MySQL database connection for any issues and configure it with your application.

Type in the database and user you created above and continue.

MariaDB setup for UVdesk on Ubuntu
uvdesk ubuntu mariadb setup

The wizard will create a default super admin account that can be used to access your application’s backend.

Create a UVdesk super admin account.

UVdesk super admin setup on Ubuntu
uvdesk ubuntu super admin

Proceed with the wizard until you’ve successfully installed the platform. Then, done, start using it.

Final UVdesk setup on Ubuntu Linux
uvdesk ubuntu setup

That’s it!

Conclusion:

This post showed you how to install UVdesk on Ubuntu 20.04 | 18.04. If you find any error above, please use the form below to report.

Was this guide helpful?

Was this 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.

📚 Related Tutorials

How to Install Apache on Ubuntu Linux
Ubuntu Linux How to Install Apache on Ubuntu Linux
How to Install VMware Workstation Pro on Ubuntu Linux
Ubuntu Linux How to Install VMware Workstation Pro on Ubuntu Linux
How to Install VMware Workstation Player on Ubuntu Linux
Ubuntu Linux How to Install VMware Workstation Player on Ubuntu Linux
How to Install GNOME Desktop on Ubuntu 24.04
Ubuntu Linux How to Install GNOME Desktop on Ubuntu 24.04

0 Comments

  • Thank you very much for this wonderful resource. It helped me greatly.

    Reply
  • This is WAY BETTER than what UVDesk offered. Thank you!

    Reply
  • Hi, it’s possible to install uvdesk with symfony 4.4?

    Reply
  • Very Helpful installation process. Any change to have a “Getting Started or an Intro on how to setup uvdek”?

    Reply
  • Well there’s a problem I ran

    composer create-project uvdesk/community-skeleton helpdesk-project

    and saw the following error

    – Configuring uvdesk/support-center-bundle

    Executing script cache:clear [KO]
    [KO]
    Script cache:clear returned with error code 1
    !! Could not open input file: ./bin/console
    !!
    Script @auto-scripts was called via post-update-cmd
    administrator@ubuntu-uvdesk:/var/www/uvdesk$

    Reply
  • Top Shelf Tech

    I am also running in to this issue. Tried a full fresh install of Ubuntu 20.04.4 Server Edition and went straight into the guide. No good on two separate VM’s. Something is broken and needs to be amended to get this working again, I still haven’t figured out what that is and I’ve been looking for a while.

    Reply
  • How can i create account for agent with password

    Reply

Leave a Comment

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