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

Could not open input file: install.php #87

Open
ramsaybell opened this issue Jan 27, 2017 · 8 comments
Open

Could not open input file: install.php #87

ramsaybell opened this issue Jan 27, 2017 · 8 comments

Comments

@ramsaybell
Copy link

ramsaybell commented Jan 27, 2017

My Setup:
OS X Sierra 10.12.3
Vagrant 1.9.1
VirtualBox 5.1.14 r112924
PHP 5.6.29 (cli) (built: Jan 14 2017 21:05:20) - I have also tried PHP7 with Magento 2

When installing Magento 1 or Magento 2 using Magestead I receive the following issue:

Autoloader patch to public/app/Mage.php was applied successfully
Installing Magento Software
/usr/local/rvm/scripts/extras/bash_zsh_support/chpwd/function.sh: line 5: cd: /var/www/public: No such file or directory
Could not open input file: install.php
PHP Warning: file_get_contents(/projectName/public/app/etc/local.xml): failed to open stream: No such file or directory in /Users/ramsaybell/.composer/vendor/richdynamix/magestead/src/Magestead/Installers/MagentoProject.php on line 214
PHP Stack trace:
PHP 1. {main}() /Users/ramsaybell/.composer/vendor/richdynamix/magestead/magestead:0
PHP 2. Symfony\Component\Console\Application->run() /Users/ramsaybell/.composer/vendor/richdynamix/magestead/magestead:66
PHP 3. Symfony\Component\Console\Application->doRun() /Users/ramsaybell/.composer/vendor/symfony/console/Application.php:120
PHP 4. Symfony\Component\Console\Application->doRunCommand() /Users/ramsaybell/.composer/vendor/symfony/console/Application.php:189
PHP 5. Symfony\Component\Console\Command\Command->run() /Users/ramsaybell/.composer/vendor/symfony/console/Application.php:826
PHP 6. Magestead\Command\NewCommand->execute() /Users/ramsaybell/.composer/vendor/symfony/console/Command/Command.php:262
PHP 7. Magestead\Installers\Project::create() /Users/ramsaybell/.composer/vendor/richdynamix/magestead/src/Magestead/Command/NewCommand.php:54
PHP 8. Magestead\Installers\MagentoProject->__construct() /Users/ramsaybell/.composer/vendor/richdynamix/magestead/src/Magestead/Installers/Project.php:20
PHP 9. Magestead\Installers\MagentoProject->installMagento() /Users/ramsaybell/.composer/vendor/richdynamix/magestead/src/Magestead/Installers/MagentoProject.php:33
PHP 10. Magestead\Installers\MagentoProject->configureRedis() /Users/ramsaybell/.composer/vendor/richdynamix/magestead/src/Magestead/Installers/MagentoProject.php:80
PHP 11. Magestead\Installers\MagentoProject->updateConfigXml() /Users/ramsaybell/.composer/vendor/richdynamix/magestead/src/Magestead/Installers/MagentoProject.php:204
PHP 12. file_get_contents() /Users/ramsaybell/.composer/vendor/richdynamix/magestead/src/Magestead/Installers/MagentoProject.php:214

Warning: file_get_contents(/projectName/public/app/etc/local.xml): failed to open stream: No such file or directory in /Users/ramsaybell/.composer/vendor/richdynamix/magestead/src/Magestead/Installers/MagentoProject.php on line 214

Call Stack:
0.0002 237928 1. {main}() /Users/ramsaybell/.composer/vendor/richdynamix/magestead/magestead:0
0.0125 2005064 2. Symfony\Component\Console\Application->run() /Users/ramsaybell/.composer/vendor/richdynamix/magestead/magestead:66
0.0231 2402952 3. Symfony\Component\Console\Application->doRun() /Users/ramsaybell/.composer/vendor/symfony/console/Application.php:120
0.0232 2404040 4. Symfony\Component\Console\Application->doRunCommand() /Users/ramsaybell/.composer/vendor/symfony/console/Application.php:189
0.0233 2404640 5. Symfony\Component\Console\Command\Command->run() /Users/ramsaybell/.composer/vendor/symfony/console/Application.php:826
0.0235 2409152 6. Magestead\Command\NewCommand->execute() /Users/ramsaybell/.composer/vendor/symfony/console/Command/Command.php:262
154.8248 3597264 7. Magestead\Installers\Project::create() /Users/ramsaybell/.composer/vendor/richdynamix/magestead/src/Magestead/Command/NewCommand.php:54
154.8255 3667920 8. Magestead\Installers\MagentoProject->__construct() /Users/ramsaybell/.composer/vendor/richdynamix/magestead/src/Magestead/Installers/Project.php:20
480.9401 3667992 9. Magestead\Installers\MagentoProject->installMagento() /Users/ramsaybell/.composer/vendor/richdynamix/magestead/src/Magestead/Installers/MagentoProject.php:33
484.6423 3668728 10. Magestead\Installers\MagentoProject->configureRedis() /Users/ramsaybell/.composer/vendor/richdynamix/magestead/src/Magestead/Installers/MagentoProject.php:80
484.6423 3669648 11. Magestead\Installers\MagentoProject->updateConfigXml() /Users/ramsaybell/.composer/vendor/richdynamix/magestead/src/Magestead/Installers/MagentoProject.php:204
484.6423 3669872 12. file_get_contents() /Users/ramsaybell/.composer/vendor/richdynamix/magestead/src/Magestead/Installers/MagentoProject.php:214

[Exception]
String could not be parsed as XML

new

Seems to be another issue as well with fuse when building the VM:

==> local: Fuse seems to not be installed on the virtual machine, installing now
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

yum -y install fuse

Stdout from the command:

Loaded plugins: priorities
Setting up Install Process

Stderr from the command:

http://apt.sw.be/redhat/el6/en/x86_64/extras/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: repoforgeextras. Please verify its path and try again
Installing Magento with Composer

Any suggestions please?

@richdynamix
Copy link
Owner

Hi, Sorry I have not seen this issue before. Do you have the required PHP extensions? It looks like a permissions issue. How did you install PHP? Are you sure you are using the correct PHP version on CLI?

@ramsaybell
Copy link
Author

ramsaybell commented Feb 13, 2017

Hi, thanks for the reply. Yes I have the required PHP extensions:

php -ini | grep intl /usr/local/php5/php.d/50-extension-intl.ini, intl intl.default_locale => no value => no value intl.error_level => 0 => 0 intl.use_exceptions => 0 => 0

php -ini | grep mcrypt Configure Command => './configure' '--prefix=/usr/local/php5' '--with-apxs2=/usr/sbin/apxs' '--with-config-file-scan-dir=/usr/local/php5/php.d' '--with-libxml-dir=shared,/usr' '--with-openssl=/usr/local/php5' '--with-zlib=/usr' '--with-zlib-dir=/usr' '--with-gd' '--with-ldap' '--with-xmlrpc' '--enable-exif' '--enable-soap' '--enable-wddx' '--enable-ftp' '--enable-sockets' '--with-bz2=/usr' '--enable-zip' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-mbstring' '--enable-bcmath' '--enable-calendar' '--with-mhash' '--enable-fpm' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--enable-pcntl' '--enable-dtrace' '--enable-opcache' '--with-icu-dir=/usr/local/php5' '--with-mssql=shared,/usr/local/php5' '--with-pdo-dblib=shared,/usr/local/php5' '--with-xsl=shared,/usr/local/php5' '--with-imap=shared,../imap-2007f' '--with-kerberos=/usr' '--with-imap-ssl=/usr' '--with-gettext=/usr/local/php5' '--with-curl=shared,/usr/local/php5' '--with-png-dir=/usr/local/php5' '--with-jpeg-dir=/usr/local/php5' '--enable-gd-native-ttf' '--with-freetype-dir=/usr/local/php5' '--with-pgsql=shared,/usr/local/php5' '--with-pdo-pgsql=shared,/usr/local/php5' '--with-mcrypt=shared,/usr/local/php5' '--with-tidy=/usr/local/php5' '--with-gmp=shared,/usr/local/php5' '--with-readline=shared,/usr/local/php5' 'CC=cc '-L/usr/local/php5/lib' '-I/usr/local/php5/include' '-I/usr/include/libxml2' '-I/usr/local/php5/include/tidy' '-DENTROPY_CH_RELEASE=1'' 'CFLAGS=-g '-O' '-mmacosx-version-min=10.10' '-I/usr/local/php5/include' '-arch' '-no-cpp-precomp' '-DENTROPY_CH_ARCHS='''i386/x86_64'''' '-DENTROPY_CH_RELEASE=1'' 'LDFLAGS=-L/usr/local/php5/lib '-arch' 'CXXFLAGS=-arch /usr/local/php5/php.d/50-extension-mcrypt.ini, Registered Stream Filters => zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, mcrypt.*, mdecrypt.*, http.* mcrypt mcrypt support => enabled mcrypt_filter support => enabled mcrypt.algorithms_dir => no value => no value mcrypt.modes_dir => no value => no value

PHP:

PHP 5.6.29 (cli) (built: Jan 14 2017 21:05:20)

PHP was installed using http://php-osx.liip.ch/ -

curl -s https://php-osx.liip.ch/install.sh | bash -s 5.6

OS:
macOS Sierra 10.12.3

Vagrant:
Vagrant 1.9.1

VirtualBox:
5.1.14 r112924 (Qt5.6.2)

I have also tried using an older version of Virtualbox so my guest additions match the guest machine (GuestAdditions 5.0.10).

I have tried running this as the root user as well and I still get the same errors.

@octoxan
Copy link

octoxan commented Feb 19, 2017

I'm having this same issue.

I'm on Ubuntu 16.04 and am running PHP 7.0 and have the two required extensions.

Mine dies at
[Exception]
String could not be parsed as XML

@MPietrukowski
Copy link

I'm having the same issue with centos-php5-nginx-magento
in which install.php is not executed and local.xml is not created

Could not open input file: install.php
Warning: file_get_contents(/Users/user/project5/public/app/etc/local.xml): failed to open stream: No such file or directory

@efdelacruz
Copy link

Also ran into this issue upon entering the command

$ magestead new <project>

I am on Vagrant 1.8.1, VirtualBox 5.0.40, PHP 7.0 and XUbuntu 16.04. Also installed php7.0-intl and php7.0-mcrypt.

Here is my output:

Installing Magento Software
/usr/local/rvm/scripts/extras/bash_zsh_support/chpwd/function.sh: line 5: cd: /var/www/public: No such file or directory
Could not open input file: install.php
PHP Warning:  file_get_contents(/home/delacruz/git-efdc/m1meyb2b/public/app/etc/local.xml): failed to open stream: No such file or directory in /home/delacruz/.config/composer/vendor/richdynamix/magestead/src/Magestead/Installers/MagentoProject.php on line 214

                                     
  [Exception]                        
  String could not be parsed as XML  
                                     

new <project>

@richdynamix
Copy link
Owner

@efdelacruz Did you run magestead new <project>? If so then this is your issue. The angle brackets in your "project" name will cause a parse error when trying to create the XML. The docs only have this as a placeholder.

@efdelacruz
Copy link

efdelacruz commented Jun 13, 2017

@richdynamix ayt sorry for the confusion. was as a placeholder. Simply ran it as

magestead new myproject

Wherein it encountered the mentioned errors above.

@clotted
Copy link

clotted commented Oct 4, 2017

I have the same on macOS High Sierra. All php modules are present.

This seems to be the likely issue, as per Line 214 in MagentoProject.php
$localXml = file_get_contents($projectPath . $localFile);

http://php.net/manual/en/function.file-get-contents.php
which states: An E_WARNING level error is generated if filename cannot be found

As the local.xml does not exist yet, it throws exception. That seems to match what we are seeing.
I'm not sure of what needs to change in MagentoProject.php, but that looks like the problem

@richdynamix Any chance you can fix?
There are multiple reports of the same

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

6 participants