Command line user does not have read and write permissions on generated directory. Please address this issue before using Magento command line The 2019 Stack Overflow Developer Survey Results Are InWhen exactly to use php bin/magento setup:upgradeHow to give proper file and directory permission for magento localhostWhite admin login screen on magento 2Magento 2 not working on apache2, php7 and ubuntuMagento 2.1.2 error 500Magento Module creation gives errorCan't install Magento 2 due to permissions issuecommand line user does not have read and write permissions on generated directoryFatal error: Uncaught RuntimeException:Peak cpu and disk every 1 minuteCommand line user does not have read and write permissions on var/generation directoryMagento 2.3: Installation time getting Fatal error

Is this food a bread or a loaf?

Why do UK politicians seemingly ignore opinion polls on Brexit?

How to manage monthly salary

Inflated grade on resume at previous job, might former employer tell new employer?

How can I create a character who can assume the widest possible range of creature sizes?

Access elements in std::string where positon of string is greater than its size

What do hard-Brexiteers want with respect to the Irish border?

Why is my p-value correlated to difference between means in two sample tests?

CiviEvent: Public link for events of a specific type

What is the steepest angle that a canal can be traversable without locks?

Why could you hear an Amstrad CPC working?

Should I use my personal or workplace e-mail when registering to external websites for work purpose?

What is the best strategy for white in this position?

How are circuits which use complex ICs normally simulated?

What is the purpose of the constant in the probability density function

"To split hairs" vs "To be pedantic"

I looked up a future colleague on LinkedIn before I started a job. I told my colleague about it and he seemed surprised. Should I apologize?

Is domain driven design an anti-SQL pattern?

Could JWST stay at L2 "forever"?

aging parents with no investments

How to reverse every other sublist of a list?

Dual Citizen. Exited the US on Italian passport recently

What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?

The difference between dialogue marks



Command line user does not have read and write permissions on generated directory. Please address this issue before using Magento command line



The 2019 Stack Overflow Developer Survey Results Are InWhen exactly to use php bin/magento setup:upgradeHow to give proper file and directory permission for magento localhostWhite admin login screen on magento 2Magento 2 not working on apache2, php7 and ubuntuMagento 2.1.2 error 500Magento Module creation gives errorCan't install Magento 2 due to permissions issuecommand line user does not have read and write permissions on generated directoryFatal error: Uncaught RuntimeException:Peak cpu and disk every 1 minuteCommand line user does not have read and write permissions on var/generation directoryMagento 2.3: Installation time getting Fatal error



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















My Magento site is down and I see




main.CRITICAL: Cannot write to the "/var/www/html/var/debug/db.log"
file. Unable to write "exception":"[object]
(MagentoFrameworkExceptionFileSystemException(code: 0): Cannot
write to the "/var/www/html/var/debug/db.log" file. Unable to write
at
/var/www/html/vendor/magento/framework/Filesystem/File/Write.php:54)"
[]




I tried php bin/magento setup:di:compile but I get




Command line user does not have read and write permissions on
generated directory. Please address this issue before using Magento
command line.




I tried changing the permission of generated directory by sudo chmod 0777 -R generated but still no success. Any advice would be great help.



Update : These are the owners of var/log and generated directory



/var/www/html# ls -la var/log generated
generated:
total 16
drwxrwsrwx 3 ubuntu www-data 4096 Apr 6 06:29 .
drwxr-xr-x 22 ubuntu www-data 4096 Apr 6 08:42 ..
-rwxrwxrwx 1 ubuntu www-data 126 Jan 19 20:01 .htaccess
drwxrwsrwx 2 ubuntu www-data 4096 Apr 6 10:43 code

var/log:
total 436820
drwxrwsr-x 3 ubuntu www-data 4096 Mar 17 05:58 .
drwxrwsr-x 12 ubuntu www-data 4096 Apr 6 07:56 ..
-rw-rw-r-- 1 ubuntu www-data 7180 Feb 2 13:55 4-1549115600.log
-rw-rw-r-- 1 ubuntu www-data 409 Feb 3 11:27 Amasty-inventory-19-02-03.log
-rw-rw-r-- 1 ubuntu www-data 1352583 Apr 3 14:00 cache-warmer.log
-rw-rw-r-- 1 ubuntu www-data 793265 Apr 3 14:45 connector.log
-rw-rw-r-- 1 ubuntu www-data 405626880 Apr 6 10:51 debug.log
-rw-rw-r-- 1 ubuntu www-data 8498179 Apr 6 06:23 exception.log
drwxrwsr-x 2 ubuntu www-data 4096 Feb 24 13:49 firebear
-rw-rw-r-- 1 ubuntu www-data 483328 Apr 6 10:51 magento.cron.log
-rw-rw-r-- 1 ubuntu www-data 36864 Apr 6 10:51 setup.cron.log
-rw-rw-r-- 1 ubuntu www-data 0 Feb 10 13:19 shippingaddress_process.log
-rw-rw-r-- 1 ubuntu www-data 30228480 Apr 6 10:51 system.log
-rw-rw-r-- 1 ubuntu www-data 0 Feb 2 09:39 update.cron.log
-rw-rw-r-- 1 ubuntu www-data 870 Mar 19 10:15 update.log









share|improve this question
























  • you need to give file and floder permission to that magento root floders

    – prabhakaran7
    Apr 6 at 8:52











  • Error is about /var/www/html/var/debug/db.log so You can change permission of this file or apply all permissions from prabhakaran7 answer, this should help also.

    – BartZalas
    Apr 6 at 9:11











  • @BartZalas I have given 777 permission to db.log file but it did not helped

    – Shujaat Shaikh
    Apr 6 at 9:44











  • What user do you use to login to the console? You should use user ubuntu to run magento commands in your case

    – BartZalas
    Apr 6 at 12:38











  • From which user are you trying to execute setup:di:compile command. The issue seems to be with ownership.

    – Raj Mohan R
    2 days ago

















0















My Magento site is down and I see




main.CRITICAL: Cannot write to the "/var/www/html/var/debug/db.log"
file. Unable to write "exception":"[object]
(MagentoFrameworkExceptionFileSystemException(code: 0): Cannot
write to the "/var/www/html/var/debug/db.log" file. Unable to write
at
/var/www/html/vendor/magento/framework/Filesystem/File/Write.php:54)"
[]




I tried php bin/magento setup:di:compile but I get




Command line user does not have read and write permissions on
generated directory. Please address this issue before using Magento
command line.




I tried changing the permission of generated directory by sudo chmod 0777 -R generated but still no success. Any advice would be great help.



Update : These are the owners of var/log and generated directory



/var/www/html# ls -la var/log generated
generated:
total 16
drwxrwsrwx 3 ubuntu www-data 4096 Apr 6 06:29 .
drwxr-xr-x 22 ubuntu www-data 4096 Apr 6 08:42 ..
-rwxrwxrwx 1 ubuntu www-data 126 Jan 19 20:01 .htaccess
drwxrwsrwx 2 ubuntu www-data 4096 Apr 6 10:43 code

var/log:
total 436820
drwxrwsr-x 3 ubuntu www-data 4096 Mar 17 05:58 .
drwxrwsr-x 12 ubuntu www-data 4096 Apr 6 07:56 ..
-rw-rw-r-- 1 ubuntu www-data 7180 Feb 2 13:55 4-1549115600.log
-rw-rw-r-- 1 ubuntu www-data 409 Feb 3 11:27 Amasty-inventory-19-02-03.log
-rw-rw-r-- 1 ubuntu www-data 1352583 Apr 3 14:00 cache-warmer.log
-rw-rw-r-- 1 ubuntu www-data 793265 Apr 3 14:45 connector.log
-rw-rw-r-- 1 ubuntu www-data 405626880 Apr 6 10:51 debug.log
-rw-rw-r-- 1 ubuntu www-data 8498179 Apr 6 06:23 exception.log
drwxrwsr-x 2 ubuntu www-data 4096 Feb 24 13:49 firebear
-rw-rw-r-- 1 ubuntu www-data 483328 Apr 6 10:51 magento.cron.log
-rw-rw-r-- 1 ubuntu www-data 36864 Apr 6 10:51 setup.cron.log
-rw-rw-r-- 1 ubuntu www-data 0 Feb 10 13:19 shippingaddress_process.log
-rw-rw-r-- 1 ubuntu www-data 30228480 Apr 6 10:51 system.log
-rw-rw-r-- 1 ubuntu www-data 0 Feb 2 09:39 update.cron.log
-rw-rw-r-- 1 ubuntu www-data 870 Mar 19 10:15 update.log









share|improve this question
























  • you need to give file and floder permission to that magento root floders

    – prabhakaran7
    Apr 6 at 8:52











  • Error is about /var/www/html/var/debug/db.log so You can change permission of this file or apply all permissions from prabhakaran7 answer, this should help also.

    – BartZalas
    Apr 6 at 9:11











  • @BartZalas I have given 777 permission to db.log file but it did not helped

    – Shujaat Shaikh
    Apr 6 at 9:44











  • What user do you use to login to the console? You should use user ubuntu to run magento commands in your case

    – BartZalas
    Apr 6 at 12:38











  • From which user are you trying to execute setup:di:compile command. The issue seems to be with ownership.

    – Raj Mohan R
    2 days ago













0












0








0








My Magento site is down and I see




main.CRITICAL: Cannot write to the "/var/www/html/var/debug/db.log"
file. Unable to write "exception":"[object]
(MagentoFrameworkExceptionFileSystemException(code: 0): Cannot
write to the "/var/www/html/var/debug/db.log" file. Unable to write
at
/var/www/html/vendor/magento/framework/Filesystem/File/Write.php:54)"
[]




I tried php bin/magento setup:di:compile but I get




Command line user does not have read and write permissions on
generated directory. Please address this issue before using Magento
command line.




I tried changing the permission of generated directory by sudo chmod 0777 -R generated but still no success. Any advice would be great help.



Update : These are the owners of var/log and generated directory



/var/www/html# ls -la var/log generated
generated:
total 16
drwxrwsrwx 3 ubuntu www-data 4096 Apr 6 06:29 .
drwxr-xr-x 22 ubuntu www-data 4096 Apr 6 08:42 ..
-rwxrwxrwx 1 ubuntu www-data 126 Jan 19 20:01 .htaccess
drwxrwsrwx 2 ubuntu www-data 4096 Apr 6 10:43 code

var/log:
total 436820
drwxrwsr-x 3 ubuntu www-data 4096 Mar 17 05:58 .
drwxrwsr-x 12 ubuntu www-data 4096 Apr 6 07:56 ..
-rw-rw-r-- 1 ubuntu www-data 7180 Feb 2 13:55 4-1549115600.log
-rw-rw-r-- 1 ubuntu www-data 409 Feb 3 11:27 Amasty-inventory-19-02-03.log
-rw-rw-r-- 1 ubuntu www-data 1352583 Apr 3 14:00 cache-warmer.log
-rw-rw-r-- 1 ubuntu www-data 793265 Apr 3 14:45 connector.log
-rw-rw-r-- 1 ubuntu www-data 405626880 Apr 6 10:51 debug.log
-rw-rw-r-- 1 ubuntu www-data 8498179 Apr 6 06:23 exception.log
drwxrwsr-x 2 ubuntu www-data 4096 Feb 24 13:49 firebear
-rw-rw-r-- 1 ubuntu www-data 483328 Apr 6 10:51 magento.cron.log
-rw-rw-r-- 1 ubuntu www-data 36864 Apr 6 10:51 setup.cron.log
-rw-rw-r-- 1 ubuntu www-data 0 Feb 10 13:19 shippingaddress_process.log
-rw-rw-r-- 1 ubuntu www-data 30228480 Apr 6 10:51 system.log
-rw-rw-r-- 1 ubuntu www-data 0 Feb 2 09:39 update.cron.log
-rw-rw-r-- 1 ubuntu www-data 870 Mar 19 10:15 update.log









share|improve this question
















My Magento site is down and I see




main.CRITICAL: Cannot write to the "/var/www/html/var/debug/db.log"
file. Unable to write "exception":"[object]
(MagentoFrameworkExceptionFileSystemException(code: 0): Cannot
write to the "/var/www/html/var/debug/db.log" file. Unable to write
at
/var/www/html/vendor/magento/framework/Filesystem/File/Write.php:54)"
[]




I tried php bin/magento setup:di:compile but I get




Command line user does not have read and write permissions on
generated directory. Please address this issue before using Magento
command line.




I tried changing the permission of generated directory by sudo chmod 0777 -R generated but still no success. Any advice would be great help.



Update : These are the owners of var/log and generated directory



/var/www/html# ls -la var/log generated
generated:
total 16
drwxrwsrwx 3 ubuntu www-data 4096 Apr 6 06:29 .
drwxr-xr-x 22 ubuntu www-data 4096 Apr 6 08:42 ..
-rwxrwxrwx 1 ubuntu www-data 126 Jan 19 20:01 .htaccess
drwxrwsrwx 2 ubuntu www-data 4096 Apr 6 10:43 code

var/log:
total 436820
drwxrwsr-x 3 ubuntu www-data 4096 Mar 17 05:58 .
drwxrwsr-x 12 ubuntu www-data 4096 Apr 6 07:56 ..
-rw-rw-r-- 1 ubuntu www-data 7180 Feb 2 13:55 4-1549115600.log
-rw-rw-r-- 1 ubuntu www-data 409 Feb 3 11:27 Amasty-inventory-19-02-03.log
-rw-rw-r-- 1 ubuntu www-data 1352583 Apr 3 14:00 cache-warmer.log
-rw-rw-r-- 1 ubuntu www-data 793265 Apr 3 14:45 connector.log
-rw-rw-r-- 1 ubuntu www-data 405626880 Apr 6 10:51 debug.log
-rw-rw-r-- 1 ubuntu www-data 8498179 Apr 6 06:23 exception.log
drwxrwsr-x 2 ubuntu www-data 4096 Feb 24 13:49 firebear
-rw-rw-r-- 1 ubuntu www-data 483328 Apr 6 10:51 magento.cron.log
-rw-rw-r-- 1 ubuntu www-data 36864 Apr 6 10:51 setup.cron.log
-rw-rw-r-- 1 ubuntu www-data 0 Feb 10 13:19 shippingaddress_process.log
-rw-rw-r-- 1 ubuntu www-data 30228480 Apr 6 10:51 system.log
-rw-rw-r-- 1 ubuntu www-data 0 Feb 2 09:39 update.cron.log
-rw-rw-r-- 1 ubuntu www-data 870 Mar 19 10:15 update.log






magento2 cli file-permissions






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago









Raj Mohan R

4489




4489










asked Apr 6 at 8:39









Shujaat ShaikhShujaat Shaikh

207




207












  • you need to give file and floder permission to that magento root floders

    – prabhakaran7
    Apr 6 at 8:52











  • Error is about /var/www/html/var/debug/db.log so You can change permission of this file or apply all permissions from prabhakaran7 answer, this should help also.

    – BartZalas
    Apr 6 at 9:11











  • @BartZalas I have given 777 permission to db.log file but it did not helped

    – Shujaat Shaikh
    Apr 6 at 9:44











  • What user do you use to login to the console? You should use user ubuntu to run magento commands in your case

    – BartZalas
    Apr 6 at 12:38











  • From which user are you trying to execute setup:di:compile command. The issue seems to be with ownership.

    – Raj Mohan R
    2 days ago

















  • you need to give file and floder permission to that magento root floders

    – prabhakaran7
    Apr 6 at 8:52











  • Error is about /var/www/html/var/debug/db.log so You can change permission of this file or apply all permissions from prabhakaran7 answer, this should help also.

    – BartZalas
    Apr 6 at 9:11











  • @BartZalas I have given 777 permission to db.log file but it did not helped

    – Shujaat Shaikh
    Apr 6 at 9:44











  • What user do you use to login to the console? You should use user ubuntu to run magento commands in your case

    – BartZalas
    Apr 6 at 12:38











  • From which user are you trying to execute setup:di:compile command. The issue seems to be with ownership.

    – Raj Mohan R
    2 days ago
















you need to give file and floder permission to that magento root floders

– prabhakaran7
Apr 6 at 8:52





you need to give file and floder permission to that magento root floders

– prabhakaran7
Apr 6 at 8:52













Error is about /var/www/html/var/debug/db.log so You can change permission of this file or apply all permissions from prabhakaran7 answer, this should help also.

– BartZalas
Apr 6 at 9:11





Error is about /var/www/html/var/debug/db.log so You can change permission of this file or apply all permissions from prabhakaran7 answer, this should help also.

– BartZalas
Apr 6 at 9:11













@BartZalas I have given 777 permission to db.log file but it did not helped

– Shujaat Shaikh
Apr 6 at 9:44





@BartZalas I have given 777 permission to db.log file but it did not helped

– Shujaat Shaikh
Apr 6 at 9:44













What user do you use to login to the console? You should use user ubuntu to run magento commands in your case

– BartZalas
Apr 6 at 12:38





What user do you use to login to the console? You should use user ubuntu to run magento commands in your case

– BartZalas
Apr 6 at 12:38













From which user are you trying to execute setup:di:compile command. The issue seems to be with ownership.

– Raj Mohan R
2 days ago





From which user are you trying to execute setup:di:compile command. The issue seems to be with ownership.

– Raj Mohan R
2 days ago










2 Answers
2






active

oldest

votes


















0














I recommended to try this answer



https://magento.stackexchange.com/a/251718/73525



i hope this will helpful.






share|improve this answer























  • no this is not helping

    – Shujaat Shaikh
    Apr 6 at 9:08











  • tried all the commands, still no success

    – Shujaat Shaikh
    Apr 6 at 9:41











  • which os your using

    – prabhakaran7
    Apr 6 at 9:42












  • using windows and my magento is hosted on linux ubuntu

    – Shujaat Shaikh
    Apr 6 at 10:14


















0














Directories in the Magento file system must be writable by the web server user and the Magento file system owner



If you have command-line access, enter the following command assuming Magento is installed in




/var/www/html/magento_folder




cd /var/www/html/magento_folder && find var vendor pub/static pub/media app/etc -type f -exec chmod g+w + && find var vendor pub/static pub/media app/etc -type d -exec chmod g+w + && chmod u+x bin/magento


If you do not have command-line access, use an FTP client or a file manager application provided by your hosting provider to set permissions.



Note: Usually this error means that your directory which Magento trying to use has an inappropriate owner. You can check it easily using:



 ls -la var/log generation





share|improve this answer

























  • I had already seen this answer somewhere and this did not help. anyways thanks

    – Shujaat Shaikh
    Apr 6 at 9:41











  • Please check the owner for var/log folder and generation

    – ARUNPRABAKARAN M
    Apr 6 at 9:55












  • owners for all directories are ubuntu

    – Shujaat Shaikh
    Apr 6 at 10:13











  • please see the update on my question for directory owners. is there something wrong ?

    – Shujaat Shaikh
    Apr 6 at 10:55











  • Are you tried this magento.stackexchange.com/a/182804/60921

    – ARUNPRABAKARAN M
    Apr 6 at 11:06











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f269003%2fcommand-line-user-does-not-have-read-and-write-permissions-on-generated-director%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














I recommended to try this answer



https://magento.stackexchange.com/a/251718/73525



i hope this will helpful.






share|improve this answer























  • no this is not helping

    – Shujaat Shaikh
    Apr 6 at 9:08











  • tried all the commands, still no success

    – Shujaat Shaikh
    Apr 6 at 9:41











  • which os your using

    – prabhakaran7
    Apr 6 at 9:42












  • using windows and my magento is hosted on linux ubuntu

    – Shujaat Shaikh
    Apr 6 at 10:14















0














I recommended to try this answer



https://magento.stackexchange.com/a/251718/73525



i hope this will helpful.






share|improve this answer























  • no this is not helping

    – Shujaat Shaikh
    Apr 6 at 9:08











  • tried all the commands, still no success

    – Shujaat Shaikh
    Apr 6 at 9:41











  • which os your using

    – prabhakaran7
    Apr 6 at 9:42












  • using windows and my magento is hosted on linux ubuntu

    – Shujaat Shaikh
    Apr 6 at 10:14













0












0








0







I recommended to try this answer



https://magento.stackexchange.com/a/251718/73525



