i do find through my mac-ssd, and find the oci8.so in /usr/lib/php/extensions/no-debug-non-zts-20090626/oci8.so.PHP Warning: PHP Startup: Unable to load dynamic library ‘/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/oci8.so’ – dlopen(/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/oci8.so, 9): image not found in Unknown on line 0 Apache error log is come in handy, i open the file and it says that apache/php can’t find the oci8.so :.Restart the apache, test it to connect to oracle, and FAILED again.the installation will modify your php.ini, and add extension=oci8.so.After i install it, i can run pecl install oci8 (Again) but this time, it run smoothly.The logic is simple, download file that you need, extract, configure, make, and install. Do some research and find this article to complete previous article. BUT it still generate an error that say system can’t find m4 library. From sebastien’s web i can understand the procedure to install autoconf manually.4.2, Apple didn’t provide autoconf anymore which means that i have to compile it manually! great news! In Mac, you have to install XCode, but from XCode ver. I find resource from internet, and come to some article that make me mad. Still produce error, but now it has different error.WTF! what kind of header file that it need? i decided to download PHP5.3 source code from php.net, extract and copy it to /Applications/XAMPP/xamppfiles/lib/php It will produce error, if i’m not wrong, the pecl will say that it can’t find file header in my Mac.I go to /Application/XAMPP/xamppfiles/bin.To ease the reading journey, i will tell my story using steps : Is it that simple? Unfortunately not! because if just type it Mac cli will return error. From some resources on the internet, they suggest to install it from command line and type : sudo pecl install oci8. What the heck is PECL anyway? As i read in, PECL is a repository for PHP Extensions, providing a directory of all known extensions and hosting facilities for downloading and development of PHP extensions. Thanks to google, i find a lot of resources to read and understand. Okey, let’s begin the journey.įirst, you have to understand that i’m using XAMPP so i can’t recompile PHP as another web explained. I will describe to you in detail how to do it, i use this blog also as notes so that if i forget how to do it, i will easily open this blog. you have to do the pecl install, build some source and so on. In Mac, you cannot do that! There are a lot of steps to connect. With windows, after you install oracle client, you just uncomment extension=php_oci8.dll. ![]() Since most of my programming life is fill with PHP with Codeigniter framework, it takes my curiousity on Oracle to the next level, that is how to connect my XAMPP to Oracle Server. trejder Posts: 68 Joined: 13.From my previous post, i have show you steps to install oracle client on mac. Maybe someone can write a total Linux newbie like me a short list of step that should be undertaken right after fresh XAMPP for Linux installation? ![]() It is using PDO (PHP Database Object) and therefore I'm guessing that XAMPP lacks Oracle driver for Linux. My application is designed to work with Oracle database only and being able to access Oracle DB from XAMPP is my current nightmare, as my application is displaying "could not find extension" / "could not find driver" error messages. With a help from my friends I was able to install and configure XAMPP on Linux and patch most important security flaws. But right know I have to go forward and deploy this application under Linux, which terrifies me like a hell to be honest, because I'm a complete Linux newbie. I produced a PHP application which is working under Windows XAMPP like a dream. Ever since now I've been successfully using XAMPP on Windows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |