New to Magento, so go easy
I recently installed Magento 2 via the Installatron script in cPanel on my server.
The install went smoothly with no errors, although when I visit the front and backends, there is no styling.
Any suggestions as to where to start?
Thanks in Advance.
Solved! Go to Solution.
You should adjust the filesystem permissions and maybe the webserver rewrites: https://mage2.pro/t/259
Looks like it was clashing with an install of wordpress in a sub directory. Not sure why, but all good for now. Thanks
If you are facing problem of css and js page load design after installation in magento2
please follow the following step-:
open the terminal and navigate to magento web root
$ cd /var/www/html/magento2
$ php bin/magento setup:static-content:deploy
$ php bin/magento indexer:reindex
make sure apache “rewrite_module” is enable and then restart the server
$ chown -R www-data:www-data /var/www/html/magento2
$ chmod -R 777 /var/www/html/magento2
delete cache folder under var/cache
The above step working. I hope this will work for you also.
Let me know if any issue.
Magento2 have this initial issue, but follow below steps for getting its work !
Step 1 : Run CMD
Step 2 : Goto Magento installation directory using
CD wamp/www/[Magento dir.]
Step 3 : Run
php bin/magento setup:static-content:deploy
Step 4 : Run
php bin/magento indexer:reindex
Step 5 : Delete Cache from
var/cache/[delete all dir.]
It's getting work for Front-end & Back-end !
This video helped.
Find <Directory /var/www/>
Replace rules inside with below rules.
Options Indexes FollowSymLinks
Require all granted
If you redeployed it after deleting the pub/static directory you would have deleted the .htaccess file in pub/static directory. That causes the URL Rewrite issue. Put the .htaccess with urlrewrite option in the pub/static directory , will resolve the problem.