Dev-87 install error #620

Closed
akacemy opened this Issue Jul 22, 2014 · 11 comments

7 participants

@akacemy

Hello,

the last commit magento 2.0.0 dev 87 does not inlcude installation files under pub/static. can not install it.

thank you.

@alankent

As a quick workaround, if you run "php -f dev/tools/Magento/Tools/View/deploy.php" it will generate pub/static. I am not sure this is the "right" answer, but hopefully it will get you going until the right answer comes along ;-). Ignore any error messages that come up.

@akacemy

Thank you.
it did the job. i'm just new to magento, do you know any good documentation to start understanding and developing magento.

@buskamuza

Hi, @akacemy
there could be several possible issues with your environment that prevent static view files from being processed correctly:
1. if you use Nginx. See #586 in this case, last comment form @mage2-team provides link to Nginx configuration
2. Apache's mod_rewrite is disabled. Please enable it, it's required for Magento 2 application now
3. Your .htaccess files are not allowed by Apache configuration. Check AllowOverride directive in httpd.conf for your web-site directory.

@buskamuza

About rendered files. Yes, it's more a workaround :) It still can work for you, if you don't need to change static view files (e.g., you're a not a front-end developer).

@verklov verklov added the major-check label Aug 5, 2014
@verklov

@akacemy, we are glad that the issue was resolved using the workaround. Did you encounter it again while installing newer versions of code? If yes, did you follow the recommendations by @buskamuza? Please let us know so that we could assist you further if needed or close this issue if it is resolved for you.

@verklov verklov self-assigned this Aug 5, 2014
@jamieshiz

I came across the same issue and did check mod_rewrite and .htaccess. ( I am using apache though) The files seem to not exist.

@alankent - that tip worked amazing! thank you

@buskamuza

@jamieshiz , files should not exist from start. In "default" mode the files will appear as they're requested. In "developer" mode files are never published to pub/static folder, instead they're read by PHP from original files (in modules, themes) and the content is returned.
If this doesn't work, either there is an issue with redirect to static entry point (pub/static.php) by mod_rewrite or there is an issue in the entry point itself (you can check it by removing pub/static contents before and requesting any js/css resource in "developer" mode - either requested resource should appear or an error).

@gfxguru

What? and why does Magento2 require mod_rewrite to install. I see why I'm unable to install in IIS/FastCGI now.

+1 to removing the mod_rewrite module requirement.

@philwinkle

@gfxguru you can run it without Apache / mod_rewrite if you use the builtin webserver in php 5.4+; use the bootstrap file on my repo and see the section about Magento 2 dev mode: https://github.com/philwinkle/Magento-PHP-Webserver-Router

@buskamuza

@gfxguru, see #626 , it contains recommendations for IIS.

@verklov

Closing this issue as the solution was provided in the thread.

@verklov verklov closed this Sep 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment