Answer the question
In order to leave comments, you need to log in
How to give rights to 755 image optimization modules in Ubuntu?
Hello everyone. Installed the JetCache module on Opencart. Installed the required image optimization modules on the Ubuntu server. But the following errors are displayed. How to give these modules rights 755?
Execute permissions webp (0755)
Not compliant
Ability to perform webp optimizations
Not compliant
Execution rights mozjpeg (0755)
Not compliant Execution rights to
mozjpeg
Not compliant
Execution rights jpegoptim (0755)
Not compliant
Ability to perform jpegoptim optimizations
Not compliant
Execution rights optipng ( 0755)
Doesn't match
Ability to perform optipng optimization
Does not match
Answer the question
In order to leave comments, you need to log in
755 is the permission for directories, for files 644 and even more stringent. For the "programs" themselves, the rights are generally a different story, here you need an executable bit (chmod + x) in the first place. The user who runs these "programs" must have execution rights. In addition, the files that need to be taken into work must have read permissions for this user, and the directory where the optimized images will be added must have write permissions for this user.
In your specific case, as I understand it, the module itself checks and says that either it does not have the rights to execute optipng / jpegotim / etc, or the directory where it needs to add the results is not writable.
In general, you need to kick for 755 and 644.
In a normally configured system, 700 for directories and 600 for files should be enough, in the extreme case 750 and 640.
Use find and chmod to set permissions in bulk
find . -type d -exec chmod 0755 {} \;
find . -type f -exec chmod 0644 {} \;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question