WAMP server does not work properly in Windows 10

I just updated my OS to Windows 10 and I have an atypical problem. I am using a WAMP server and PHP is not working, although there is no error displayed anywhere.

I tried updating vcredist or changing ports, but the problem persists.

+5
source share
2 answers

Windows 10 does not come with all the outdated MSVC standards.

You will also have to install any of them that are missing.

Which versions you really need to run WAMPServer, or rather Aapche, will depend on the version of WAMPServer that you run, but installing all of them may not harm, because they are used by any software that was compiled with Microsoft compilers.

If you use WAMPServer 64bit on Windows 10 64bit, you will need to install BOTH 32-bit versions of these libraries .

After you verify that you have all the runtime libraries, you may also need to reinstall the Apache and MYSQL services, because by the time you upgrade to Windows 10, unfortunately, sometimes (almost always) the fact that you have 2 services is missing must be replaced after upgrade, i.e. wampapache and wampmysqld

All you have to do is use the wampmanager menu system:

 left click wampmanager -> Apache -> Services -> Install Service left click wampmanager -> MySQL -> Services -> Install Service 

Then

 left click wampmanager -> Start All Services 

Additional Information

Also remember that in order to interpret PHP, the code must exist in a file with the .php extension. If you use notepad as an editor, this will add .txt to the file name, so if you save tst.php , it will actually be saved as tst.php.txt and therefore will not tst.php.txt . Get a decent notepad ++ editor, do an excellent job and be free.

Also .html or .htm files that contain php code will not execute php code because these files are not passed to the PHP interpreter because they do not have a .php extension.

Using Explorer

Do not double-click the script file name in Windows Explorer. This works to test blank HTML pages or HTML + Javascript pages , but it does not work if the page has PHP code. However, this does not happen through Apache, and it is Apache that sees <?php and therefore know whether to pass this code to the PHP interpreter.

You must enter the name of the script file in the address bar of the browser, as if it were a real website , because of course it

For example localhost/project1/test.php

+4
source

I ran into a problem and solved it by installing Microsoft Visual C / C ++ Redistributable 2010 (VC10), both 32bit / 64bit and 2008 and 2012 are already installed. My configuration: Windows 10 64 bit, wampserver 64 bit.

0
source

Source: https://habr.com/ru/post/1247036/


All Articles