Hello dear community,
I'm already trying to setup magento completely for 1 week now.
I have never thought that I would have such trouble with it ...
Actually I'm facing the problem that the backend is missing some javascript files (Error 404).
Due to the missing js files, I can't use the backend properly.
I'm running Magento 2 on a GoDaddy VPS with Apache 2.4 Server.
This is what I already tried:
- Manually flushed cache and static content
- Deployed Static Content
- Changed symlinks to copy (app/etc)
- Changed permissions to 644/755 (following the steps in installation-documentationdid NOT work for me)
- Changed permissions in DriverController to 644/755
- Tried several options in htaccess for static folder (e.g. Options -MultiView..)
The /pub/static folder does NOT contain the files after running the deploy-static command. I'm not sure how to get the files in the pub/static folder.
The Frontend is running fine at the moment. (At the beginning I had a similiar problem with missing js/css/img files on Frontend, 'DriverController permission replace' fixed that)
Unfortunately I wasn't able to find any information about how to solve my problem using Google.
Hopefully you can help me. Thanks in advance!
Hello @gccv_cbv ,
Run below command via terminal to deploy static content
php bin/magento cache:clean php bin/magento cache:flush php bin/magento setup:upgrade 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
To give permission, Please run below command in magento root directory
find . -type f -exec chmod 644 {} \; find . -type d -exec chmod 755 {} \; find ./var -type d -exec chmod 777 {} \; find ./generated -type d -exec chmod 777 {} \; find ./pub/media -type d -exec chmod 777 {} \; find ./pub/static -type d -exec chmod 777 {} \; chmod 777 ./app/etc chmod 644 ./app/etc/*.xml
If you still get an issue then check user and group of file system.
--
If my answer is useful, please Accept as Solution & give Kudos