Installation -> Magento Setup Tool display blank page - setup/controls not found.
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.
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.)
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
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
Thank you Alan, I will try your your github repository.brgds!
@alankent " Only the command line install is guaranteed to work right now." <- this means using composer with command line or another procedure? thank you!
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.
@alankent thank you so much! i will read all the info.
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
@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.
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.
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 [email protected] --admin_username=admin --admin_password=admin123 --use_secure=0
@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..
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!
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!
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.
@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.
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!
That is great news. Thanks for letting us know.
@alankent brgds!
# 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
but i don't know why it can't add version1499055289 folder itself in During the installation process