Vcruntime140 dll ошибка php

Let’s say you are installing PHP 7.4.x on Windows 10. After installation, you reach CMD to verify the installation using php -v  command. While verifying, you may get the following vcruntime140.dll error:

VCRUNTIME140.dll Error

Following is the error:

C:WINDOWSsystem32>php v

PHP Warning: ‘vcruntime140.dll’ 14.0 is not compatible with this PHP build linked with 14.16 in Unknown

on line 0

Following is the screenshot of the error:

PHP vcruntime140.dll error

Fix vcruntime140.dll Error

To fix the above error, you need to download and install Microsoft Visual C++ Redistributable for Visual Studio 2019.

To download, go to the Microsoft Visual Studio’s official website. After clicking the download link from the website, you will reach the following page:

Download from Microsoft Visual Studio

Now, go to the “All Downloads” section below and click “Other Tools & Frameworks” as shown below:

Other Tools and Frameworks

After clicking “Other Tools and Framework“, download the “Microsoft Visual C++ Redistributable for Visual Studio 2019“.

Before that, do not forgot to select x64 option button for 64-bit Windows 10 OS as shown below:

Download Microsoft Visual C++ Redistributable for Visual Studio 2019

After clicking “Download“, the following exe file will download:

Install the exe file. After installing the Visual C++ Redistributable, do not forget to restart the system.

After restarting, go to CMD > right-click “Run as Administrator“.

Now, type php – v again and there won’t be any error and shown below.

PHP vcruntime140.dll error fixed

The above version information shows that you have successfully installed PHP 7.4.x on Windows 10.

Video Tutorial

If you’d like to see video tutorial and fix the issue, then refer the below video,




Read More

Studyopedia Editorial Staff


Studyopedia Editorial Staff

[email protected]

We work to create programming tutorials for all.

On the side bar of the PHP 7 alpha download page, it does say this:

VC9, VC11 & VC14
More recent versions of PHP are built with VC9, VC11
or VC14 (Visual Studio 2008, 2012 or 2015 compiler respectively) and
include improvements in performance and stability.

  • The VC9 builds require you to have the Visual C++ Redistributable for Visual Studio 2008 SP1 x86 or x64 installed

  • The VC11 builds require to have the Visual C++ Redistributable for Visual Studio 2012 x86 or x64 installed

  • The VC14 builds require to have the Visual C++ Redistributable for Visual Studio 2015 x86 or x64 installed

There’s been a problem with some of those links, so the files are also available from Softpedia.

In the case of the PHP 7 alpha, it’s the last option that’s required.

I think that the placement of this information is poor, as it’s kind of marginalized (i.e.: it’s basically literally in the margin!) whereas it’s actually critical for the software to run.

I documented my experiences of getting PHP 7 alpha up and running on Windows 8.1 in PHP: getting PHP7 alpha running on Windows 8.1, and it covers some more symptoms that might crop up. They’re out of scope for this question but might help other people.

Other symptom of this issue:

  • Apache not starting, claiming php7apache2_4.dll is missing despite it definitely being in place, and offering nothing else in any log.
  • php-cgi.exe - The FastCGI process exited unexpectedly (as per @ftexperts’s comment below)

Attempted solution:

  • Using the php7apache2_4.dll file from an earlier PHP 7 dev build. This did not work.

(I include those for googleability.)

I got an email from a user asking for help. He couldn’t debug PHP application he was working on. After a little digging, we found out that he couldn’t even run PHP. When executed it stopped immediately with a warning:

PHP Warning: 'C:WINDOWSSYSTEM32VCRUNTIME140.dll' 14.15 is not compatible with this PHP build linked with 14.29 in Unknown on line 0

As you know PHP is written in C, with some components in C++. When you build PHP for Windows you will need a component called Microsoft C and C++ (MSVC) runtime libraries and VCRUNTIME140.dll is the main library. These libraries will have to be installed before PHP or any app that requires them can run. You can install MSVC in the package called Microsoft Visual C++ Redistributable package.

Now, since PHP doesn’t bundle MSVC, it will want to use what you will have on your system. And if you have an older version than the version which PHP was built with, you will get the warning shown above.

How to fix it

  1. Go to https://visualstudio.microsoft.com/downloads/

  2. Scroll to the bottom, there is a Other Tools, Frameworks, and Redistributables section.

  3. Select your OS distribution bitness (Don’t worry about Visual Studio version) and click Download

Visual Studio Download Page

  1. After installation, the warning should go away.

How not to worry about it again

If you are using PHP Tools for Visual Studio, the issue will not happen. There is an automatic installation/configuration feature that checks the requirements of the particular PHP version you want to update or install.

For example, if your project requires PHP 8.1 with Xdebug and you run the project, you would get the following dialog.

Install

When you click continue, PHP Tools will install PHP 8.1 x64, the latest Xdebug and the required Microsoft Visual C++ Redistributable package — if not present already.

WebPi output

This way you will not have to deal with this the next time.

Обновлено 16.06.2017

VCRUNTIME140.dll error

Добрый день уважаемые читатели и гости блога, пока в мире идет борьба с вирусом wonacry и все устанавливают заплатки безопасности, мы будем решать вот такую задачу, а именно ошибка vcruntime140.dll и как ее исправить. Столкнулся я с ней при запуске skype, но также встречал ее у своего приятеля при запуске игр Mafia 3, Skyrim, GTA 5, Civilization, Ведьмак 3 (The Witcher 3), syberia 3 (Сибирь 3) и другие. Я вам покажу самые действенные и на сто процентов рабочие методы, которые вы легко сможете применить за пару минут.

Причины ошибки запуск невозможен отсутствует vcruntime140 dll

Для понимания того, что мы будем лечить и исправлять нужно понять причину, все дело в том, что многие современные программы и игры используют для своей работы Microsoft Visual C++ в состав которой, входит и библиотека vcruntime140.dll и если она отсутствует, то вы увидите подобное сообщение в вашей операционной системе, в моем примере это Windows 10:

Не удается продолжить выполнение кода, поскольку система не обнаружила VCRUNTIME140.dll. Для устранения проблемы попробуйте переустановить программу.

VCRUNTIME140.dll

или вот такое при открытии игры:

Запуск программы невозможен, так как на компьютере отсутствует VCRUNTIME140.dll. Попробуйте переустановить программу.

Запуск программы невозможен

Варианты решения проблемы

  • Переустановка программы, по возможности на свежую версию
  • Установка Microsoft Visual C++
  • Скачать у меня VCRUNTIME140.dll, библиотеку и зарегистрировать ее

Переустановка программы

Приведу пример с программой скайп, когда она мне писала «запуск программы невозможен отсутствует vcruntime140.dll», то я просто как в случае с отсутствующей библиотекой msvcp140.dll скачал новую версию утилиты, только не тонкого клиента, а skype offline installer и установил ее по верх предыдущей версии, что в итоге меня избавило от ошибки. Новая версия уже имела все необходимые компоненты, на счет игр не могу со сто процентной уверенностью сказать, что переустановка свежей версии поможет, для них лучше использовать пакет Microsoft Visual C++ 2015 и выше.

Установка Microsoft Visual C++ 2015 и выше (Официальный метод)

Для того, чтобы скачать vcruntime140.dll для windows 7, 8,1 и Windows 10 мы воспользуемся самым правильным и официальным методом от Microsoft, инсталлируем в операционную систему Microsoft Visual C++ Redistributable Package, нужная библиотека является его частью. Но прежде чем мы его скачаем, нужно определиться для какой разрядности Windows это делать.

В моем примере это Windows 10 Creators Update (1703) 64-х битная, поэтому я и буду скачивать 64-х битную версию Microsoft Visual C++ Redistributable Package.

определяем разрядность Windows для VCRUNTIME140.dll

Переходим на официальную страницу утилиты:

