Facing the following error in my 'magento localhost'. Tried creating a 'tmp' folder in the 'root directory' but is not working. Maybe I'm creating it in the wrong directory? Thanks
1 Answer 1
Chance that this is a permissions issue? Was going to leave a comment, but don't have high enough reputation. Magento's var directory is normally right inside the magento root, so where you created your temp folder should have been fine. Did you name it just 'var' or 'var_dir'?
- 
 Hello Codestr, 'var' folder was already created automatically. I just created 'var_dir' folder and 'tmp' folder as well. still not working. I created all folders in: '../XAMPP/xamppfiles/htdocs/(magento)/ Is that correct? ThanksSashin Pradhan– Sashin Pradhan2017年09月21日 17:03:52 +00:00Commented Sep 21, 2017 at 17:03
- 
 That would be the right location, I believe, but if the var directory already exists, I don't think adding another will help. Is that folder writeable by the webserver user? Aside from permissions I'm not sure what else would be the cause, I'm much more familiar with v2 than I am with v1.codestr– codestr2017年09月21日 19:12:47 +00:00Commented Sep 21, 2017 at 19:12
- 
 How would I give permission to make the folder writable?Sashin Pradhan– Sashin Pradhan2017年09月21日 23:45:39 +00:00Commented Sep 21, 2017 at 23:45
- 
 Use chmod and chown commands. To make sure the webserver can write to the location it will be something likechown -R your-user:web-server /your/magento/root/*, replacing the user names with your user and web server users respectively, and then the top answer here > magento.stackexchange.com/questions/91870/… will tell you how to set file permissionscodestr– codestr2017年09月22日 11:51:00 +00:00Commented Sep 22, 2017 at 11:51