# How to Install osTicket on Rocky Linux 10

> URL: https://www.atlantic.net/dedicated-server-hosting/how-to-install-osticket-on-rocky-linux-10/ | Published: 2021-12-27 | Updated: 2025-10-19 | Author: Hitesh Jethva

osTicket is an open-source and web-based customer support ticketing system used to scale and streamline customer service operations. It is written in PHP programming and developed by Enhancesoft. osTicket is simple and lightweight and allows you to organize, manage and archive support requests. It helps to define routing rules for tickets to send the tickets to the correct department.

**Features**

- Ticket Filters
- Customer Support Portal
- Ticket Filters
- Custom Fields, Columns, and Queues
- Agent Collision Avoidance
- Assign, Transfer, & Referral

In this post, we will show you how to install osTicket on Rocky Linux 10.

## Step 1 – Install Apache, PHP, and MariaDB

First, install the Apache and MariaDB server package using the following command:

```
dnf install httpd mariadb mariadb-server -y
```

Next, install PHP with other required extensions using the following command:

```
dnf install php php-fpm php-pear php-cgi php-common php-curl php-gettext php-zip php-opcache php-apcu php-intl php-gd php-mysqli wget unzip -y
```

Once all the packages are installed, start and enable the Apache and MariaDB services:

```
systemctl enable --now httpd
systemctl enable --now mariadb
```

## Step 2 – Configure MariaDB Database

First, secure the MariaDB installation and set the MariaDB root password using the following command:

```
mysql_secure_installation
```

Answer all the questions as shown below:

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

Next, log in to the MariaDB server with the following command:

```
mysql -u root -p
```

Once you are logged in, create a database and user for osTicket:

```
CREATE DATABASE osticketdb;
GRANT ALL PRIVILEGES ON osticketdb.* TO osticketuser@localhost IDENTIFIED BY "securepassword";
```

Next, flush the privileges and exit from the MariaDB shell:

```
FLUSH PRIVILEGES;
EXIT;
```

## Step 3 – Install osTicket

First, download the latest version of osTicket using the following command:

```
wget https://github.com/osTicket/osTicket/releases/download/v1.18.2/osTicket-v1.18.2.zip
```

Once the download is completed, unzip the downloaded file to the Apache web root directory:

```
unzip osTicket-v1.18.2.zip -d /var/www/html/osTicket
```

Next, copy the osTicket sample configuration file:

```
cp /var/www/html/osTicket/upload/include/ost-sampleconfig.php /var/www/html/osTicket/upload/include/ost-config.php
```

Next, change the ownership of the osTicket directory to apache:

```
chown -R apache:apache /var/www/html/osTicket
chmod 777 /var/www/html/osTicket/upload/include/ost-config.php
```

## Step 4 – Configure Apache for osTicket

Next, you will need to create an Apache virtual host configuration file for osTicket. You can create it using the following command:

```
nano /etc/httpd/conf.d/osticket.conf
```

Add the following lines:

```
<VirtualHost *:80>
     ServerAdmin admin@example.com
     DocumentRoot /var/www/html/osTicket/upload
     ServerName osticket.example.com
     <Directory /var/www/html/osTicket/>
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     </Directory>

     ErrorLog /var/log/httpd/osticket_error.log
     CustomLog /var/log/httpd/osticket_access.log combined
</VirtualHost>
```

Save and close the file, then restart the Apache service to apply the changes:

```
systemctl restart httpd
```

You can now check the status of Apache using the command below:

```
systemctl status httpd
```

You should see the following output:

```
● httpd.service - The Apache HTTP Server
     Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; preset: disabled)
    Drop-In: /etc/systemd/system/httpd.service.d
             └─php-fpm.conf
     Active: active (running) since Sun 2025-10-19 01:17:12 EDT; 2s ago
 Invocation: 57272ab5ecf1496496887b8827f234d3
       Docs: man:httpd.service(8)
   Main PID: 11618 (httpd)
     Status: "Started, listening on: port 80"
      Tasks: 177 (limit: 24809)
     Memory: 13.2M (peak: 13.4M)
        CPU: 89ms
     CGroup: /system.slice/httpd.service
             ├─11618 /usr/sbin/httpd -DFOREGROUND
             ├─11619 /usr/sbin/httpd -DFOREGROUND
             ├─11620 /usr/sbin/httpd -DFOREGROUND
             ├─11621 /usr/sbin/httpd -DFOREGROUND
             └─11633 /usr/sbin/httpd -DFOREGROUND
```

## Step 5 – Access osTicket Web Installation Wizard

Now, open your web browser and access the osTicket web installation wizard using the URL **http://osticket.example.com**. You should see the following page:
 ![](https://www.atlantic.net/wp-content/uploads/2021/12/o1.png)
 Make sure all the PHP extensions are installed, then click on the **Continue** button. You should see the following page:
 ![](https://www.atlantic.net/wp-content/uploads/2021/12/o3.png)
 ![osticket admin user details](https://www.atlantic.net/wp-content/uploads/2021/12/a2-1.png)
 Provide your system settings, admin username, password, and database credentials, then click on the **Install** button. Once the installation is completed, you should see the following page:
 ![](https://www.atlantic.net/wp-content/uploads/2021/12/o4.png)
 Now, open your terminal, change the permissions of the osTicket configuration file, and remove the setup directory:

```
chmod 0644 /var/www/html/osTicket/upload/include/ost-config.php
rm -rf /var/www/html/osTicket/upload/setup/
```

Next, go back to your web browser and click on the **Your Staff Control Panel**. You should see the following page:
 ![osticket login](https://www.atlantic.net/wp-content/uploads/2021/12/a7-1.png)

Provide your admin username and password and click on the **Login** button. You should see the osTicket dashboard on the following page:

![](https://www.atlantic.net/wp-content/uploads/2021/12/o5.png)

## Conclusion

Congratulations! You have successfully installed osTicket with Apache on Rocky Linux 10. You can now use osTicket in your organization to provide customer support. Try it on [dedicated hosting](https://www.atlantic.net/dedicated-server-hosting/) from Atlantic.Net!
