Categories
Computing Mac OS X PHP Web Development

Enabling Oracle OCI8 PHP Extension on OS X Snow Leopard

My current project involves using PHP with an Oracle database. Oracle apparently embraces PHP warmly and as such supports an open source database driver for the environment called OCI8. As a Mac user I was looking to use OS X's built-in Apache and PHP setup, which like many PHP installations does not have the Oracle OCI8 driver installed or enabled. It took me some time and research to get it up and running. I was using Oracle Express, a limited capability, free-ish version of Oracle's database. Oracle Express was installed on a separate Windows machine as it cannot run or be installed on Snow Leopard. I also assume that you enabled PHP in your Apache configuration (/etc/apache2/httpd.conf) and have a /etc/php.ini by copying it from /etc/php.ini.default.

OCI8 relies on OS X having several client libraries and tools from Oracle installed on OS X. For most intents and purposes download the 64-bit version of the following files under the title "Version 10.2.0.4 (64-bit)": 

Registration is required for all downloads.

Share
Categories
Java

Working with Jetty

For my thesis, I am going to use the Jetty lightweight web server and as such am going to need a lot of trying and learning around how to use it, as it is more ’embedded’, for lack of a better word, than Tomcat. For me, Tomcat is a relatively known entity, having worked with in one form or another since 2000.

I am using Jetty 6.1.7,

So here goes…

Lesson #1: Setting Jetty’s default Port

  1. Open the file jetty.xml under the /etc folder inside the Jetty installation directory.
  2. Inside of the element with the name "addConnector", look for the element
    <Set name="port"><SystemProperty name="jetty.port" default="8999"/></Set>
  3. Change the value of the default attribute to the port you want to use.

del.icio.us Tags: ,,
Share
Share