Magento – “Failed to mkdir” Error

Many  times  while installing a theme  or application  from “Magento Connect Manager”  you may  encounter the error :

ERROR: failed to mkdir

To fix the issue follow the below steps :

[email protected][#] cd /home/username/public_html/downloader
 [email protected][#] vi config.ini

It will show :

preferred_state=stable
 use_custom_permissions_mode=1
 mkdir_mode=0777
 chmod_file_mode=0777
 chmod_file_mode_executable=0777
 tmp_dir=../var/tmp

Now change make the below changes

preferred_state=stable
 use_custom_permissions_mode=0
 mkdir_mode=0777
 chmod_file_mode=0777
 chmod_file_mode_executable=0777
 tmp_dir=../var/tmp

That’s all you are done.