https://www.microsoft.com/ru-RU/download/details.aspx?id=52685

Чуть ниже ссылка облако

Выбираем нужный язык и нажимаем скачать.

Скачиваем Visual C++

Указываете нужную разрядность утилиты и скачиваете пакет устанавливающий вам библиотеку vcruntime140.dll в систему.

Выбор версии Visial C++ для windows 10

Так же если у вас не получается скачать Microsoft Visual C++ 15 с официального сайта, может ссылка на страницу поменялась, то выкладываю вам на mail облако.

https://cloud.mail.ru/public/HLMf/bAKx2CZTa

Далее я имею игру «Сибирь 3» и ошибку vcruntime140.dll, попробуем ее исправить, установив vc_redist.x64.exe, в вашем случае это может быть любая другая игра, например, Mafia 3. Принимаем лицензионное соглашение и нажимаем «Установить»

сибирь 3 ошибка vcruntime140 dll

У вас может в Windows 10 или Windows 8.1 выскочить предупреждение, в котором вас попросят разрешить установку, говорим да.

не запускается vcruntime140 dll

Начнется инсталляция Microsoft Visual C++ 2015

отсутствует программа vcruntime140 dll

Все теперь у вас на компьютере присутствует vcruntime140.dll и Mafia 3 или Сибирь 3 спокойно запустятся.

мафия 3 vcruntime140 dll

Как видите открылось стартовое окно игры.

мафия 3 vcruntime140 dll-2

Регистрация библиотеки

Если вы по каким-то причинам не можете скачать Microsoft Visual C++ 15, то вы можете отдельно скачать vcruntime140.dll для windows 10 и предыдущих версий и зарегистрировать ее в системе.

В итоге у вас будет архив, вы его распаковываете и кладете dll вот по таким путям.

  • Если ваша система Windows 32-бит, то кидайте с заменой файл в папку:
    Компьютер → Локальный диск (C:) → Windows → System32.

регистрация библиотеки vcruntime140 dll в windows

  • Если ваша система Windows 64-бит, то кидайте с заменой файл в папку:
    Компьютер → Локальный диск (C:) → Windows → SysWOW64.

После чего открываете cmd от имени администратора и вводите команду regsvr32 vcruntime140.dll

vcruntime140 dll для windows 7 x64

Если у вас на компьютере установлены такие программы как Mozilla, Skype, Microsoft Office 365, то у них так же используется библиотека vcruntime140.dll и вы спокойно можете ее скачать от туда

поиск библиотеки vcruntime140.dll

Надеюсь вам помогли мои методы и вы исправили ошибку vcruntime140.dll и спокойно продолжаете использовать свои любимые программы и игры.

It looks like you are encountering an error related to a missing VCRUNTIME140.dll file when using PHP 7. This file is part of the Microsoft Visual C++ Redistributable package, and it is required by some applications that have been compiled using Visual C++.

To fix this error, you will need to install the Microsoft Visual C++ Redistributable package on your system. You can download the latest version of the package from the Microsoft website:

  • For Visual C++ 2015: https://www.microsoft.com/en-us/download/details.aspx?id=48145
  • For Visual C++ 2017: https://aka.ms/vs/15/release/vc_redist.x64.exe
  • For Visual C++ 2019: https://aka.ms/vs/16/release/vc_redist.x64.exe

Once you have downloaded the package, run the installer and follow the prompts to install it on your system. After installation is complete, try running your PHP script again and see if the error persists.

If you are still encountering the error after installing the Visual C++ Redistributable package, it is possible that the DLL file may be damaged or missing from its expected location. In this case, you may need to try re-installing the package or repairing the installation to fix the problem.

Понравилась статья? Поделить с друзьями:
  • Vcrintime140 dll ошибка
  • Vcredist x86 exe ошибка приложения
  • Vcredist x64 ошибка приложения
  • Vcredist x64 exe ошибка
  • Vcredist 2017 x64 ошибка