Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev-87 install error #620

Closed
abdel1220 opened this issue Jul 22, 2014 · 11 comments
Closed

Dev-87 install error #620

abdel1220 opened this issue Jul 22, 2014 · 11 comments
Assignees

Comments

@abdel1220
Copy link

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
Copy link

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.

@abdel1220
Copy link
Author

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
Copy link
Contributor

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 Can not install 2.0.0.0-dev81 #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
Copy link
Contributor

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
Copy link
Contributor

verklov commented Aug 5, 2014

@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
Copy link

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
Copy link
Contributor

@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
Copy link

gfxguru commented Aug 22, 2014

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
Copy link
Contributor

@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
Copy link
Contributor

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

@verklov
Copy link
Contributor

verklov commented Sep 4, 2014

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

@verklov verklov closed this as completed Sep 4, 2014
magento-team pushed a commit that referenced this issue Oct 21, 2015
okorshenko pushed a commit that referenced this issue May 17, 2016
[SUPPORT] MDVA-254: Magento 2.0.6 Publication
mmansoor-magento pushed a commit that referenced this issue Nov 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants