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

Installation -> Magento Setup Tool display blank page - setup/controls not found. #706

Closed
price2b opened this issue Oct 25, 2014 · 20 comments

Comments

@price2b
Copy link

price2b commented Oct 25, 2014

1- step 1-> magento2 download from https://github.com/magento/magento2 version 0.1.0-alpha101all
step 2-> install composer globally using composer windows installer.
step 3-> run composer install in magento2/setup directory using CMD and everything is installed perfect.
then, I went to localhost/magento2/ .. the browser is redirected to a new url localhost/magento2/setup/ with title "Magento Setup Tool" but a blank page is displayed. No install steps are displayed in my browser. I tried that with firefox and chrome with same results.

its a common situation?, anyone knows if we have to erase some file after we run composer install into setup directory?

server error.log: [Sat Oct 25 16:19:07 2014] [error] [client 127.0.0.1] File does not exist: C:/Zend/Apache2/htdocs/magento2/setup/controls, referer: localhost/magento2/setup/

any help appreciated.

@alankent
Copy link

At the moment, yes. The new web installer is not finished yet. Only the command line install is guaranteed to work right now. In case useful, https://github.com/alankent/docker-magento2-demo-apache has a Docker image that works. Skim through the Dockerfile and the contents of the 'scripts' directory and you can see how I put it together. (Last tested with alpha100.)

@buskamuza
Copy link
Contributor

Hi @SebastianHerrera , I just tried v.101 and I don't have this issue (while I see some timeout between menu displayed and starting page displayed).
Could you describe environment you use? Browser, web server, version of PHP?
Are you redirected to localhost/magento2/setup/#/landing or staying on localhost/magento2/setup/ ?

UPD: I checked it in Chrome, on Windows, web server Apache 2.2

@price2b
Copy link
Author

price2b commented Oct 26, 2014

Hi buskamuza , Im using zendserver with php5.4 in windows. I installed magento2 using composer. Im only redirected to localhost/magento2/setup/. I run the installation using chrome and then firefox. I will try again

@price2b
Copy link
Author

price2b commented Oct 26, 2014

Thank you Alan, I will try your your github repository.brgds!

@price2b
Copy link
Author

price2b commented Oct 27, 2014

@alankent " Only the command line install is guaranteed to work right now." <- this means using composer with command line or another procedure? thank you!

@alankent
Copy link

Composer is used to download the source code, not create the database, create the local.xml file etc. If you have a look in https://github.com/alankent/docker-magento2-demo-apache/blob/master/scripts/install-magento2 you will see it runs composer, runs some scripts intended for production mode (see deploy.php and compile.php). It also runs 'composer' in the 'setup' subdirectory. The next phase can be found in https://github.com/alankent/docker-magento2-demo-apache/blob/master/scripts/runserver which creates a fresh database instance then runs the setup script (currently a part of index.php) which creates the database and sets up the local.xml file.

This is going to change and be cleaned up more before final release, but this is what I do today and it all seems to work.

@price2b
Copy link
Author

price2b commented Oct 27, 2014

@alankent thank you so much! i will read all the info.

@abdel1220
Copy link

Hello,
this steps are for windows command. how can we use it on mac?
can anyone provide us sample database and config.xml file.
thanks

@price2b
Copy link
Author

price2b commented Oct 28, 2014

@akacemy would be great to have a sample database and config.xml file. i tried with two different computers but with no success. in the current installer both computers say setup/controls is not available. i cannot find the sql file inside the app to run using sqldatabase manager. i tried docker but it was not easy for me.

@alankent
Copy link

Regarding "sample database", the setup process creates the database tables for you - there is no need for a "sample database".

Officially... A better installation README prepared by the tech writers is undergoing review internally. That should be available soon. I think only Linux is officially supported, so no official support for Windows and Mac.

Unofficially... The Dockerfile I referenced earlier is based on Ubuntu Linux, but lots of developers internally use Macs so I would be shocked if the commands do not work on a Mac as well. Regarding Windows, I have a Windows laptop - I will give it a go myself and report back on how I go (keeping a copy of what I did). Stay tuned!

But please be aware, we are sharing the Magento 2 code base to let people see what is coming and provide feedback. There should be an expectation that things will be a bit rough around the edges until we get things better sorted.

@alankent
Copy link

Just FYI, I had a problem with the install script due to having a space in the path to where PHP is installed. Once I removed the space, the following commands went a long way before I got an error about a missing preview media file for the blank theme.

Fatal error: Uncaught exception 'Exception' with message 'File 'C:/Users/akent/git/magento2/app/design/frontend/Magento/blank/media/preview.jpg' does not exists.' in C:\Users\akent\git\magento2\lib\internal\Magento\Framework\Module\Setup.php on line 484

Exception: File 'C:/Users/akent/git/magento2/app/design/frontend/Magento/blank/media/preview.jpg' does not exists. in C:\Users\akent\git\magento2\lib\internal\Magento\Framework\Image.php on line 54

The commands I ran (copied from LInux) were:

composer update

del /s /q var\*
php -f dev\tools\Magento\Tools\View\deploy.php
php -f dev\tools\Magento\Tools\Di\compiler.php

cd setup
composer update

php -f index.php install --cleanup_database --db_host=localhost --db_name=magento2 --db_user="admin" --db_pass="admin123" --backend_frontname=admin --base_url=http://127.0.0.1/ --language=en_US --timezone=America/Los_Angeles --currency=USD --admin_lastname=Smith --admin_firstname=John --admin_email=john.smith@example.com --admin_username=admin --admin_password=admin123 --use_secure=0

@price2b
Copy link
Author

price2b commented Oct 28, 2014

@alankent thank you alan, in my case all the problem seems to live in htdocs/magento2/setup/controls. for some reason magento2 installer is not creating a menu or something similar. I checked the code, it seems that it must create a template view in the following code:

public function __construct(
    ViewModel $view,
    Navigation $navigation
) {
    $this->view = $view;
    $this->view->setTemplate('/magento/setup/controls/menu.phtml');

    $this->navigation = $navigation;
}

but nothing is created in that folder..

@alankent
Copy link

The web interface is currently broken and not a priority to fix. We are getting command line done first. That error looks like from a web browser access? If command line, could you give me the command line commands you issued and I will try to repeat. Thanks!

@price2b
Copy link
Author

price2b commented Oct 28, 2014

I followed these steps:
1- download magento from github.
2- place all files into htdocs/magento2
3- comparing your composer.json file Im using the default one->
{
"name": "magento/project-setup",
"version": "0.1.0",
"require": {
"zendframework/zendframework": "2.3.1",
"composer/composer": "1.0.0-alpha8"
},
"require-dev": {
"phpunit/phpunit": "4.1.",
"squizlabs/php_codesniffer": "1.
",
"phpmd/phpmd" : "1.4.*"
},
"autoload": {
"psr-0":{
"Zend_": "../lib/internal/"
},
"psr-4": {
"Magento\Composer": "module/Magento/Composer/src/",
"Magento\Filesystem": "module/Magento/Filesystem/src/",
"Magento\Locale": "module/Magento/Locale/src/",
"Magento\Setup": "module/Magento/Setup/src/",
"Magento\Config": "module/Magento/Config/src/",
"Magento": ["../app/code/Magento/", "../lib/internal/Magento/"]
}
},
"autoload-dev": {
"psr-4": {
"Magento\Setup\Tests": "module/Magento/Setup/tests/",
"Magento\Config\Tests": "module/Magento/Config/tests/"
}
}
}

I saw your file is more like this style: http://alankent.wordpress.com/2014/08/02/magento-2-progress-towards-installation-via-composer/

{
"name": "alankent/store",
"require": {
"magento/magento-composer-installer": "*",
"magento/product-community-edition": "0.1.0-alpha89"
},
"repositories": [
{
"type": "composer",
"url": "http://packages.magento.com/"
}
],
"extra": {
"magento-root-dir": "htdocs",
"magento-deploystrategy": "copy"
},
"minimum-stability": "dev"
}

4- run composer install --profile in htdocs/magento2/setup.
5- localhost/magento2/ -> redirects to localhost/magento2/setup -> blank page.
note: that is the place were my installation display a blank page with title magento setup tool. when I checked the error.log of apache it says cannot find file in magento/setup/controls/ and it seems to be the menu.

installing using command line from this step its new for me. brgds!

@alankent
Copy link

Ah thanks. We have more documentation coming by the way, but I will try to help you keep moving along until then. There are additional steps between composer install and pointing a web server at the server. I won't rewrite the documentation here, but you at least must run the setup stage "php -f index.php install --cleanup_database --db_host=..." command earlier in this thread, and I personally have only tested also running the deploy.php and compiler.php scripts. This replaces the web installer (for now). (There will be a web installer before GA, but it is being separated from the web store home page.)

I am not actually working in the team on the installer, so I know what I do and works and am only sharing that. Hence this information is a bit patchy sorry. We have more coming around the recommended way to do installs and the implications of the different options.

@price2b
Copy link
Author

price2b commented Oct 31, 2014

@alankent i follow all process and it run (ok in command line). In your file the setup stage "php -f index.php install --cleanup_database --db_host=..." run inside htdocs/magento2/setup folder. if I use it there it didnt work, it seems that index.php inside setup dont have any parameter. if I run it at htdocs/magento2/ seems to process it.
then i manually create the local.xml file in /app/etc/.
an error appear when i run http://localhost/magento2/ but I receive an error. opening that error at /var/report/errornumber it says that the table magento2.store ( a:4:{i:0;s:87:"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento2.store' doesn't exist";i:1;s:4360:"#0 C:\Zend\Apache2\htdocs\magento2\lib\internal\Magento\Framework\DB\Statement\Pdo\Mysql.php(111): Zend_Db_Statement_Pdo->_execute(Array))
when i check the database and run mysql-> show tables; database is empty.
honestly I dont know what to do. do you have knowledge of any github repository with magento2 installation complete, including the database to compare with my current installation?.
thank you so much! brgds.

@price2b
Copy link
Author

price2b commented Oct 31, 2014

I found a database from Marius Strajeru https://github.com/tzyganu/m2-sample-data , installed into database, create local.xml and its working.. i will start playing..

thank you so much!

@price2b price2b closed this as completed Oct 31, 2014
@alankent
Copy link

That is great news. Thanks for letting us know.

@price2b
Copy link
Author

price2b commented Oct 31, 2014

@alankent brgds!

mmansoor-magento pushed a commit that referenced this issue Dec 29, 2016
[Epam] Extend functional test coverage 2

- Tasks:
- MTO-7: [Variation] Add variation to Update Bundle Product test to verify data overrirding on Store View level
- MTO-8: [Variation] Add variation to Create Category test with a big nesting a level
- MTO-9: [Variation] Add variation to create order test and verify product quantity and stock status
- MTO-10: [Test] Login customer with invalid credentials
- MTO-11: [Constraint] Add verification that sales rule isn't applied after deletion
- MTO-15: [Variation] Manage customers via mass action
- MTO-16: [Constraint] Add verification that catalog price rule isn't applied after deletion
- MTO-17: [Variation] Add variation to check catalog price rule for configurable product
- MTO-19: [Variation] Use short and long search queries in Quick Search
- MTO-20: [Variation] Verify Top Destinations for Country Options configuration applied in shopping cart
- MTO-30: [Variation] Displaying Out of Stock Products on Storefront
- MTO-35: [Constraint] Verify that product quantity after canceling the order
- MTO-40: [Variation] Create bundle product with out of stock simple product
- MTO-41: [Variation] Verify products became out of stock after purchasing
- MTO-42: [Constraint] Add verification for delete button for store group entity
- MTO-43: [Constraint] Add verification for delete button for store view entity
- MTO-44: [Variation] Create disabled store view
- MTO-45: [Constraint] Assert product can be found using advanced search
- MTO-46: [Test] Access admin when Store code added to URL
- MTO-50: [Test] Custom ACL permission
- MTO-55: [Test] Email validation for Guest on checkout flow
- MTO-57: [Variation] Add variation to Update Simple Product test to verify data overrirding on Store View level
- MTO-58: [Variation] Admin user without restricted privileges cannot access restricted categories
- MTO-59: [Variation] Add variation to Create Simple Product with visibility "Not Visible Individually"
- MTO-65: [Test] Page cache invalidation and flushing on scheduled indexing
- MTO-68: [Variation] Password protection for adding new user
- MTO-70: [Test] Register customer with different required character classes for the password
- MTO-74: [Variation] Autoupdate URL Rewrites if Subcategories deleted
- MTO-76: [Test] Autocomplete Password is not used if Login Password Customer Page
- MTO-79: [Variation] Autocreate URL Rewrite for a Product with Several Websites and Different Root Categories
- MTO-81: [Test] Move category entity
- MTO-83: [Test] Category permissions for the category
- MTO-89: [Test] Use Advanced Search by Decimal indexable attribute if Edit/Add Attribute (Cron is OFF, Console "Full Reindex")
- MTO-92: [Variation] Check Shipping Amount if not base currency
- MTO-93: [Variation] Restricted Admin User can see sales info related to another store
- MTO-99: [Variation] Create category in the custom root category
- MTO-96: PR2 stabilization
@mengbo123456
Copy link

# now i know why can't linking style ,but i don't know why this?
because install path no version1499055289 folder ,and i add it style work
qq 20170703141604
qq 20170703141841
qq 20170703142510
but i don't know why it can't add version1499055289 folder itself in During the installation process

joni-jones pushed a commit to joni-jones/magento2 that referenced this issue Jun 12, 2019
 - Merge Pull Request magento/graphql-ce#706 from magento/graphql-ce:673-isEmailAvailable_tests
 - Merged commits:
   1. a90b493
   2. 7e71a40
   3. 0c843c8
   4. fa1acbb
   5. 7cd32cf
joni-jones pushed a commit to joni-jones/magento2 that referenced this issue Jun 12, 2019
joni-jones pushed a commit to joni-jones/magento2 that referenced this issue Jun 12, 2019
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

5 participants