ThinkPHP 6 + PHP7.4.3nts + nginx using mysql and oracle databases.
preamble
Business needs, before the use of php 7.3.4nts , mysql write their own code, need to docking third-party systems, the third party to use the oracle database. Before that, there were all kinds of net checking, and it was a success. Last Friday and need to docking, this time with php7.4.3nts, a variety of try two or three days can not, last night suddenly can, today hurry to save!
I. Environment
1、phpstudy V8.1(nginx + mysql + php 7.4.3nts)
2、windows server 2012 R2
Second, according to phpinfo (); check the php version and the current server bit (64-bit or 32-bit).
Second, install oracle database
My existing oracle is 10 and the third party business logic one is also 10, Gu choose this installation. LUJI will be automatically added to the system environment variables. Setting
Third, download oci8 plugin (download link :/package/oci8)
After the download is successful, copy the following three things and put them into the ext under the php version in the path of Pi's installation (E:\phpstudy_pro\Extensions\php\php7.4.3nts\ext)
Third, open the plug-in. It is better to bring the .dll (
extension=oci8_12c
extension=php_pdo_oci.dll
extension=php_oci8.dll
)
Download Oracle Instant Client Download Link: /database/technologies/instant-client/ (account registration required)
Note: The choice is more delicate here. Don't listen to other people on the internet who download the counterpart of what they see inside phpinfo (). It's all bullshit. Choose this with your installation of oracle to be the same 10 download 10.2.0.5
Then unzip the downloaded package and copy the files to E:\phpstudy_pro\Extensions\php\php7.4.3nts
V. Restart nginx and check the phpinfo()
Perfect solution !!!!!!!!!!!