apache+php+oracle10g
qtal110
|
1#
qtal110 发表于 2007-04-15 17:54
apache+php+oracle10g
软件:httpd-2.2.4.tar.gz php-5.0.3.tar.gz oracle10g 10.1
http编译: tar -zxvf httpd-2.2.4.tar.gz ./configure --enable-module=so make make install PHP编译: tar -zxvf php-5.0.3.tar.gz ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --enable-track-vars --enable-sockets --with-gd --with-freetype-dir=/usr/local/freetype2 --with-zlib --with-png-enable-gd-native-ttf --with-oracle=/opt/oracle/product/10g --with-oci8=/opt/oracle/product/10g make make install apache+php都编译成功,oracle10g也安装成功,数据导入正常,可运行网业的时候提示: Warning: ocilogon() [function.ocilogon]: _oci_open_session: OCIHandleAlloc OCI_HTYPE_SVCCTX: OCI_INVALID_HANDLE in /mnt/web/inc/adodb/drivers/adodb-oci8.inc.php on line 228 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /mnt/web/index.html:1) in /mnt/web/require/header1.html on line 2 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /mnt/web/index.html:1) in /mnt/web/require/header1.html on line 2 好像ocilogon不能用 附: PHP Version 5.0.3 System Linux canshu 2.6.9-1.667smp #1 SMP Tue Nov 2 14:59:52 EST 2004 i686 Build Date Apr 15 2007 14:39:29 Configure Command './configure' '--prefix=/usr/local/php' '--with-apxs2=/usr/local/apache/bin/apxs' '--enable-track-vars' '--enable-sockets' '--with-gd' '--with-freetype-dir=/usr/local/freetype2' '--with-zlib' '--with-png-enable-gd-native-ttf' '--with-oracle=/opt/oracle/product/10g' '--with-oci8=/opt/oracle/product/10g' Server API Apache 2.0 Handler Virtual Directory Support disabled Configuration File (php.ini) Path /usr/local/php/lib PHP API 20031224 PHP Extension 20041030 Zend Extension 220040412 Debug Build no Thread Safety disabled IPv6 Support enabled Registered PHP Streams php, file, http, ftp, compress.zlib Registered Stream Socket Transports tcp, udp, unix, udg Zend logo This program makes use of the Zend Scripting Language Engine: Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies PHP Credits Configuration PHP Core Directive Local Value Master Value allow_call_time_pass_reference On On allow_url_fopen On On always_populate_raw_post_data Off Off arg_separator.input & & arg_separator.output & & asp_tags Off Off auto_append_file no value no value auto_globals_jit On On auto_prepend_file no value no value browscap no value no value default_charset no value no value default_mimetype text/html text/html define_syslog_variables Off Off disable_classes no value no value disable_functions no value no value display_errors On On display_startup_errors Off Off doc_root no value no value docref_ext no value no value docref_root no value no value enable_dl On On error_append_string no value no value error_log no value no value error_prepend_string no value no value error_reporting no value no value expose_php On On extension_dir /usr/local/php/lib/php/extensions/no-debug-non-zts-20041030 /usr/local/php/lib/php/extensions/no-debug-non-zts-20041030 file_uploads On On highlight.bg #FFFFFF #FFFFFF highlight.comment #FF8000 #FF8000 highlight.default #0000BB #0000BB highlight.html #000000 #000000 highlight.keyword #007700 #007700 highlight.string #DD0000 #DD0000 html_errors On On ignore_repeated_errors Off Off ignore_repeated_source Off Off ignore_user_abort Off Off implicit_flush Off Off include_path .:/usr/local/php/lib/php .:/usr/local/php/lib/php log_errors Off Off log_errors_max_len 1024 1024 magic_quotes_gpc On On magic_quotes_runtime Off Off magic_quotes_sybase Off Off mail.force_extra_parameters no value no value max_execution_time 30 30 max_input_time -1 -1 open_basedir no value no value output_buffering 0 0 output_handler no value no value post_max_size 8M 8M precision 14 14 register_argc_argv On On register_globals Off Off register_long_arrays On On report_memleaks On On report_zend_debug On On safe_mode Off Off safe_mode_exec_dir /usr/local/php/bin /usr/local/php/bin safe_mode_gid Off Off safe_mode_include_dir no value no value sendmail_from no value no value sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i serialize_precision 100 100 short_open_tag On On SMTP localhost localhost smtp_port 25 25 sql.safe_mode Off Off track_errors Off Off unserialize_callback_func no value no value upload_max_filesize 2M 2M upload_tmp_dir no value no value user_dir no value no value variables_order EGPCS EGPCS xmlrpc_error_number 0 0 xmlrpc_errors Off Off y2k_compliance On On zend.ze1_compatibility_mode Off Off apache2handler Apache Version Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.7a PHP/5.0.3 Apache API Version 20051115 Server Administrator you@example.com Hostnameort canshu:0 User/Group daemon(2)/2 Max Requests Per Child: 10000 - Keep Alive: on - Max Per Connection: 100 Timeouts Connection: 300 - Keep-Alive: 5 Virtual Server No Server Root /usr/local/apache Loaded Modules core mod_authn_file mod_authn_default mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_default mod_auth_basic mod_include mod_filter mod_log_config mod_env mod_setenvif mod_ssl prefork http_core mod_mime mod_status mod_autoindex mod_asis mod_cgi mod_negotiation mod_dir mod_actions mod_userdir mod_alias mod_rewrite mod_so mod_php5 Directive Local Value Master Value engine 1 1 last_modified 0 0 xbithack 0 0 Apache Environment Variable Value HTTP_HOST canshu HTTP_USER_AGENT Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041020 Firefox/0.10.1 HTTP_ACCEPT text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5 HTTP_ACCEPT_ENCODING gzip,deflate HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7 HTTP_KEEP_ALIVE 300 HTTP_CONNECTION keep-alive HTTP_COOKIE AJSTAT_ok_pages=1; AJSTAT_ok_times=1; PHPSESSID=11853f4235b1e3ec126ae609cc35993f PATH /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin SERVER_SIGNATURE no value SERVER_SOFTWARE Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.7a PHP/5.0.3 SERVER_NAME canshu SERVER_ADDR 127.0.0.1 SERVER_PORT 80 REMOTE_ADDR 127.0.0.1 DOCUMENT_ROOT /mnt/web SERVER_ADMIN you@example.com SCRIPT_FILENAME /mnt/web/phpinfo.php REMOTE_PORT 37090 GATEWAY_INTERFACE CGI/1.1 SERVER_PROTOCOL HTTP/1.1 REQUEST_METHOD GET QUERY_STRING no value REQUEST_URI /phpinfo.php SCRIPT_NAME /phpinfo.php HTTP Headers Information HTTP Request Headers HTTP Request GET /phpinfo.php HTTP/1.1 Host canshu User-Agent Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041020 Firefox/0.10.1 Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language en-us,en;q=0.5 Accept-Encoding gzip,deflate Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive 300 Connection keep-alive Cookie AJSTAT_ok_pages=1; AJSTAT_ok_times=1; PHPSESSID=11853f4235b1e3ec126ae609cc35993f HTTP Response Headers X-Powered-By PHP/5.0.3 Keep-Alive timeout=5, max=81 Connection Keep-Alive Transfer-Encoding chunked Content-Type text/html ctype ctype functions enabled dom DOM/XML enabled DOM/XML API Version 20031129 libxml Version 2.6.14 HTML Support enabled XPath Support enabled XPointer Support enabled Schema Support enabled RelaxNG Support enabled gd GD Support enabled GD Version bundled (2.0.28 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.2.1 GIF Read Support enabled GIF Create Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled iconv iconv support enabled iconv implementation glibc iconv library version 2.3.3 Directive Local Value Master Value iconv.input_encoding ISO-8859-1 ISO-8859-1 iconv.internal_encoding ISO-8859-1 ISO-8859-1 iconv.output_encoding ISO-8859-1 ISO-8859-1 libxml libXML support active libXML Version 2.6.14 libXML streams enabled oci8 OCI8 Support enabled Revision $Revision: 1.257.2.5 $ Active Persistent Links 0 Active Links -20 Oracle Version 10.1 Compile-time ORACLE_HOME /opt/oracle/product/10g Libraries Used no value Temporary Lob support enabled Collections support enabled oracle Oracle Support enabled Oracle Version 10.1 Compile-time ORACLE_HOME /opt/oracle/product/10g Libraries Used no value pcre PCRE (Perl Compatible Regular Expressions) Support enabled PCRE Library Version 4.5 01-December-2003 posix Revision $Revision: 1.60 $ session Session Support enabled Registered save handlers files user sqlite Registered serializer handlers php php_binary Directive Local Value Master Value session.auto_start Off Off session.bug_compat_42 On On session.bug_compat_warn On On session.cache_expire 180 180 session.cache_limiter nocache nocache session.cookie_domain no value no value session.cookie_lifetime 0 0 session.cookie_path / / session.cookie_secure Off Off session.entropy_file no value no value session.entropy_length 0 0 session.gc_divisor 100 100 session.gc_maxlifetime 1440 1440 session.gc_probability 1 1 session.hash_bits_per_character 4 4 session.hash_function 0 0 session.name PHPSESSID PHPSESSID session.referer_check no value no value session.save_handler files files session.save_path no value no value session.serialize_handler php php session.use_cookies On On session.use_only_cookies Off Off session.use_trans_sid 0 0 SimpleXML Simplexml support enabled Revision $Revision: 1.139.2.4 $ Schema support enabled sockets Sockets Support enabled SPL SPL support enabled Interfaces RecursiveIterator, SeekableIterator Classes ArrayObject, ArrayIterator, CachingIterator, CachingRecursiveIterator, DirectoryIterator, FilterIterator, LimitIterator, ParentIterator, RecursiveDirectoryIterator, RecursiveIteratorIterator, SimpleXMLIterator SQLite SQLite support enabled PECL Module version 2.0-dev $Id: sqlite.c,v 1.146.2.3 2004/09/26 01:41:40 wez Exp $ SQLite Library 2.8.14 SQLite Encoding iso8859 Directive Local Value Master Value sqlite.assoc_case 0 0 standard Regex Library Bundled library enabled Dynamic Library Support enabled Path to sendmail /usr/sbin/sendmail -t -i Directive Local Value Master Value assert.active 1 1 assert.bail 0 0 assert.callback no value no value assert.quiet_eval 0 0 assert.warning 1 1 auto_detect_line_endings 0 0 date.default_latitude 31.7667 31.7667 date.default_longitude 35.2333 35.2333 date.sunrise_zenith 90.83 90.83 date.sunset_zenith 90.83 90.83 default_socket_timeout 60 60 safe_mode_allowed_env_vars PHP_ PHP_ safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH url_rewriter.tags a=href,area=href,frame=src,form=,fieldset= a=href,area=href,frame=src,form=,fieldset= user_agent no value no value tokenizer Tokenizer Support enabled xml XML Support active XML Namespace Support active libxml2 Version 2.6.14 zlib ZLib Support enabled Compiled Version 1.2.3 Linked Version 1.2.1.2 Directive Local Value Master Value zlib.output_compression Off Off zlib.output_compression_level -1 -1 zlib.output_handler no value no value Additional Modules Module Name Environment Variable Value SSH_AGENT_PID 28869 KDE_MULTIHEAD false HOSTNAME canshu TERM xterm SHELL /bin/bash HISTSIZE 1000 GTK2_RC_FILES /etc/gtk-2.0/gtkrc:/root/.gtkrc-2.0:/root/.kde/share/config/gtkrc GS_LIB /root/.fonts GTK_RC_FILES /etc/gtk/gtkrc:/root/.gtkrc:/root/.kde/share/config/gtkrc WINDOWID 44040199 QTDIR /usr/lib/qt-3.3 KDE_FULL_SESSION true USER root LD_LIBRARY_PATH /usr/local/apache/lib: LS_COLORS no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01r=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35: XCURSOR_SIZE no value SSH_AUTH_SOCK /tmp/ssh-xLVuE28868/agent.28868 KDEDIR /usr SESSION_MANAGER local/canshu:/tmp/.ICE-unix/28974 KONSOLE_DCOP DCOPRef(konsole-29053,konsole) PATH /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin DESKTOP_SESSION kde MAIL /var/spool/mail/root PWD /root INPUTRC /etc/inputrc KONSOLE_DCOP_SESSION DCOPRef(konsole-29053,session-1) XMODIFIERS @im=htt LANG zh_CN.UTF-8 GDMSESSION kde SSH_ASKPASS /usr/libexec/openssh/gnome-ssh-askpass SHLVL 4 HOME /root XCURSOR_THEME default LOGNAME root DBUS_SESSION_BUS_ADDRESS unix:abstract=/tmp/dbus-2JHoC8rfh4 LESSOPEN |/usr/bin/lesspipe.sh %s DISPLAY :0.0 GTK_IM_MODULE iiim G_BROKEN_FILENAMES 1 XAUTHORITY /tmp/.gdmkgKigU COLORTERM no value _ /usr/local/apache/bin/httpd ORACLE_HOME . PHP Variables Variable Value _REQUEST["AJSTAT_ok_pages"] 1 _REQUEST["AJSTAT_ok_times"] 1 _REQUEST["PHPSESSID"] 11853f4235b1e3ec126ae609cc35993f _COOKIE["AJSTAT_ok_pages"] 1 _COOKIE["AJSTAT_ok_times"] 1 _COOKIE["PHPSESSID"] 11853f4235b1e3ec126ae609cc35993f _SERVER["HTTP_HOST"] canshu _SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041020 Firefox/0.10.1 _SERVER["HTTP_ACCEPT"] text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us,en;q=0.5 _SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflate _SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-1,utf-8;q=0.7,*;q=0.7 _SERVER["HTTP_KEEP_ALIVE"] 300 _SERVER["HTTP_CONNECTION"] keep-alive _SERVER["HTTP_COOKIE"] AJSTAT_ok_pages=1; AJSTAT_ok_times=1; PHPSESSID=11853f4235b1e3ec126ae609cc35993f _SERVER["PATH"] /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin _SERVER["SERVER_SIGNATURE"] no value _SERVER["SERVER_SOFTWARE"] Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.7a PHP/5.0.3 _SERVER["SERVER_NAME"] canshu _SERVER["SERVER_ADDR"] 127.0.0.1 _SERVER["SERVER_PORT"] 80 _SERVER["REMOTE_ADDR"] 127.0.0.1 _SERVER["DOCUMENT_ROOT"] /mnt/web _SERVER["SERVER_ADMIN"] you@example.com _SERVER["SCRIPT_FILENAME"] /mnt/web/phpinfo.php _SERVER["REMOTE_PORT"] 37090 _SERVER["GATEWAY_INTERFACE"] CGI/1.1 _SERVER["SERVER_PROTOCOL"] HTTP/1.1 _SERVER["REQUEST_METHOD"] GET _SERVER["QUERY_STRING"] no value _SERVER["REQUEST_URI"] /phpinfo.php _SERVER["SCRIPT_NAME"] /phpinfo.php _SERVER["PHP_SELF"] /phpinfo.php _SERVER["argv"] Array ( ) _SERVER["argc"] 0 _ENV["SSH_AGENT_PID"] 28869 _ENV["KDE_MULTIHEAD"] false _ENV["HOSTNAME"] canshu _ENV["TERM"] xterm _ENV["SHELL"] /bin/bash _ENV["HISTSIZE"] 1000 _ENV["GTK2_RC_FILES"] /etc/gtk-2.0/gtkrc:/root/.gtkrc-2.0:/root/.kde/share/config/gtkrc _ENV["GS_LIB"] /root/.fonts _ENV["GTK_RC_FILES"] /etc/gtk/gtkrc:/root/.gtkrc:/root/.kde/share/config/gtkrc _ENV["WINDOWID"] 44040199 _ENV["QTDIR"] /usr/lib/qt-3.3 _ENV["KDE_FULL_SESSION"] true _ENV["USER"] root _ENV["LD_LIBRARY_PATH"] /usr/local/apache/lib: _ENV["LS_COLORS"] no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01r=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35: _ENV["XCURSOR_SIZE"] no value _ENV["SSH_AUTH_SOCK"] /tmp/ssh-xLVuE28868/agent.28868 _ENV["KDEDIR"] /usr _ENV["SESSION_MANAGER"] local/canshu:/tmp/.ICE-unix/28974 _ENV["KONSOLE_DCOP"] DCOPRef(konsole-29053,konsole) _ENV["PATH"] /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin _ENV["DESKTOP_SESSION"] kde _ENV["MAIL"] /var/spool/mail/root _ENV["PWD"] /root _ENV["INPUTRC"] /etc/inputrc _ENV["KONSOLE_DCOP_SESSION"] DCOPRef(konsole-29053,session-1) _ENV["XMODIFIERS"] @im=htt _ENV["LANG"] zh_CN.UTF-8 _ENV["GDMSESSION"] kde _ENV["SSH_ASKPASS"] /usr/libexec/openssh/gnome-ssh-askpass _ENV["SHLVL"] 4 _ENV["HOME"] /root _ENV["XCURSOR_THEME"] default _ENV["LOGNAME"] root _ENV["DBUS_SESSION_BUS_ADDRESS"] unix:abstract=/tmp/dbus-2JHoC8rfh4 _ENV["LESSOPEN"] |/usr/bin/lesspipe.sh %s _ENV["DISPLAY"] :0.0 _ENV["GTK_IM_MODULE"] iiim _ENV["G_BROKEN_FILENAMES"] 1 _ENV["XAUTHORITY"] /tmp/.gdmkgKigU _ENV["COLORTERM"] no value _ENV["_"] /usr/local/apache/bin/httpd _ENV["ORACLE_HOME"] . PHP License This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net. |