Home >Backend Development >PHP Problem >How to solve the php error message that the computer is missing oci.dll

How to solve the php error message that the computer is missing oci.dll

尊渡假赌尊渡假赌尊渡假赌
尊渡假赌尊渡假赌尊渡假赌Original
2023-06-01 16:35:411912browse

php error report that the computer is missing oci.dll solution: 1. Right-click the computer, click "Properties" to enter "Advanced System Settings", select "Environment Variables", find "PATH" in the system variables, and click " Edit" and add the oci.dll file path to the end of the variable value, separated by a semicolon; 2. Copy the oci.dll file in the installation package to the PHP ext folder, or search it in php.ini "extension_dir" can be solved.

How to solve the php error message that the computer is missing oci.dll

Operating system for this tutorial: Windows 10 system, php8.1.3 version, Dell G3 computer.

php error message that the computer is missing oci.dll Solution:

Solution 1: Add the oci.dll file path to the system environment variable

Right-click Computer-> Properties-> Advanced System Settings-> Environment Variables, find PATH in the system variables, click Edit, add the oci.dll file path (such as C:instantclient_12_1) to the end of the variable value , with semicolon as delimiter. If you installed instantclient according to the installation steps on Oracle's official website, then the path of the environment variable is this path.

屏幕截图 2023-06-01 144509.png

Solution 2: Copy the oci.dll file to the ext folder of PHP

Include the Oracle instantclient installation package The oci.dll file is copied to the $PHP_HOME/ext directory. This directory stores the files of the PHP extension module. If you are using PHP under a Windows system, $PHP_HOME is usually C:php or C:xamppphp. You can also find extension_dir in php.ini.

How to solve the php error message that the computer is missing oci.dll

The above is the detailed content of How to solve the php error message that the computer is missing oci.dll. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn