AssetTrackDB Install on AlmaLinux OS 9.2

1. Install AlmaLinux OS 9.2

2. Update

dnf check-update
dnf update

3. Install Apache

dnf install -y httpd

Once the Apache installation is complete, you will have to start and enable the httpd service.
   systemctl start httpd
   systemctl enable httpd

Next, allow HTTP and HTTPS traffic in your firewall
   firewall-cmd --permanent --zone=public --add-service=http
   firewall-cmd --permanent --zone=public --add-service=https

In order to apply the new firewall rules, restart your firewall by using the following command.
   firewall-cmd --reload

4. Install MySQL

dnf install -y mysql mysql-server

After the installation is completed, start and enable the mysqld service to run at system boot.
   systemctl start mysqld
   systemctl enable mysqld

Set root Password for MySQL:

   ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'CHANGEMe';

5. Install PHP

dnf module enable php:8.1
dnf install php php-fpm php-zip php-intl php-opcache php-gd php-mbstring php-gd php-xml php-mysqlnd

6. Create a folder on where the AssetTrackDB files will reside. Example: /var/www/html/asset

sudo mkdir /var/www/html/asset

7. Download Asset:


8. Extract the downloaded file to the folder created in step 3.

sudo tar xf AssetTrackDB_R22.tar -C /var/www/html/asset/

9. Change permissions of install location

chown -R apache /var/www/html/asset

10. Change directory to AssetTrackDB file location

cd /var/www/html/asset/

11. Run setup script and follow instructions

sudo ./

12. Reboot

shutdown -r now

13. Visit AssetTrackDB site: http://serverIPorDNS/asset/

Login with default credentials
Username: admin
Password: pass

NOTE for SELinux

  If you receive an error saying "can't open file" then you likely have SELinux enabled, use these commands to fix the issue:

sudo semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/asset(/.*)?"
sudo restorecon -RF /var/www/html