Hello, i would like to update to "14" stable version
Currently version: 14.0.0-RC1
But i can't update!
I received mail with this message:
Upgrade failed due to the following error: Files copying failed
But directories and files rights are goods
I can watch dir and files in /tmp directories.
I remember that i removed my key and secret for this domain, since i can't have access to marketplace.
Is this for this reason that i can't update my website?
How can i do to update my website please friends ? I'm lost, i've searched for weeks...
Comments
Hello @web !
You need to check the ownership of the files and folders of your UNA. Sometimes if the package has been uploaded under the root account it's impossible to replace the files and folders within under another users with the less srt of rights.
1. Changing Ownership of Files and Directories
sudo chown -R www-data:www-data .
chown -R www-data:www-data .
: Changes the ownership of all files and directories in the current directory (.
) towww-data
, which is typically the user and group under which the web server (e.g., Apache or Nginx) runs.2. Setting Permissions for Directories
find ./ -type d
: Searches for all directories in the current directory.chmod 755 {}
: Sets755
permissions for each directory, meaning the owner can read, write, and execute, while others can only read and execute.3. Setting Permissions for Specific Directories
chmod 775 {}
: Sets775
permissions for thestorage
andtmp
directories. The owner and group have read, write, and execute permissions, while others have only read and execute permissions.4. Setting Permissions for Specific Directories
chmod 775
: Sets775
permissions for certain directories (typically for directories that store dynamic data or temporary files), allowing full access for the owner and group, while only read and execute access is allowed for others.5. Setting Permissions for the
inc
755
permissions for theinc
directory, which likely contains critical application files. It must be readable and executable, but not writable for others.6. Setting Permissions for GitHub Folders
sudo chown -R root:root ./.github sudo chown -R root:root ./.git sudo chmod -R 755 ./.github sudo chmod -R 755 ./.git
root:root
for the.github
and.git
directories, and grants755
permissions to allow public read and execute access.7. Setting Permissions for Files
chmod 644 {}
: Sets644
permissions for all files, meaning the owner can read and write, while others can only read.8. Setting Execute Permissions for Specific Files
sudo chmod +x ./plugins/ffmpeg/ffmpeg.exe sudo chmod +x ./periodic/cron.php sudo chmod +x ./image_transcoder.php
chmod +x
: Grants execute permissions toffmpeg.exe
,cron.php
, andimage_transcoder.php
files, which must be executable for the server to run these scripts or applications.9. Setting Permissions for GitHub Files
.gitignore
file toroot:root
.10. Setting Permissions for Configuration Files
root:root
for configuration files (docker-compose.yml, .env, set_permissions.sh, rm_cache.sh).11. Setting Execute Permissions for Script Files
sudo chmod +x ./docker-compose.yml sudo chmod +x ./set_permissions.sh
docker-compose.yml
andset_permissions.sh
files (typically to make them executable on the server).#!/bin/bash # Set permissions for all files and directories sudo chown -R www-data:www-data . sudo find ./ -type d -exec chmod 755 {} \; sudo find ./storage -type d -exec chmod 775 {} \; sudo chmod 775 ./cache
CTRL + X
, then pressY
to confirm saving, andEnter
to save the file.Esc
to exit insert mode.:wq!
and pressEnter
.w
= write (save the file)q
= quit (close the editor)!
= force the action (useful if the file is read-only or has restrictions)2. Make the script executable
Now, you need to make the
set_permissions.sh
script executable:chmod +x set_permissions.sh
This command adds the execute (
+x
) permission to the script, allowing it to be run as a program.3. Execute the script
Once the script is executable, you can run it like this:
If you need to run it with superuser privileges (e.g., if it includes commands like
sudo
), you can execute it withsudo
:This will execute the script with root privileges.
4. Verify the execution
After running the script, you can check the permissions of the files and directories to ensure that the changes were applied correctly. You can use the
ls -l
command to list the files and their permissions:This will show you the permissions for each file and directory.
W
hummm i understood but the website is hosted on a shared hosting so i think i can't do that.
Is there an another to do that? I ever did an update on july 2024
Sorry, but it seems not. The shared hostings aren't good for the complex scripts like UNA.
It’s like trying to catch sharks with a bait hook designed for smaller fish. A cloud server is so cost-effective that it renders shared hosting unjustifiable. To effectively manage “UNA,” you will need at least a cloud server or a dedicated server. Once you have everything you need, you can move on to the next steps.