Run the following command in SSH to display the current hostname:
hostname
It should match your website’s domain name.
If it’s not set correctly, add or update it like this:
Edit the /etc/hostname file:
sudo vim /etc/hostname
Add your desired hostname (e.g. your.domain.com) on a single line.
Edit the /etc/hosts file:
sudo vim /etc/hosts
Make sure it includes:
127.0.0.1 localhost
127.0.1.1 your.domain.com
Apply the changes:
sudo hostname your.domain.com
And either restart the systemd-hostnamed service or reboot the server:
sudo systemctl restart systemd-hostnamed
or
sudo reboot
Setup una permissions:
#!/bin/bash# Move into the 'una' directory
cd una
# Change the owner of all files and folders to 'www-data' (the default web server user)
sudo chown -R www-data:www-data .
# Set permissions for all directories to 755:# 7 = read (4) + write (2) + execute (1) for the owner# 5 = read (4) + execute (1) for the group# 5 = read (4) + execute (1) for others
sudo find ./ -type d -exec chmod 755 {} \;
# Set permissions for all files to 644:# 6 = read (4) + write (2) for the owner# 4 = read (4) for the group# 4 = read (4) for others
sudo find ./ -type f -exec chmod 644 {} \;
# Give execute permission to ffmpeg.exe (because it’s an executable file)
sudo chmod +x ./plugins/ffmpeg/ffmpeg.exe
# Show confirmation messageecho"Permissions successfully set."
I’m sorry I wasn’t clear. These commands are only intended for SSH users. If you are a UNA Cloud customer, expect support from them they will handle your issue.
If you’re not familiar with SSH or command line tools, don’t worry you can ignore what I wrote.
For SSH commands, you need to use a terminal or SSH client (like PuTTY on Windows or Terminal on Mac/Linux).
If you haven’t used SSH before, it’s best to ask your UNA CLOUD provider or your system admiistrator for help.
Check if the hostname is set:
Run the following command in SSH to display the current hostname:
It should match your website’s domain name.
If it’s not set correctly, add or update it like this:
/etc/hostname
file:Add your desired hostname (e.g.
your.domain.com
) on a single line./etc/hosts
file:Make sure it includes:
And either restart the
systemd-hostnamed
service or reboot the server:or
Setup una permissions:
#!/bin/bash # Move into the 'una' directory cd una # Change the owner of all files and folders to 'www-data' (the default web server user) sudo chown -R www-data:www-data . # Set permissions for all directories to 755: # 7 = read (4) + write (2) + execute (1) for the owner # 5 = read (4) + execute (1) for the group # 5 = read (4) + execute (1) for others sudo find ./ -type d -exec chmod 755 {} \; # Set permissions for all files to 644: # 6 = read (4) + write (2) for the owner # 4 = read (4) for the group # 4 = read (4) for others sudo find ./ -type f -exec chmod 644 {} \; # Give execute permission to ffmpeg.exe (because it’s an executable file) sudo chmod +x ./plugins/ffmpeg/ffmpeg.exe # Show confirmation message echo "Permissions successfully set."
Check the latest 50 log entries in your app logs:
And for NGINX logs:
tail -n 50 /var/log/nginx/access.log tail -n 50 /var/log/nginx/error.log
List cronjobs:
To edit cron jobs for the www-data user, run:
clear all cache
Check if you have all required PHP extensions installed.
If you need to reinstall PHP, you can check this guide:
happy coding!
P
The entire thing look so confusing. Where do i go to, do I click? where do i input the code and code will I input.
Please make it easy to understand
Example of logging into SSH:
ssh username@your.server.ip.address
Where:
username
is your user on the server (usuallyroot
or another configured user)your.server.ip.address
is the server's IP address or domain name (e.g.,192.168.1.100
orexample.com
)Example:
ssh root@192.168.1.100
After running the command, you will be prompted to enter the password for that user. Once entered, you will be logged into the server shell.
If you use a private key file for authentication, use:
I’m sorry I wasn’t clear. These commands are only intended for SSH users. If you are a UNA Cloud customer, expect support from them they will handle your issue.
If you’re not familiar with SSH or command line tools, don’t worry you can ignore what I wrote.
For SSH commands, you need to use a terminal or SSH client (like PuTTY on Windows or Terminal on Mac/Linux).
If you haven’t used SSH before, it’s best to ask your UNA CLOUD provider or your system admiistrator for help.
Have a nice day!