2) You server hasn't the installed modrewrite module which is one of UNA's requirements. So, in this case, you need to contact with your hosting support to install / enable it.
Also to correctly process video and photo files, make sure you specify your domain in the host. Here’s how to add a host to your server in Linux:
Steps to Add a Host in Linux
Open the Terminal: Access your Linux terminal.
Edit the Hosts File: Use a text editor to open the /etc/hosts file. You will need superuser (root) privileges to edit this file. You can use nano, vim, or any text editor of your choice. Here’s an example using nano:
sudo nano /etc/hosts
Add Your Host: Once you have the file open, you can add a new line for your domain. The format is:
<IP_address><hostname>
For example, if you want to add a host for the domain www.example.com pointing to the IP address 192.168.1.100, you would add the following line:
Save the Changes: After you have added the necessary line, save the changes. If you are using nano, you can do this by pressing CTRL + X, then Y to confirm changes, and Enter to exit.
Test the Configuration: To ensure that your new host is properly configured, you can use the ping command to check if it resolves correctly:
If everything is set up correctly, you should see responses from the specified IP address.
Additional Steps
Restart Services: In some cases, you may need to restart certain services or your network for the changes to take effect, but typically changes to the /etc/hosts file take effect immediately.
DNS Configuration: If you are running a more complex setup or need external accessibility, consider configuring DNS records through your domain registrar or DNS provider instead.
Hello Steveguo!
There maybe 2 points:
1) You haven't uploaded .htaccess file in the root of UNA directory. You may get it from here https://github.com/unaio/una/blob/master/.htaccess
2) You server hasn't the installed modrewrite module which is one of UNA's requirements. So, in this case, you need to contact with your hosting support to install / enable it.
S
thank you!
E
Hi @LeonidS, I have the 404 issue with 14.0.
.htaccess is in place and mod_rewrite is enabled.
What would you recommend?
Thanks!
Hello @elacoursiere !
The usual reason in this trouble - the missing .htaccess file in the root folder of UNA. Could you please check if it exists there or not?
HI, if your UNA CMS install isn’t routing requests correctly (404 errors, service worker issues, blank pages), follow this checklist step by step:
Check Official Requirements
Verify that your server meets UNA’s requirements: 👉 UNA CMS Requirements Overview
Check Nginx & PHP-FPM Service Status
If any service isn’t running, restart them:
Check Nginx Error Logs
sudo tail -n 100 /var/log/nginx/error.log
Look for errors like:
open() "/var/www/html/your/path" failed (2: No such file or directory)
Check PHP-FPM Logs
sudo tail -n 100 /var/log/php8.1-fpm.log
If you have custom pool configs, check those log paths too.
Verify Nginx Site Configuration
Ensure your Nginx config has the correct routing requests should fall back to
index.php
. Example config: 👉 UNA Docker Nginx Config ExampleCheck if you have correctly set UNA root in nginx config
if it is not correct change it
After any edits, reload Nginx:
or
Clear UNA Cache
Inside your UNA directory:
Then check:
Delete everything except
.htaccess
files.Check UNA Logs
Check File & Directory Permissions
Ensure the web server can write to essential folders:
so..
and then:
sudo chown -R www-data:www-data . sudo find ./ -type d -exec chmod 755 {} \; sudo find ./ -type f -exec chmod 644 {} \; # Set execute permissions for ffmpeg.exe sudo chmod +x ./plugins/ffmpeg/ffmpeg.exe
Check MySQL/MariaDB Logs
For MySQL:
sudo tail -n 100 /var/log/mysql/error.log
For MariaDB:
sudo tail -n 100 /var/log/mysql/mariadb.log
Look for errors like:
Access denied for user 'una_user'@'localhost'
Unknown database 'una_db'
Restart All Services
Important Note:
HAPPY CODING!
E
It's in the application root directory and rewrite is enabled.
Thanks
E
Thanks @Romulus , your post helped a lot!
Cheers!
well I forgot something
# Set execute permissions for ffmpeg.exe sudo chmod +x ./plugins/ffmpeg/ffmpeg.exe
Also to correctly process video and photo files, make sure you specify your domain in the host. Here’s how to add a host to your server in Linux:
Steps to Add a Host in Linux
/etc/hosts
file. You will need superuser (root) privileges to edit this file. You can usenano
,vim
, or any text editor of your choice. Here’s an example usingnano
:<IP_address> <hostname>
www.example.com
pointing to the IP address192.168.1.100
, you would add the following line:nano
, you can do this by pressingCTRL + X
, thenY
to confirm changes, andEnter
to exit.ping
command to check if it resolves correctly:Additional Steps
/etc/hosts
file take effect immediately.