0

I am using XAMPPS to run PHP files but when i run the file in localhost/ it asks to update to PHP 7.4, and this is where the problem occurs apache can't run.

I tried change the port (such as port 8080, 8081 etc change in httpd.conf) will get to a workaround for this issue. I have also downloaded the latest version of Microsoft Visual C++ at https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads but the problem still doesn't solve.

This is the error while starting Apache :

enter image description here

Logs from apache error log file:

enter image description here

This is the result when I ran the commands httpd.exe -v and php.exe -v: `c:\xampp\mysql\bin>httpd.exe -v 'httpd.exe' is not recognized as an internal or external command, operable program or batch file.

c:\xampp\mysql\bin>php.exe -v
PHP 7.4.33 (cli) (built: Nov  2 2022 17:33:44) ( ZTS Visual C++ 2017 x86 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

I don't think I have any problem with IIS, WEB CLIENT, WORLD WIDE WEB SERVICE. Please help me fix it, thanks.

3
  • 2
    Why are you using such old PHP versions? Install the latest XAMPP with the latest PHP Commented Jun 15 at 14:35
  • Well, the apache error log lines you posted name the issue, don't they? Commented Jun 16 at 14:21
  • From the logs it seems you are trying to run a site with certificates without certificates (get it?) AND the VC library is incompatible (it says so). I'd check the latter before the former. I'm never in favor on running php on windows combined with IIS - use WSL, docker or VirtualBox: it's more isolated and less compatibility issues. Commented Jun 18 at 13:39

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.