Fatal error: Call to undefined function oci_connect() in

manish294

Member
Jul 5, 2016
24
3
3
India
cPanel Access Level
Root Administrator
Hello,

We have Oracle server and one cPanel server. We are trying to connect to the Oracle database fro the cPanel server through script. But getting below error:

Fatal error: Call to undefined function oci_connect() in/home/user/public_html/admin/include/conncection.php on line 3

Can anyone tell if we can connect to Oracle database from cPanel server?
Or is there anyway to enable oci_connect function in php or on cPanel server?

Please help!!

Thanks.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hello,

I believe the oci8 PECL module for PHP versions 7 and newer is what you are looking for. There's a thread on this topic at:

oic8 Oracle

Thank you.