i hope this will helpful.






share|improve this answer













I recommended to try this answer



https://magento.stackexchange.com/a/251718/73525



i hope this will helpful.







share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 6 at 8:57









prabhakaran7prabhakaran7

30910




30910












  • no this is not helping

    – Shujaat Shaikh
    Apr 6 at 9:08











  • tried all the commands, still no success

    – Shujaat Shaikh
    Apr 6 at 9:41











  • which os your using

    – prabhakaran7
    Apr 6 at 9:42












  • using windows and my magento is hosted on linux ubuntu

    – Shujaat Shaikh
    Apr 6 at 10:14

















  • no this is not helping

    – Shujaat Shaikh
    Apr 6 at 9:08











  • tried all the commands, still no success

    – Shujaat Shaikh
    Apr 6 at 9:41











  • which os your using

    – prabhakaran7
    Apr 6 at 9:42












  • using windows and my magento is hosted on linux ubuntu

    – Shujaat Shaikh
    Apr 6 at 10:14
















no this is not helping

– Shujaat Shaikh
Apr 6 at 9:08





no this is not helping

– Shujaat Shaikh
Apr 6 at 9:08













tried all the commands, still no success

– Shujaat Shaikh
Apr 6 at 9:41





tried all the commands, still no success

– Shujaat Shaikh
Apr 6 at 9:41













which os your using

– prabhakaran7
Apr 6 at 9:42






which os your using

– prabhakaran7
Apr 6 at 9:42














using windows and my magento is hosted on linux ubuntu

– Shujaat Shaikh
Apr 6 at 10:14





using windows and my magento is hosted on linux ubuntu

– Shujaat Shaikh
Apr 6 at 10:14













0














Directories in the Magento file system must be writable by the web server user and the Magento file system owner



If you have command-line access, enter the following command assuming Magento is installed in




/var/www/html/magento_folder




cd /var/www/html/magento_folder && find var vendor pub/static pub/media app/etc -type f -exec chmod g+w + && find var vendor pub/static pub/media app/etc -type d -exec chmod g+w + && chmod u+x bin/magento


If you do not have command-line access, use an FTP client or a file manager application provided by your hosting provider to set permissions.



Note: Usually this error means that your directory which Magento trying to use has an inappropriate owner. You can check it easily using:



 ls -la var/log generation





share|improve this answer

























  • I had already seen this answer somewhere and this did not help. anyways thanks

    – Shujaat Shaikh
    Apr 6 at 9:41











  • Please check the owner for var/log folder and generation

    – ARUNPRABAKARAN M
    Apr 6 at 9:55












  • owners for all directories are ubuntu

    – Shujaat Shaikh
    Apr 6 at 10:13











  • please see the update on my question for directory owners. is there something wrong ?

    – Shujaat Shaikh
    Apr 6 at 10:55











  • Are you tried this magento.stackexchange.com/a/182804/60921

    – ARUNPRABAKARAN M
    Apr 6 at 11:06















0














Directories in the Magento file system must be writable by the web server user and the Magento file system owner



If you have command-line access, enter the following command assuming Magento is installed in




/var/www/html/magento_folder




cd /var/www/html/magento_folder && find var vendor pub/static pub/media app/etc -type f -exec chmod g+w + && find var vendor pub/static pub/media app/etc -type d -exec chmod g+w + && chmod u+x bin/magento


If you do not have command-line access, use an FTP client or a file manager application provided by your hosting provider to set permissions.



Note: Usually this error means that your directory which Magento trying to use has an inappropriate owner. You can check it easily using:



 ls -la var/log generation





share|improve this answer

























  • I had already seen this answer somewhere and this did not help. anyways thanks

    – Shujaat Shaikh
    Apr 6 at 9:41











  • Please check the owner for var/log folder and generation

    – ARUNPRABAKARAN M
    Apr 6 at 9:55












  • owners for all directories are ubuntu

    – Shujaat Shaikh
    Apr 6 at 10:13











  • please see the update on my question for directory owners. is there something wrong ?

    – Shujaat Shaikh
    Apr 6 at 10:55











  • Are you tried this magento.stackexchange.com/a/182804/60921

    – ARUNPRABAKARAN M
    Apr 6 at 11:06













