Install Ticaga
Let's log into the new user we created earlier:
su demo
Let's give our www folder the correct permissions:
sudo chown -R $USER /var/www/
Before we continue let's disable SELinux:
sudo sed -c -i "s/\SELINUX=.*/SELINUX=disabled/" /etc/selinux/config
And Selinux rules incase it's playing up:
semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/ticaga/storage(/.*)?"
semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/ticaga/bootstrap/cache(/.*)?"
restorecon -Rv /var/www/ticaga
sudo setsebool -P httpd_can_network_connect_db 1
Let's go to the www folder:
cd /var/www/
Let's create the Laravel project which we will use for Ticaga:
composer create-project --prefer-dist laravel/laravel ticaga
Now let's go into the ticaga folder:
cd ticaga
Let's remove all the default files from Laravel:
rm -rf ./*
THIS IS AN IMPORTANT STEP AND DANGEROUS, ENSURE THE ./ IS BEFORE THE *, ELSE YOU WILL DELETE THE WHOLE SERVER!
If you are worried about breaking your server, please contact our support team or open a sales ticket if you have a trial license.
Let's get the latest version of Ticaga:
wget -N https://ticaga.com/latest.zip
Unzip the files:
unzip latest.zip
Let's provide the correct permissions for Ticaga:
sudo chown -R apache: ./*
Let's give the correct permissions for the storage folder (This saves user images etc):
sudo chmod -R 775 storage/
Now we've done everything we need, it's time to edit the .env file for Ticaga.
sudo mv .env.example .env
and let's edit the newly created .env:
nano .env
or you can use vi to edit:
vi .env
You can now edit the main settings:
APP_NAME="Ticaga Demo"
This is your company name.
APP_URL=https://demo.ticaga.com
This is your URL to your Ticaga, sub-domain or main domain if you prefer.
DEFAULT_DEPARTMENT=support
This is your default department for tickets if the customer selects "Create ticket".
If you leave this blank it will disable the "Create ticket" button.
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=ticaga
DB_USERNAME=ticaga_user
DB_PASSWORD=p@s3w0r$2024!
These are the database name, username and password you created when doing the Database.
Let's provide the permissions for the bootstrap and storage folders:
sudo chmod -R ugo+rw bootstrap storage
Now we need to run the composer command to create the vendors folder for Ticaga, without this Ticaga won't work. We don't ship the vendors folder as it is huge:
sudo composer install
Now we need to generate a secure App Key:
sudo php artisan key:generate
Let's sort the storage link out so you can upload avatars:
sudo php artisan storage:link
Let's create the database tables for Ticaga:
sudo php artisan migrate
Now let's install Vite (this ensures nothing goes wrong during set-up):
sudo rm -rf node_modules/
sudo npm install
sudo npm install -g vite
sudo chown -R $USER /var/www/ticaga
Lets now build Ticaga:
sudo npm run build
Reboot the server to kick Ioncube into action:
sudo reboot
Log back into the server and go to Ticaga:
cd /var/www/ticaga
Log into the username:
su demo
Load up Ticaga:
php artisan serve
That's it now you have a fully working Ticaga.