Permissions Problem

My Error:
Component
Writable Cache Sub-Directories

The files or directories listed below are not writeable or are missing and cannot be created. Depending on your Operating System, correcting this may require you to change permissions on the files or parent directory (chmod 755), or to right click on the parent directory and uncheck the ‘read only’ option and apply it to all subfolders.

Please fix the following files or directories before proceeding:
/var/www/html/crm/cache/
/var/www/html/crm/cache/images
/var/www/html/crm/cache/layout
/var/www/html/crm/cache/pdf
/var/www/html/crm/cache/xml
/var/www/html/crm/cache/include/javascript

Writable Modules Sub-Directories and Files

Warning: Not Writable

Please fix the following module directories and the files under them before proceeding:
/modules
Writable Upload Directory

Warning: Not Writable

My File permissions:
drwxr-xr-x 19 root root 4096 Mar 4 12:49 .
drwxr-xr-x 24 root root 4096 Mar 4 12:24 …
-rw-r–r-- 1 root root 2743 Mar 4 12:48 acceptDecline.php
drwxr-xr-x 8 root root 4096 Mar 4 13:02 cache
-rw-r–r-- 1 root root 3590 Mar 4 12:48 campaign_tracker.php
-rw-r–r-- 1 root root 2748 Mar 4 12:48 campaign_trackerv2.php
-rwxrw-rw- 1 root root 47 Mar 4 12:48 config_override.php
-rw-r–r-- 1 root root 3922 Mar 4 12:48 cron.php
-rw-r–r-- 1 root root 2446 Mar 4 12:48 crossdomain.xml
drwxrw-rw- 6 root root 4096 Mar 4 12:29 custom
drwxr-xr-x 3 root root 4096 Mar 4 12:29 data
-rw-r–r-- 1 root root 2388 Mar 4 12:48 dictionary.php
-rw-r–r-- 1 root root 11578 Mar 4 12:48 download.php
-rw-r–r-- 1 root root 2392 Mar 4 12:48 emailmandelivery.php
drwxr-xr-x 2 root root 4096 Mar 4 12:29 examples
-rw-r–r-- 1 root root 4912 Mar 4 12:48 export.php
-rw-r–r-- 1 root root 718163 Mar 4 12:48 files.md5
-rw-r–r-- 1 root root 2811 Mar 4 12:48 HandleAjaxCall.php
-rw-r–r-- 1 root root 2371 Mar 4 12:48 ical_server.php
-rw-r–r-- 1 root root 2735 Mar 4 12:48 image.php
drwxr-xr-x 56 root root 4096 Mar 4 12:35 include
-rw-r–r-- 1 root root 2525 Mar 4 12:48 index.php
drwxr-xr-x 6 root root 4096 Mar 4 12:35 install
-rw-r–r-- 1 root root 29438 Mar 4 12:48 install.php
-rw-r–r-- 1 root root 13373 Mar 4 12:48 json_server.php
drwxr-xr-x 3 root root 4096 Mar 4 12:35 jssource
-rw-r–r-- 1 root root 2737 Mar 4 12:48 leadCapture.php
-rw-r–r-- 1 root root 34539 Mar 4 12:48 LICENSE.txt
drwxr-xr-x 2 root root 4096 Mar 4 12:37 log4php
-rw-r–r-- 1 root root 2313 Mar 4 12:48 log_file_restricted.html
-rw-r–r-- 1 root root 2376 Mar 4 12:48 maintenance.php
drwxr-xr-x 2 root root 4096 Mar 4 12:37 metadata
-rw-r–r-- 1 root root 2298 Mar 4 12:48 metagen.php
drwxr-xr-x 3 root root 4096 Mar 4 12:37 ModuleInstall
drwxr-xr-x 108 root root 4096 Mar 4 12:43 modules
-rw-r–r-- 1 root root 2890 Mar 4 12:48 pdf.php
-rw-r–r-- 1 root root 2742 Mar 4 12:48 README.md
-rw-r–r-- 1 root root 2737 Mar 4 12:48 removeme.php
-rw-r–r-- 1 root root 73 Mar 4 12:48 robots.txt
-rw-r–r-- 1 root root 3588 Mar 4 12:48 run_job.php
drwxr-xr-x 11 root root 4096 Mar 4 12:43 service
drwxr-xr-x 2 root root 4096 Mar 4 12:43 soap
-rw-r–r-- 1 root root 4091 Mar 4 12:49 soap.php
-rw-r–r-- 1 root root 5327 Mar 4 12:49 SugarSecurity.php
-rw-r–r-- 1 root root 150 Mar 4 12:49 sugar_version.json
-rw-r–r-- 1 root root 2264 Mar 4 12:49 sugar_version.php
-rw-r–r-- 1 root root 161 Mar 4 12:49 suitecrm_version.php
drwxr-xr-x 5 root root 4096 Mar 4 12:46 themes
-rw-r–r-- 1 root root 5843 Mar 4 12:49 TreeData.php
drwxr-xr-x 2 root root 4096 Mar 4 12:47 upload
-rw-r–r-- 1 root root 2707 Mar 4 12:49 vcal_server.php
-rw-r–r-- 1 root root 2980 Mar 4 12:49 vCard.php
-rw-r–r-- 1 root root 2743 Mar 4 12:49 WebToLeadCapture.php
drwxr-xr-x 2 root root 4096 Mar 4 12:47 XTemplate
drwxr-xr-x 8 root root 4096 Mar 4 12:48 Zend

If you search the forums you will find hundreds of posts guiding users about permissions.

You need to set the permissions correctly for your environment so that the owner of the files and the file permission value is correct to allow the installation to proceed.

Thanks,

Will.

Instead of writing “you’ll find hundreds…” How about a link or two instead? Or better yet, how about actual instructions?

Wading through hundreds of posts doesn’t sound like an enjoyable task. The fact that there are so many posts on subject doesn’t speak well for the install (I get it’s from the Sugar days originally, albeit SuiteCRM needs to “own” SuiteCRM at some point.

Usually, your replies are helpful and show a desire to aid someone who’s frustrated. You didn’t hit the mark this time.

1 Like

Hi

Always give 777 to upload,cache and custom folders

ubuntu command
file permission -chmod 777 -R custom
file chown www-data:www-data -R custom

apart from this all other folders can be 655 for high security or 755 for moderate security.