magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Dev-87 install error

Open abdel1220 opened this issue 12 years ago • 11 comments

Hello,

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

thank you.

abdel1220 avatar Jul 22 '14 23:07 abdel1220

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.

alankent avatar Jul 23 '14 00:07 alankent

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

abdel1220 avatar Jul 23 '14 12:07 abdel1220

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 avatar Jul 23 '14 14:07 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).

buskamuza avatar Jul 23 '14 14:07 buskamuza

@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 avatar Aug 05 '14 08:08 verklov

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

jamieshiz avatar Aug 22 '14 14:08 jamieshiz

@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).

buskamuza avatar Aug 22 '14 14:08 buskamuza

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.

gfxguru avatar Aug 22 '14 15:08 gfxguru

@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

philwinkle avatar Aug 22 '14 15:08 philwinkle

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

buskamuza avatar Aug 22 '14 15:08 buskamuza

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

verklov avatar Sep 04 '14 17:09 verklov