Home >Backend Development >PHP Tutorial >Laravel connection oracle problem, how to enable php's oci8 extension?

Laravel connection oracle problem, how to enable php's oci8 extension?

WBOY
WBOYOriginal
2016-09-29 09:19:071548browse

Laravel connection oracle problem

After understanding, yajra/laravel-oci8 was installed through composer, and YajraOci8Oci8ServiceProvider::class was added to config/app.php. After the terminal executed $ php artisan vendor:publish --tag=oracle, the config was configured In oracle.php, an error is reported when connecting to the database, as follows
Laravel connection oracle problem, how to enable php's oci8 extension?

Oracle's instantclient has been deployed and environment variables have been added to the system path, and php.ini's extension=php_oci8_12c.dll has been enabled. The problem still exists. Looking at the output of phpinfo(), it seems that the oci8 extension is not enabled

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