I've just installed Magento 2 Community Edition with sample data (downloaded from their website and not installed with composer) locally via MAMP. The installation process was succesful, but all files in the pub/static folder are missing except .htaccess. That means all css, js etc. return 404 for both frontend and backend.
I've spent several hours trying to fix this without luck. This is what I've done so far:
Options Indexes FollowSymLinks AllowOverridefrom 'None' to 'All' in the /MAMP/conf/apache/httpd.conf and restarted MAMP
- Made sure
LoadModule rewrite_module modules/mod_rewrite.sois uncommented in httpd.conf
- Set up a development domain (magento.dev) in MAMP
- Tried running
php bin/magento setup:static-content:deployin the magento.dev root using Terminal. This however returns:
Fatal error: Class 'Locale' not found in /Applications/MAMP/htdocs/magento.dev/vendor/magento/framework/Locale/Bundle/DataBundle.php on line 64
- Uncommented and changed RewriteBase to
RewriteBase /in the .htaccess-file in the magento.dev root directory.
- Set Magento in development mode
- Clearing the cache manually and running
php bin/magento setup:static-content:deployagain
Most guides and forum posts tell me to run:
php bin/magento setup:static-content:deploy but I'm not sure, if I'm doing it correctly.
OS: OSX 10.11.2
MAMP version: 3.5
PHP version: 7.0
Apache version: 2.4.16
MySQL version: 5.6.25
Any help would be appreciated.