This is on Windows, so the usual advice regarding chmod etc doesn't apply. By "fail" I mean I get no css styling and 404's with almost every link.

Here is what I did to try, does anyone have any suggestions please?

  1. Set up an Apache URL in XAMPP (7.0.8) - I used http://localhost/www.example.com with this httpd.conf entry
    Alias /www.example.com "E:\www\magento\www.example.com"

    <Directory "E:\www\magento\www.example.com">
      Options Indexes FollowSymLinks ExecCGI Includes
      AllowOverride All
      Order allow,deny
      Allow from all
      RewriteEngine On

(Added a file showing phpinfo() there to prove basic serving & php works and confirm apaches mod_rewrite is enabled.)

  1. In MySql, "create database magento_example;"
  2. From https://www.magentocommerce.com/download, Download Community Edition 2.1.1 zip
  3. Unzip to E:\www\magento\www.example.com
  4. Before commencing, edit app\etc\di.xml so the "view_preprocessed" value is changed from "Symlink" to "Copy"
<item name="view_preprocessed" xsi:type="object">Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink</item>
<item name="view_preprocessed" xsi:type="object">Magento\Framework\App\View\Asset\MaterializationStrategy\Copy</item>
  1. Visit http://localhost/www.example.com/setup & begin - ensure readiness check passes 100%
  2. Complete the database setup appropriately
  3. Note the generated admin URL
  4. Customise the locale if required
  5. Create admin acc & proceed. Observe "success" message when done.
  6. Click launch Magento Admin. Observe 404.
  7. Visit http://localhost/www.example.com. Observe unstyled page. Click "Sign in". Observe 404. Click "Privacy Policy." Observe 404.
  8. View source. Click link for a sample CSS - e.g. calendar.css. Observe 404.
  9. Note: Situation currently identical to https://community.magento.com/t5/Just-Ask-Alan/Magento-2-front-amp-backend-returning-404-error-after/m-p/39961#M454
  10. Delete all files in var/cache, pub/static (except .htaccess)
  11. In root of site, "php bin/magento setup:static-content:deploy"
  12. Using Chrome, Switch Person | Browse as Guest to eliminate browser cache/cookie problems
  13. Observe many files copied, yet after completion still same as (12)
  14. Check /var/log - observe only 2 files, debug.log and install.log, both of which are full but don't provide anything useful.

Your Answer

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

Browse other questions tagged or ask your own question.