Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the php7 prompt 500error

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the relevant knowledge of "how to solve the php7 prompt 500error". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Php7 prompt 500 error solutions: 1, find Visual Studio2015 and 2017 and 2019 three-in-one installation package; 2, choose according to the version of your system, and download and install it.

This article operating environment: windows7 system, PHP7.4 version, DELL G3 computer

Php7 prompt 500 error how to solve?

Causes and Solutions of 500 errors after upgrading PHP 7.4.5 in earlier version

PHP has now been updated to version 7.4 and 500 errors will occur if you upgrade from an older version of PHP to PHP. If it is a mistake in the article, the solution is very simple.

The following are the problems I encountered in the process of upgrading and the solutions:

Just went to see the official website of PHP, suddenly found that PHP has been updated to PHP 7.4.5 (the latest is 7.4.10), so download it and prepare to update it. After setting up the PHP.ini file, it will be replaced directly in the production environment (well, because it is a personal website, it doesn't matter, if it is a major project, it should be tested and then updated).

As a result, the PHP page opens with a 500 error.

Then I look at the details and the error shows:

The php-cgi.exe-FastCGI process exited unexpectedly

I use the command line to run php-v in the PHP directory, prompting:

PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0

Because PHP needs the support of VC++, but the previous version of PHP works. Then it was found on PHP's official website that PHP7.4 (including PHP7.4.5) was set up using Visual Studio 2019. That is, you use VC16, and the previous version is VC15, so you can't use it.

Find the latest Visual Studio 2015, 2017 and 2019 three-in-one installation packages online:

Https://support.microsoft.com/zh-cn/help/2977003/the-latest-supported-visual-c-downloads

Download and install according to the version of your system. X86 is 32-bit and x64 is 64-bit.

Our problem's solved.

This is the end of the content of "how to solve the php7 Tip 500 error". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report