Apache/PHP/SSL/Oracle

to all gurus,
can somebody tell me why my apache won't start when running on 443 port thru sudo mode (root) though that port is defined on my httpd.conf ... if I look at error messages below, somewhere along the line, it try to use a 64bit oracle lib "/lib" ... do you know which config file i need to modify so that it will use the 32bit lib "/lib32" ... if I start apache using normal oracle account, it will start but it won't bind on 443 so i used other port (higher port)... i would appreciates all your thought about this... TIA
sunsjc03# ./apachectl startssl
Syntax error on line 30 of /u01/app/oracle/product/9.2.0.4/apache1331/conf/httpd.conf:
Cannot load /u01/app/oracle/product/9.2.0.4/apache1331/libexec/libphp4.so into server: ld.so.1: /u01/app/oracle/product/9.2.0.4/apache1331/bin/httpd: fatal: /u01/app/oracle/product/9.2.0.4/lib/libclntsh.so.9.0: wrong ELF class: ELFCLASS64
./apachectl startssl: httpd could not be started

From the error message it looks like the PHP-OCI extension has been linked with the 64-bit OCI library in $ORACLE_HOME/lib ( I don't how this step worked for you). You can try relinking/rebuilding your libphp4.so with the 32-bit library in $ORACLE_HOME/lib32. This should work.
regards,
--karthik                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Apache, PHP, and Oracle 11G

    Hi,
    I have an 11G RAC Setup, and a separate application server that runs php that is presently connecting to MySQL Servers.
    I just configured OCI8 in my application server and can see that my configurations are correct using phpinfo().
    iam using this code to connect to my RAC 11G:
    <?php
    if(!$conn = oci_connect('sys', 'opensesame','callbox.oracle'))
    $err = oci_error();
    trigger_error('Could Not Establish a Connection:'.$err['message'], E_USER_ERROR);
    ?>
    but i get this error:
    Warning: oci_connect() [function.oci-connect]: ORA-12154: TNS:could not resolve the connect identifier specified in /var/www/html/oraconn.php on line 6
    here's tnsnames.ora in my RAC, using sqlplus via command line works perfectly fine in either nodes of the rac.
    LISTENERS_CALLBOX =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node01-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = node02-vip)(PORT = 1521))
    CALLBOX2 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node02-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = callbox.oracle)
    (INSTANCE_NAME = callbox2)
    CALLBOX1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node01-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = callbox.oracle)
    (INSTANCE_NAME = callbox1)
    CALLBOX =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = node01-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = node02-vip)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = callbox.oracle)
    am I missing something?

    i forgot to include that the tutorial that helped me configure the OCI8 for PHP suggests that i need to create tnsnames.ora in /etc like this:
    SERVICENAME =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ip_of_oracle_server)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = SID)
    (SID = SID)
    so I created this:
    CALLBOX1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST =192.168.50.161)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = callbox.oracle)
    (INSTANCE_NAME = callbox1)
    and did this: export TNS_ADMIN=/etc/
    am not sure which part of my tnsnames.ora in the RAC (posted earlier) be copied in /etc/tnsnames.ora in the application server.

  • PHP,MYSQL,ORACLE,APACHE issue?

    Hello All,
    In my oracle 10gr2 server that is build on rhel4, we have web based portal, now that web based portal connects to oracle and mysql, my problem is that, the developer told me that i have to install php4, apache2 with support of OCI8, i have tried every thing in google but unable to find, how can i do this, please help me out, thanks

    Some example guides show installing Apache as a non-root user just to avoid breaking production web servers when installing for the first time. A non-root user cannot start Apache on a privileged port like 80. Once you're familiar with the install process you can always install on the system default Apache or use 80 as the port number.
    The free, prebuilt PHP and Oracle-client stack called Zend Core for Oracle runs on x64. ZCO can be very easy to install. http://www.oracle.com/technology/tech/php/zendcore/index.html
    -- cj

  • Oracle+apache+php in windows environment

    Hi all, i have a great problem with a new web application written in Php 5 under Apache 2.2.4. using Oracle instant client 10g
    The database (10.2.0.2) characterset is WE8MSWIN1252 same for the client. When i insert/update a rows from php with àèìòù characters i see ¿¿¿ with the client (sqlplusw) if i insert/update same characters from sqlplusw i saw ???? from php.
    Tried to set NLS_LANG in httpd.conf but nothing is changed. Could anyone help me ?
    Thanks.

    What platforms are you using here, for apache/php/oracle client host and the other host where you have sqlplusw.exe?
    When having inserted non-ascii characters from sqlplusw, what does the following return
    select column, dump(column,1016) from table where ...
    After insert from php, what does the same query return?
    Also read the following thread
    charset

  • Apache/PHP connection to Oracle 9i under OpenVMS

    Hello,
    With CSWS 2 (apache)/PHP 1.3 (4.3.2) under OpenVMS 7.3.2 i'm actually trying to interface an Oracle 9i database located on the same server with no success.
    In my php.ini i've uncommented "extension=php_oci8.exe"
    In my apache$www:[000000]login.com i've added @orauser.com <SID>
    But... no connexion at that time... (php:ocilogon failed)
    Someone can help me ?
    Someone experienced such interface ?
    thanks in advance for all

    Frankly, I haven't seen an openvms setup :)
    Do you have the required oci libraries ? are they accessible to php?
    regards,
    --karthik

  • Unable to Start Oracle Apache after SSL implementation

    Hi,
    We are on Oracle EBS 11i(11.5.10.2) on Windows 2003(32-Bit)
    We want to implement SSL for HTTP server. I tried this on our test instance by following +11i: A Guide to Understanding and Implementing SSL for Oracle Applications [ID 123718.1]+
    After implementing SSL, Oracle Apache is not starting and gives "Service didnt report error". I expected the adapcctl.cmd to prompt for password. I understand that in Unix Apache must be started as root in SSL mode. Is there any specific I need to do for Windows? After reverting the context file to the original file and running autoconfig Apache is starting normally.
    Please let me know if I had to anything Windows specific.
    Rgds,
    Thiru.

    Thanks.
    I did all that is mentioned in Note: +11i: A Guide to Understanding and Implementing SSL for Oracle Applications [ID 123718.1]+. Also referred to +Troubleshooting SSL with Oracle Applications 11i [ID 300969.1]+.
    After enabling Trace in httpd.conf I am getting the following error in ssl_engline_log
    +[24/ÇÈÑíá/2011 16:50:15 00624] [info] Server: Oracle HTTP Server Powered by Apache/1.3.19, Interface: mod_ssl/2.8.1, Library: OpenSSL/0.9.5a+
    +[24/ÇÈÑíá/2011 16:50:15 00624] [info] Init: 1st startup round (still not detached)+
    +[24/ÇÈÑíá/2011 16:50:15 00624] [info] Init: Initializing OpenSSL library+
    +[24/ÇÈÑíá/2011 16:50:15 00624] [info] Init: Loading certificate & private key of SSL-aware server dvlp003.imtac.com:443+
    +[24/ÇÈÑíá/2011 16:50:15 00624] [trace] Init: (dvlp003.imtac.com:443) unencrypted RSA private key - pass phrase not required+
    +[24/ÇÈÑíá/2011 16:50:15 00624] [info] Init: Loading certificate & private key of SSL-aware server dvlp003.imtac.com:10010+
    +[24/ÇÈÑíá/2011 16:50:15 00624] [trace] Init: (dvlp003.imtac.com:10010) unencrypted RSA private key - pass phrase not required+
    +[24/ÇÈÑíá/2011 16:50:15 00624] [info] Init: Seeding PRNG with 136 bytes of entropy+
    +[24/ÇÈÑíá/2011 16:50:15 00624] [info] Init: Generating temporary RSA private keys (512/1024 bits)+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [info] Init: Configuring temporary DH parameters (512/1024 bits)+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [trace] Inter-Process Session Cache (DBM) Expiry: old: 0, new: 0, removed: 0+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [info] Init: Seeding PRNG with 136 bytes of entropy+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [info] Init: Configuring temporary RSA private keys (512/1024 bits)+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [info] Init: Configuring temporary DH parameters (512/1024 bits)+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [info] Init: Initializing (virtual) servers for SSL+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [info] Init: Configuring server dvlp003.imtac.com:443 for SSL protocol+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [trace] Init: (dvlp003.imtac.com:443) Creating new SSL context (protocols: SSLv2, SSLv3, TLSv1)+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [trace] Init: (dvlp003.imtac.com:443) Configuring RSA server certificate+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [trace] Init: (dvlp003.imtac.com:443) Configuring RSA server private key+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [trace] Init: (dvlp003.imtac.com:443) Configuring server certificate chain (3 CA certificates)+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [info] Init: Configuring server dvlp003.imtac.com:10010 for SSL protocol+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [error] Init: (dvlp003.imtac.com:10010) Illegal attempt to re-initialise SSL for server (theoretically shouldn't happen!)+
    I am using port 443. The changes made to application tier context file is:
    set the %s_url_protocol variable to https
    set the %s_local_url_protocol variable to https
    set the %s_webentryurlprotocol variable to https
    set the %s_frmConnectMode variable to https
    set the %s_webssl_port variable to the Apache SSL port required
    set the %s_active_webport variable to the same value as that for the %s_webssl_port variable
    set the %s_webport variable to the same value as that for the %s_webssl_port variable
    set the %s_web_ssl_directory variable to point to the full directory path of the directory that is to contain the .crt and .key files that you are using for Apache
    set %s_apps_portal_url variable to https
    AutoConfig completed sucessfully. Our env is 11.5.10.2 on Windows 2003.
    Rgds,
    Thiru

  • PHP  and Oracle Connection

    Please help to connect to oracle through php.
    OS=Windows Server 2008 R2(x64)= is working correctly
    PHP ver=PHP 5.3.2= is working correctly
    ORACLE = Oracle Database 11gR2= is working correctly
    Since the PHP and Oracle on the same machine, I did not install install client(but even with instan client I could not connect to oracle).
    phpinfo does not show oci section
    in Environment section shows these values
    PHPRC = C:\Program Files (x86)\PHP\
    LD_LIBRARY_PATH = D:\ipardb\ora_base\product\11.2.0\orahome\lib
    NLS_LANG = AMERICAN_AMERICA.WE8MSWIN1252
    ORACLE_HOME = D:\ipardb\ora_base\product\11.2.0\orahome
    ORACLE_SID = iparbio
    Path= C:\Program Files (x86)\PHP\;D:\ipardb\ora_base\product\11.2.0\orahome\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\MySQL\MySQL Server 5.1\bin;
    TNS_ADMIN= D:\ipardb\ora_base\product\11.2.0\orahome\network\admin
    Loaded Configuration File C:\Program Files (x86)\PHP\php.ini
    uncommented extension in php.ini
    [PHP_OCI8_11G]
    extension=php_oci8_11g.dll
    extension dir is set ok, since other extensions are working properly
    when i execute php.exe, in error_log file appears
    [11-Jun-2010 10:37:34] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_oci8_11g.dll' - %1 is not a valid Win32 application.
    in Unknown on line 0
    Please help me.

    I'm guessing the cause is probably the same as that article: PHP is 32bit but your Oracle libraries are 64bit.
    You will need to install 32bit instant client and make sure they are used for Apache. Does Windows 2008 have sym links? Perhaps the note mentioned at the end of OCI8 IN WINDOWS SERVER 2008 x64 will help. Otherwise try creating some batch scripts to set PATH appropriately before starting Apache.

  • PHPからOracleInstantClientを利用してOracleに接続

    こんにちは。
    PHPからOracleInstantClientを利用してOracleに接続しようとしていますが、うまくいきません。
    <環境>
         OS:Windows Vista
         PHP:5.2.9
         Apache:2.2.11 (xampp使用)
         OracleInstantClient:10.2.0.5 → Cドライブ直下に配置(C:\instantclient_10_2)
    <接続先>
         Oracle:9i(Enterprise Edition Release 9.2.0.1.0)
    <設定内容>
         [Windows環境変数]
          Path の先頭に C:\instantclient_10_2; の記述を追加
          NLS_LANG=JAPANESE_JAPAN.JA16EUC 追加
         [PHP]
          C:\xampp\php\php.ini の extension=php_oci8.dll コメントアウト削除
          extension_dir = "C:\xampp\php\ext\" に php_oci8.dll(versionは5.2.9.0) が存在することを確認
    上記の状態で、簡単なphpプログラムから接続すると、下記のエラーが発生します。
    oci_connect() [function.oci-connect]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries in ...
    phpinfo() を実行し、Environmentセクションにパスが設定されており、oci8セクションも存在することを確認しています。
    また、InstantClientのsqlplusを利用し、DBへの接続が可能であることも確認できています。
    他のサイトを含め、参照して色々試してみたのですが、上記エラーが発生し、動作しません。
    確認すべき事項や、何かヒントなどありませんでしょうか。
    よろしくお願いします。

    みなさま、こんにちは。
    下記のような方法で解決できましたので、ご報告いたします。
    1) OracleInstantClient ダウンロード
         適当なフォルダに展開
    2) 環境変数(システム)設定
         NLS_LANG = JAPANESE_JAPAN.JA16SJIS (新規追加)
         Path の設定を編集 … 1)のフォルダのパスを先頭に追加
    3) xampp の設定
         a)\xampp\apache\bin の下にある oci.dll を削除
         b) \xampp\php の下にある php.ini を編集
              ・extension=php_oci8.dll をアンコメント
              ・extension_dir の設定を確認し、同フォルダに php_oci8.dll が存在することを確認する
         c) \xampp\htdocs の該当プロジェクト内の \app\config フォルダ内の database.php を編集
    4) マシンを再起動
    こちらのスレッドに目を留めていただいた皆様、ありがとうございました。

  • How to configure apache for ssl in windows platform

    hi all,
    can anyone help me expalin how to configure apache for ssl in windows platform.

    George,
    I would take the following 'first steps'
    1)Install Apache20 on your Windows machine following the Apache online documentation
    http://httpd.apache.org/docs-2.0/misc/tutorials.html
    2)Make sure you can 'serve up' static HTML content from your Apache Server
    3)Install Weblogic Server per our online documentation
    http://edocs.bea.com/wls/docs61/install/index.html
    4)Also, make sure you can 'serve up' both static and dynamic (e.g., JSP) content
    directly from WLS server
    5)Once you have both of the above 'sanity' checks attempt to configure a simple
    proxy by ppath or mime type via our online documentation
    http://edocs.bea.com/wls/docs61/adminguide/apache.html#103803
    Chuck Nelson
    DRE
    BEA Technical Support

  • Problems with Apache PHP Mysql

    I tried doing an upgrade from Tiger to Leopard server but was having lots of issues while working with the virtual sites I have hosted. I tried a clean install and I was still unable to get Apache php and mysql to work together. Each service was starting fine but when I would try to run a php file it would only display a white page. Under the upgrade instead of displaying the page it was downloading any page I tried to load.
    In the new clean install I enabled phplib5 through server admin but even a simple info.php file with <?php phpinfo(); ?> was only giving me a white page. I dont know if mysql was interfacing with php and apache at this point cause I could not get any further. I mainly just want to be able to run wordpress which is a php blog that uses a mysql database.
    I have heard some people talking about mamp installs and not using the stock web services but I did not know if that would be a smart route to take.

    well the problem come in that you could end out with multiple releases of the same application when the idea is to make one package "stable"
    would you rather have a debain package data base that has seventeen apache's or one stable full featured apache?
    as for a server/stable tree for production machines this is coming. implimentation is not the trouble it is time that is a factor.

  • PHP and Oracle DB Job Find

    Hi every ones:
    I'm develop some applications using PHP and Oracle and php give me a lot of advantage. in bouth way of access to a database, OCI and mod plsql.
    How can i say to Oracle THANKS FOR TAKE SERIOUS PHP TECNOLOGY!!!
    I work actually for a company that implement all (Microsoft) and i want find a job with PHP and Oracle programming. Any body have idea that where i need look?

    How can i say to Oracle THANKS FOR TAKE SERIOUS PHP
    TECNOLOGY!!!You just did! Thanks!
    You can help Oracle with scripting languages even more, by completing the questionnaire on scripting langauges at:
    http://www.oracle.com/go/?&Src=1545492&Act=10
    Alison

  • PHP and Oracle Workflow

    Hi everyone,
    Is it possible to use PHP and Oracle Workflow together? I means use PHP to generate user-interface and PHP-OCI8 API to call WFEngine PL/SQL code?

    All of the public documented Workflow Engine PL/SQL APIs and Java APIs enable customers to build their own screens based on workflow, such as building your own specialized worklist.
    Hi everyone,
    Is it possible to use PHP and Oracle Workflow together? I means use PHP to generate user-interface and PHP-OCI8 API to call WFEngine PL/SQL code?

  • Apache php mysql installation on arch

    does anyone have a tutorial on how to install :
    - apache
    - php
    - mysql
    on Archlinux
    i have installed apache
    pacman -S apache
    pacman -S php
    pacman -S mysql
    but apache won't start : /etc/rc.d/httpd start - it gives me FAIL
    and when i try httpd it give a nasty error
    httpd: arp_sockaddr_info_get() failed for pufos (pufos - the linux box name)
    httpd: Could not reliably determine the server's fully qualified domain name , using 127.0.0.1 for ServerName
    is because i didnt configureg good httpd.conf or what
    anyway , a tutorial for installing apache php and mysql would be perfect.
    Thank guys

    pacman -S mysql
    /etc/rc.d/mysqld start
    :: Adding mysql group
    /etc/rc.d/mysqld: line 14: groupadd: command not found
    :: Adding mysql user
    /etc/rc.d/mysqld: line 19: useradd: command not found
    chown: 'mysql.mysql': invalid user
    :: Starting MySQL [FAIL]
    omg , if the mysql installed through pacman get stuck cause 'useradd' does not exist as a command .... huuuh
    ??? any sugestions ?

  • PHP and oracle problem

    Hi,
    I'm trying to create a chart with php ad oracle. I'm using this code
    <?
         function Num_of_Rows($column, $status, $table){                         
              $conn = oci_pconnect("$username", "$passwd", "$host");     
              $sql_query = "SELECT COUNT($column) AS NUMBER_OF_ROWS FROM $table WHERE Status = '$status'";
              $stmt= oci_parse($conn, $sql_query);
              oci_define_by_name($stmt, 'NUMBER_OF_ROWS', $number_of_rows);
              oci_execute($stmt);
              oci_fetch($stmt);
              return $number_of_rows;     
         $result1 = Num_of_Rows("Admin_Number", "Active", "AS_ADMINS");
         $result2= Num_of_Rows("Admin_Number", "Locked", "AS_ADMINS");
         echo $result1;
         echo $result2;
    ?>
    This code works but only once! When I delete the row $result1 = Num_of_Rows("Admin_Number", "Active", "AS_ADMINS"); the second call of the function works and when I delete      $result2= Num_of_Rows("Admin_Number", "Locked", "AS_ADMINS"); the furst call of the function works!
    It seems that I can use the function only once and I can't call it again. It seems that the problem is someone else. Do you have an idea?

    I don't know what you mean by "works".
    Have you tried changing the echo commands so the output is not adjacent?
    echo $result1 . "<br>\n";
    echo $result2 . "<br>\n";It seems odd to allow an arbitrary tablename but assume that there is always a column called STATUS.
    I'd recommend using bind variables where possible.

  • Php access oracle XE

    Hi,
    I try to use php access oracle by using:
    <head>
    <title>
    Test Oracle PHP Connection.
    </title>
    </head>
    <body>
    <?php
    if ($c = @oci_connect("php","php","xe"))
    echo "Successfully connected to Oracle.<br />";
    oci_close($c);
    else
    $errorMessage = oci_error();
    print '<table border="1" cellpadding="0" cellspacing="0">';
    foreach ($errorMessage as $name => $value)
    print '<tr><td>'.$name.'</td><td>'.$value.'</td></tr>';
    print '</table>';
    ?>
    </body>
    </html>
    It does not show any thing when I run.
    Could you please help me what wrong?
    Message was edited by:
    user503313

    It doesn't show ANYTHING?
    ~Jer

Maybe you are looking for

  • How to use this query in oracle?

    Hi sir, i am using one query in sql that is declare @date date='2012-10-25', @date1 varchar(5) set @date1 = DATEPART(W, @date) print @date1 in that its returning value 5 means 25 oct day is thursday so it's checking and counting from sunday in that w

  • Why must we pay for 3.1.2?

    I'm getting fed up with these expensive firmware updates. I understand the switch to 3.0, but there's nothing terribly new with the "features" added in the new update in 3.1.2. Can someone please post a convincing argument for why we're forced to pay

  • AIR captive runtime

    Hi folks, was wondering if an app (Android) generated with captive runtime, still ask the user to install AIR plugin. If somebody knows ( and maybe have an example actually on market ) , i'll be glad to pay him/her a beer ! Thanks in advance

  • Wait and notify in Object

    Hi, Who can give me a short java code segment to show the method wait and notify of the class Object. I've already tryed as forlow: try { A a = new A(); a.wait() ; catch (InterruptedException ex) { ex.printStackTrace() ; But a thread is always be thr

  • Itunes cannot find itunes library.itl file?

    We are having difficulty on our XP Pro PC opening iTunes to update an iPhone. We keep getting a message that itunes cannot locate the above .itl file. But the file is there where it supposed to be.