MAYCON HENRIQUE Posted Saturday at 03:11 AM Share Posted Saturday at 03:11 AM I'm receiving a permission error related to the "modules" folder in PrestaShop that I don't know how to resolve. Error message: Unable to write to the following folders. Provide write access to the user running PHP with the appropriate permissions and ownership: modules Evidence: https://prnt.sc/ssjX0QgJXx_1 Link to comment Share on other sites More sharing options...
ComGrafPL Posted Saturday at 10:22 AM Share Posted Saturday at 10:22 AM Check modules folder permissions are set to 755. Link to comment Share on other sites More sharing options...
4presta Posted Saturday at 04:24 PM Share Posted Saturday at 04:24 PM (edited) Hi. I'll give you a small sample script that will fix permissions for the folder and subfolders in "modules" and all files. I also have a script here that will fix permissions globally in all folders and subfolders of Prestashop. You need to have max_execution_time set to a higher value. Just upload the files to FTP and run them in a browser, for example:https://my-shop.cd/repair-permissions-modules.php After the repair is complete, you need to delete the files from FTP!!! repair-permissions-modules.zip Edited yesterday at 06:49 AM by 4presta (see edit history) Link to comment Share on other sites More sharing options...
MAYCON HENRIQUE Posted yesterday at 01:43 AM Author Share Posted yesterday at 01:43 AM Essa solução não funciona. O script global não é executado; ele apenas continua carregando no navegador. O script para a pasta do módulo foi executado no diretório raiz, mas não afetou em nada. Meu cPanel mostra que a string já está ajustada no valor alto de 30.000. Link to comment Share on other sites More sharing options...
4presta Posted yesterday at 10:20 AM Share Posted yesterday at 10:20 AM Please follow the forum language. The problem is that the owner may be different from the user who uploaded the file to FTP. We don't see what is important to us. In FileZilla, the permissions (number 0644 for example) are not visible and there is no other owner field for the uploaded script and the like. I updated the script. Link to comment Share on other sites More sharing options...
MAYCON HENRIQUE Posted yesterday at 04:25 PM Author Share Posted yesterday at 04:25 PM Hello Friend This error now: Link to comment Share on other sites More sharing options...
4presta Posted yesterday at 06:56 PM Share Posted yesterday at 06:56 PM Hi, The problem is with the permissions as I wrote. You will need to hire someone to fix the permissions in cPanel. It's hard to explain. Currently the folder permissions are set to 0775. This article is good for how to solve this in cPanel https://truehost.com/how-to-fix-permission-errors-in-cpanel/ Link to comment Share on other sites More sharing options...
MAYCON HENRIQUE Posted yesterday at 07:01 PM Author Share Posted yesterday at 07:01 PM What permissions should the modules folder have? Link to comment Share on other sites More sharing options...
4presta Posted yesterday at 07:03 PM Share Posted yesterday at 07:03 PM Folders 755, files 644 Link to comment Share on other sites More sharing options...
markzilly Posted 11 hours ago Share Posted 11 hours ago That’s frustrating Prestashop update errors are common. It often comes from incompatible modules, file permissions, or server limits. Try clearing cache, disabling non-native modules, and backing up before retrying the update, or check the exact error message to pinpoint the cause. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now