0












0








0







Directories in the Magento file system must be writable by the web server user and the Magento file system owner



If you have command-line access, enter the following command assuming Magento is installed in




/var/www/html/magento_folder




cd /var/www/html/magento_folder && find var vendor pub/static pub/media app/etc -type f -exec chmod g+w + && find var vendor pub/static pub/media app/etc -type d -exec chmod g+w + && chmod u+x bin/magento


If you do not have command-line access, use an FTP client or a file manager application provided by your hosting provider to set permissions.



Note: Usually this error means that your directory which Magento trying to use has an inappropriate owner. You can check it easily using:



 ls -la var/log generation





share|improve this answer















Directories in the Magento file system must be writable by the web server user and the Magento file system owner



If you have command-line access, enter the following command assuming Magento is installed in




/var/www/html/magento_folder




cd /var/www/html/magento_folder && find var vendor pub/static pub/media app/etc -type f -exec chmod g+w + && find var vendor pub/static pub/media app/etc -type d -exec chmod g+w + && chmod u+x bin/magento


If you do not have command-line access, use an FTP client or a file manager application provided by your hosting provider to set permissions.



Note: Usually this error means that your directory which Magento trying to use has an inappropriate owner. You can check it easily using:



 ls -la var/log generation






share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 6 at 10:38

























answered Apr 6 at 9:17









ARUNPRABAKARAN MARUNPRABAKARAN M

409113




409113












  • I had already seen this answer somewhere and this did not help. anyways thanks

    – Shujaat Shaikh
    Apr 6 at 9:41











  • Please check the owner for var/log folder and generation

    – ARUNPRABAKARAN M
    Apr 6 at 9:55












  • owners for all directories are ubuntu

    – Shujaat Shaikh
    Apr 6 at 10:13











  • please see the update on my question for directory owners. is there something wrong ?

    – Shujaat Shaikh
    Apr 6 at 10:55











  • Are you tried this magento.stackexchange.com/a/182804/60921

    – ARUNPRABAKARAN M
    Apr 6 at 11:06

















  • I had already seen this answer somewhere and this did not help. anyways thanks

    – Shujaat Shaikh
    Apr 6 at 9:41











  • Please check the owner for var/log folder and generation

    – ARUNPRABAKARAN M
    Apr 6 at 9:55












  • owners for all directories are ubuntu

    – Shujaat Shaikh
    Apr 6 at 10:13











  • please see the update on my question for directory owners. is there something wrong ?

    – Shujaat Shaikh
    Apr 6 at 10:55











  • Are you tried this magento.stackexchange.com/a/182804/60921

    – ARUNPRABAKARAN M
    Apr 6 at 11:06
















I had already seen this answer somewhere and this did not help. anyways thanks

– Shujaat Shaikh
Apr 6 at 9:41





I had already seen this answer somewhere and this did not help. anyways thanks

– Shujaat Shaikh
Apr 6 at 9:41













Please check the owner for var/log folder and generation

– ARUNPRABAKARAN M
Apr 6 at 9:55






Please check the owner for var/log folder and generation

– ARUNPRABAKARAN M
Apr 6 at 9:55














owners for all directories are ubuntu

– Shujaat Shaikh
Apr 6 at 10:13





owners for all directories are ubuntu

– Shujaat Shaikh
Apr 6 at 10:13













please see the update on my question for directory owners. is there something wrong ?

– Shujaat Shaikh
Apr 6 at 10:55





please see the update on my question for directory owners. is there something wrong ?

– Shujaat Shaikh
Apr 6 at 10:55













Are you tried this magento.stackexchange.com/a/182804/60921

– ARUNPRABAKARAN M
Apr 6 at 11:06





Are you tried this magento.stackexchange.com/a/182804/60921

– ARUNPRABAKARAN M
Apr 6 at 11:06

















draft saved

draft discarded
















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f269003%2fcommand-line-user-does-not-have-read-and-write-permissions-on-generated-director%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Sum ergo cogito? 1 nng

419 nièngy_Soadمي 19bal1.5o_g

Queiggey Chernihivv 9NnOo i Zw X QqKk LpB