every time I run this command
php bin/magento setup:upgrade
I get this error
image error 1 click here
and I use some commands, to fix it
rm -rf pub/static/frontend/* pub/static/adminhtml/* var/cache/ var/generation/ var/page_cache/ var/view_preprocessed/ var/composer_home generated/ php -dmemory_limit=6G bin/magento setup:static-content:deploy -f chmod -Rf 777 pub/ var/ php bin/magento cache:clean
but then the second error shows up
image error 2 click here
and fix it with this commands
chcon -R -t httpd_sys_rw_content_t /var/www/html/ chmod -R a+w /var/www/html/
So, I do that every time I run
php bin/magento setup:upgrade
and every time I install theme or extension. after that the site work just fine, but that takes all my time.
I'm using Magento 2 CE 2.3
Hi @Snokerx17ga53f,
You can try this following command and check again.
chmod -R 777 var pub generated
Let me know if you need further assistance.
Hope it helps!
_____________
If issue solved, Click Kudos & Accept as Solution.
ReflectionException: Class Magento\Framework\Session\Config\ConfigInterface\Proxy does not exist in /var/www/html/vendor/magento/framework/Code/Reader/ClassReader.php:2
:/ i got this error,
for fixing this issue run below commands
php bin/magento setup:di:compile
after that run command
chmod -R 777 var generated
If my answer is useful, click Kudos and Accept as Answer