Why I have not installed composer and why php.exe?

Downloaded composer

tried to install it

3952abac6ad1470facd475aa820f27e2.png but appears this error:

5a49a5ae0435451086b9ed552b0fdd52.png783649155609481a80cc08a850181ade.pngSame when just trying to run php.exe:


How to fix it?
July 9th 19 at 11:24
1 answer
July 9th 19 at 11:26
Delete denwer and put Openserver.
The composer is already embedded inside openserver'a. One of the easiest builds for windows today.
Or to put php, the web server and other nishtyaki such as mysql, memcache, etc.
I want to add one point. in Openserver'e has its own command line ConEmu and better composer to work through it rather than using the standard cmd - lourdes commented on July 9th 19 at 11:29
as I understand it, on openserver anyway will need to install composer


so I would like to deal with the installation through Denver...
or using xampp or vertrigo (because I have it already) - carlos_Leannon commented on July 9th 19 at 11:32
: you are quite right. In the above paragraph describes how to initialize composer for a new project. Why is it in the dock called "install" is not very clear. - willow.Hand commented on July 9th 19 at 11:35
: well, OK, if another solution doesn't suggest you will have then to download openserver :( - carlos_Leannon commented on July 9th 19 at 11:38
: actually, I would suggest you with windows to try virtualization. For example Docker(https://www.docker.com/ ). As the owner of windows on a home computer - got rid of a heap of headaches transferring all the environment inside a Docker. - willow.Hand commented on July 9th 19 at 11:41
: it is much easier denwer, believe me.

At the command prompt (conemu), which you run through openserver (prntscr.com/b8ksbs) are available from the composer command, git, ssh, etc. do Not need to separately set.

You can also add bookmarks in your development environment to start using Openserver and inside your IDE was also available to all teams: php, git, ssh, etc. Otherwise you may have problems running debug, for example. - soni commented on July 9th 19 at 11:44
wow, docker on windows is?
And conveniently beneath it work at all?
I just don't see how you can work with, when working inside the machine there is another virtual machine, a bunch of desktops, Windows is a mess. But Docker, as far as I know a little about one another. Share your experience Docker under wine? - soni commented on July 9th 19 at 11:47
: Yes, of course there is. Coming soon native support(currently in beta). Currently working through the intermediate layer with a lightweight ubuntu(really easy, not to compare with the same vagrant). Is easy and all in one package ( along with virtualbox and configure the intermediate of a path) Here is the link to install ( https://docs.docker.com/windows/step_one/ ). Described in detail and special problems did not arise. And then everything just - breaking up all the necessary services ( can be the same apache + mysql + php) in the containers, almost all popular services already have containers with default settings.
Docker is not a virtual machine. This service containerization. It allows you to create a container environment that can be deployed theoretically anywhere. For web development you get the same webserver, but inside the container. He has your ip and you can access it as you would to localhost if installed on your operating system. But you first may not start a bunch of obscure service when you start Windows, there is no litter (different versions of Apache/nginx, any mySQL/postgres, etc.).
You can have as many configurations of containers for each project separately and run the project just picking up the desired configuration ( 1 command).
PS Actually start using Docker is easy. You just need to read/view these videos: https://training.docker.com/self-paced-training . Well, it is desirable to do the same thing is done on video. After that everything usually falls into place. - willow.Hand commented on July 9th 19 at 11:50
: honestly, I don't really understand why I would need Docker?.. this is supposedly a virtual machine? - carlos_Leannon commented on July 9th 19 at 11:53
: I'm already downloading, I will try) - carlos_Leannon commented on July 9th 19 at 11:56
: interesting, thanks! It will be necessary to deal with Docker. Thing useful and necessary, judging by what she knows. Recently just lectures I watched about Docker, but thought that it was all under linkus. - soni commented on July 9th 19 at 11:59
: do not bother with Docker. Start with simple — but openserver'. Then going to complicate the setup of the environment and simplify the development process :) - soni commented on July 9th 19 at 12:02
: Yes it seems Docker is too difficult for me XD - carlos_Leannon commented on July 9th 19 at 12:05
: actually it only seems so. There is even a GUI for windows. Watch the video at the link above, repeat and understand. Will take a maximum of a day.
Why Docker:
1. On the new machine to pick up all the environment of the project enough to put Docker and start the build. No need to install anything else.
2. Don't need to understand why another service refuses to be put under a particular operating system.
3. Work with any number of projects does not make the cereal out of your working operating system.
4. Deprives you of the "fun" of installation services. For most popular services already have an official container, you can use them or make your on the basis.
In fact, Docker allows for each service(nginx, php, ...) to create a small virtual machine. And to tie these machines together. You only have to write for each service the necessary configs ( e.g. config of your hosts in the case of appache) and specify how containers should interact with each other. - willow.Hand commented on July 9th 19 at 12:08
: but what if I ALREADY have a bunch of services and virtual machines? still not very clear what it means
Work with any number of projects
... this is similar to when I run multiple virtual machines at the same time? - carlos_Leannon commented on July 9th 19 at 12:11
: you can migrate over time, all existing projects, configs don't have much to change in order for Docker to work.
About a few projects: you have many different Docker containers. Each project has its own set of containers. Let's say we have projects A and B with the containers A1,A2,A3 and b1,b2,b3, respectively. If you need something in a project And you start the containers that belong to it and do what you need. If after that, you had to move to another project - launch containers b1,b2,b3. The first three containers related to the project And can be disabled. - willow.Hand commented on July 9th 19 at 12:14
: hmm okay... - carlos_Leannon commented on July 9th 19 at 12:17

Find more questions by tags Command linePHPComposer