Oci8/Oracle activation

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Oci8/Oracle activation

Postby rogs78 » 02. May 2024 17:24

Hi, folks!

I am trying to activate oci8 in my Xampp 8.2.0 installation running in a Suse Linux Enterprise Server 12 SP5.

I am following the instructions of the FAQ topic "How do I activate the OCI8/Oracle extension for PHP?"

I configured the Oracle Instant Client before.

When I execute the proposed commands there is no errors or warning messages but the extension is not beeing enabled. I check this in phpinfo().

I checked Xampp Log too and didn't find errors.

I have few knowledges in SUSE so I am not finding ways to deal with this.

Any suggestions? :oops:
rogs78
 
Posts: 2
Joined: 02. May 2024 17:13
XAMPP version: 8.2.0
Operating System: Suse Enterprise Server 12 SP 5

Re: Oci8/Oracle activation

Postby rogs78 » 09. May 2024 15:44

I got it! \o/

Instead of using
Code: Select all
sudo /opt/lampp/lampp oci8


how FAQ suggests

I used:
Code: Select all
./opt/lamp/bin/pecl install -f oci8 --with-oci8=instantclient,/usr/lib/oracle/12.1/client64/lib


PS:
Code: Select all
/usr/lib/oracle/12.1/client64/lib
is the folder where I installed Oracle Instant Client

And it woooorkkkks!!!!!

Ok! I needed to include
Code: Select all
extension=oci8.so
manually in PHP.INI too, but it's recommended at the end of installation.

Restarted lamp and.... made it! :lol:
rogs78
 
Posts: 2
Joined: 02. May 2024 17:13
XAMPP version: 8.2.0
Operating System: Suse Enterprise Server 12 SP 5


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 38 guests