Magento – Failed to load css and js script after successful installation

installationmagento2

I have got a hard time dealing with the Magento installation. The installation is successful but the page is showing just plain text with all css and javascript failed to load.

I am using subdomain of shop.domain.com to point to a subfolder in my root. My root domain.com is a WordPress project and i want the shop.domain.com using the magento.

After reading through many tutorial online and so much time spent, i still fail to get this resolve. One of the answer from this link – CSS and Javascript files are not loading after Magento 2 installation

step 1. php bin/magento setup:static-content:deploy
step 2. php bin/magento indexer:reindex
step 3. make sure apache "rewrite_module" is enable and then restart the server
step 4. delete cache folder under var/cache

I spoke to my hosting server support, and the shocking reply i got is:
We could not allow you to use the options. Our security policy on shared server wont allow you to do so. So I am suggesting you to upgrade your hosting to cloud VPS or Dedicated server. We are no longer encouraging the magento 2 on shared servers. We will remove the that version from softaculas soon. That version of application require so many functions which we are blocking in shared servers due to security risk.

Do i need a dedicated server to run Magento? Could anyone help on my problem?

FYI, the hosting Server support has helped to remove the following 2 lines in the root .htaccess file. If that 2 lines are not removed, it will cast the error "Internal Server Error" on page load before Magento installation.

#

enable rewrites

Options +FollowSymLinks

## RewriteEngine on

#

Best Answer

Magento2 will not run on YOUR shared host. There are plenty of shared hosting providers out there who let you run those commands and configure your server for magento2 (and have the right php and mysql versions).

Related Topic