Answer the question
In order to leave comments, you need to log in
How to run php on different windows versions?
I "collect" a local server for my tasks.
I need to run the php-cgi.exe file.
The problem is that on a clean Windows 7 OS, an error occurs - the lack of libraries.
The error disappears and everything starts when vc_redist.x86.exe (Visual C++ Redistributable Package for Visual Studio) is installed.
What's the problem - installing vc_redist.x86.exe is required on Windows 7 x32 and on Windows 7 x64.
That is, when installing vc_redist.x64.exe on Windows 7 x64 (which is logical), php-cgi.exe gives an error - the lack of libraries.
And this is true, because my php is x32 - I also need to run it on 32 bit systems.
How to run php on different windows versions?
Should I make 2 server builds for x32 and x64? I would not want to, since the size of the server is important to me.
And so it will be more than 2 times.
I tried to put the libraries from vc_redist.x86 into the folder with php - there are errors in entering the point of the procedure.
Answer the question
In order to leave comments, you need to log in
Are you sure you need support for 32bit systems? Isn't it easier to score?
PHP works differently even for them, and there may be problems, for example, setting a cookie for several years.
It's easier for me to deal with this using OpenServer - the php version is switched there in the settings - if you don't have the one you need, add it - details on the Open Server website.
there are special programs for creating installers, where this is done semi-automatically. I won’t tell you exactly the names. Haven't been on desktop for a long time. I remember such a package was attached to ancient delphi, but I advise you to google something newer
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question