Oracle OpenWorld 2005 Oracle & PHP Installfest Notes Monday September 19, 2005 ORA PHP Installfest CD contains the following files: File Description ---- ----------- httpd-2054tar.bz2 Apache 2.0.54 zendcorefororacle-v122-linu.gz Zend Core for Oracle 1.2.2 Beta jdev1012.zip JDeveloper 10.1.2 php-addin_12.zip PHP Extension for JDeveloper php-505tar.bz2 PHP v5.0.5 php-510rc1tar.bz2 PHP v5.1.0rc1 Install Apache -------------- $ cd $ORACLE_HOME $ tar -jxvf /media/cdrecorder/httpd-2054tar.bz2 $ mv httpd-2.0.54 apache2 $ cd apache2 $ ./configure -–prefix=$ORACLE_HOME/apache2 --enable-so --with-port=8888 $ make $ make install $ mv httpd bin $ apache2/bin/apachectl start In a browser check: http://localhost:8888/ gives apache default page. $ apache2/bin/apachectl stop Install Zend Core for Oracle ---------------------------- $ su $ cd /tmp $ tar -zxvf /zendcorefororacle-v122-linu.gz $ cd ZendCoreForOracle-v1.2.2-Linux-x86 $ ./install Responses to the installer: Overwrite /etc/php.ini = Yes Location for Zend Core [/usr/local/Zend/Core] = OK Password: OK Verify: OK Enter Zend Network User ID = No Select webserver: 2. Specify Location Enter the full directory path to the apache2 install under your oracle home. eg. /home/oracle/orcl/db_1/apache2 Confirm Installation Method: 1.Apache Module Virtual Server for GUI 1.Main Server Restart Webserver Configure another? EXIT Go back to the oracle user and restart apache: $ $ORACLE_HOME/apache2/bin/apachectl start In your browser, go to http://localhost:8888/ZendCore Login with your password from above. This is the management GUI. Download from OTN the test php files that access the Oracle database: --------------------------------------------------------------------- $ firefox http://www.oracle.com/technology/tech/php/files/test1.php Save As: /apache2/htdocs/test1.php http://www.oracle.com/technology/tech/php/files/test2.php Save As: /apache2/htdocs/test2.php Edit the files and set the Easy Connect strings to your database identifier.