0

enter image description here

My using Ubuntu 18 and apache2

I downloaded magento2 zip file and extract

uploaded to my /var/www/html/

but always shows the above image

I already setup

htaccess file

Already tried comments:

php bin/magento setup:static-condent:deploy -f

cleared cache and still not working home page also

How i can solve Unable to load CSS and JS

0

Give the full permission of pub and var folder.

  • I already use comment sudo chmod -R 777 var/www/html/myproject but not working – prabhakaran7 Nov 30 '18 at 4:04
  • Check the path of your CSS and js file. Or Also check you're in database based URL end with "/". – Sweety Masmiya Nov 30 '18 at 9:59
  • which table i can check the css and js file path – prabhakaran7 Nov 30 '18 at 10:07
  • core_config_data table check web/unsecure/base_url and web/secure/base_url. – Sweety Masmiya Nov 30 '18 at 10:09
  • core_config_data table i set two rows localhost/myproject/index.php/ and localhost/myproject/index.php/ already has this – prabhakaran7 Nov 30 '18 at 10:11
0

setting icons

1 : need to give full permissions to public_html {chmod 777 -R .}

2 : static content deploy comnd {php bin/magento s:s:d -f}

3 : need to make extension of apache a2enmod rewriteable using {sudo a2enmod rewrite}

4 : now give www permission to all by using {sudo nano /etc/apache2/apache2.conf}

5 : now restart apache {sudo service apache2 restart}

  • is this helpful? – Asad Ullah Nov 29 '18 at 17:06
  • (4) how to give www permission to etc/apache2/apache2.conf – prabhakaran7 Nov 30 '18 at 4:14
  • i tried not working....... any other way – prabhakaran7 Nov 30 '18 at 10:08
  • 1 : static content deploy comnd {php bin/magento s:s:d -f} 2:upgrade { php bin/magento setup:upgrade} 2: clean cache { php bin/magento cache:clean} 3: now restart apache {sudo service apache2 restart} try this one – Asad Ullah Nov 30 '18 at 16:48
  • 4 : now give www permission to all by using {sudo nano /etc/apache2/apache2.conf} you can run this command any where this for giving permision for user and groups but normally is it already done by system – Asad Ullah Nov 30 '18 at 16:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.