oci8在Mac os mavericks + PHP5.4.17上不起作用

My project requires me to use remote oracle service, so I installed oci8 on my Mac os x 10.9.1. Then I use php -m to list all the loaded modules. I can see oci8 is there. But if I use phpinfo() in the web browser, oci8 doesn't list. I tried a few php code lines to connect to remote oracle server, there's no response on the webpage. Does anyone know where the problem is?

Yeah. I solve it after 3 days search online. Add "DYLD_LIBRARY_PATH" and "LD_LIBRARY_PATH", which direct to your oracle library into /System/Library/LaunchDaemons/org.apache.httpd.plist under EnvironmentVariables.

Then, use "sudo apachectl restart" to restart apache server, oci8 extension is successfully loaded on apache. This can be checked by phpinfo().

Hope this helps others who have the same problem with me:)