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
Install Fails on Windows with error "not within the allowed path" #2636
Comments
No doubt this is probably obvious to the experts, but for the sake of the archive should any other newb run across this issue in the future, it was a matter of PHP not knowing where to find its php.ini file, thus it defaulted to some basic set of settings, which included a non-existent base directory. Once I figured this out, I re-ran the install command explicitly setting the path to the php.ini file, like this:
and all was well. May I recommend some better error handling in the installer pointing out this possible problem if PHP is not give a valid .ini file? Thanks. |
You found the solution yourself: this is not a Composer, but PHP environment / configuration issue. |
Thanks, but I am still facing the same issue. C:>php -c c:\WT-NMP\conf\php.ini -r "eval('?>'.file_get_contents('https://getco Warning: realpath(): open_basedir restriction in effect. File(C:) is not within Warning: is_readable(): open_basedir restriction in effect. File(C:\composer.ph Warning: is_readable(): open_basedir restriction in effect. File(/etc/pki/tls/ce Warning: is_readable(): open_basedir restriction in effect. File(/etc/ssl/certs/ Warning: is_readable(): open_basedir restriction in effect. File(/etc/ssl/ca-bun Warning: is_readable(): open_basedir restriction in effect. File(/usr/local/shar Warning: is_readable(): open_basedir restriction in effect. File(/usr/ssl/certs/ Warning: is_readable(): open_basedir restriction in effect. File(/opt/local/shar Warning: is_readable(): open_basedir restriction in effect. File(/usr/local/shar Warning: is_readable(): open_basedir restriction in effect. File(/usr/share/ssl/ Fatal error: Uncaught exception 'RuntimeException' with message 'Unable to write |
Can not reproduce. My suggestion: instead of using WT-NMP, you might consider using a server stack for windows, which ships Composer out of the box, like http://wpn-xm.org/ |
I knew its too late, but may help someone else. And this worked for me |
@vdohare Thanx, it worked for me too. |
I am unable to install composer on Windows using either the installer or manual installation. This is on Windows 7 (64). I'm trying to install in my development stack (WT-NMP).
With the automatic installer, the error is:
When I attempt to install manually, this is what happens:
Might someone be able to tell me what I am doing wrong?
Thank you.
The text was updated successfully, but these errors were encountered: