Home > Article > Backend Development > How to solve the php error message that the computer is missing oci.dll
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.
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.
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.
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!