Cant upload image into my UNA
i can no longer upload image to my site.
each time I upload image, it will take forever loading. and if i click on the save button everything disapeared as if i have not done anything.
Please I need who can help me find a solution to this. thank you
-
- · Romulus
- ·
Check if the hostname is set:
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 message echo "Permissions successfully set."
Check the latest 50 log entries in your app logs:
cd una tail -n 50 ./logs/*.log
And for NGINX logs:
tail -n 50 /var/log/nginx/access.log tail -n 50 /var/log/nginx/error.log
List cronjobs:
sudo crontab -u www-data -l
To edit cron jobs for the www-data user, run:
sudo crontab -u www-data -e
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!
-
- · pillarcom
- ·
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
-
- · Romulus
- ·
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:
ssh -i /path/to/private_key.pem username@your.server.ip.address
-
- · Romulus
- ·
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!