Enrique,
1. Are you running MySQL and have you tested it at the console?
2. You do not have MySQL support compiled into PHP.
See the last line of "Configure Command" where it says '--without-mysql'.
You will have to recompile PHP with MySQL support.
If you hae installed Apache, MySQL and PHP using RPM's I'd strongly
recommend you obtain the source files and compiles from source. There is an
excellent tutorial on this called LAMP(For Linux Apache MySQL and PHP). If
you search Google for a string like "LAMP MySQL Apache" or
"Soothingly Seamless Install" you will get two excellent tutorials.
Good luck - Miles Thompson
At 04:00 PM 5/16/01 +0200, Enrique Ivorra Gómez wrote:
>I sent you my phpinfo().
>
>I dont put on INTERNET becouse it's on a Intranet.
>
>
>
>System Linux porky.devel.redhat.com 2.2.5-22smp #1 SMP Wed Jun 2 09:11:51
>EDT 1999 i686 unknown
>Build Date Aug 23 2000
>Configure Command './configure' '--target=i386-redhat-linux' '--prefix=/usr'
>'--with-config-file-path=/etc' '--disable-debug' '--enable-pic'
>'--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs'
>'--disable-static' '--with-exec-dir=/usr/bin' '--with-regex=system'
>'--with-gettext' '--with-gd' '--with-jpeg-dir=/usr' '--with-png'
>'--with-zlib' '--with-db2' '--with-db3' '--with-gdbm' '--enable-debugger'
>'--enable-magic-quotes' '--enable-safe-mode' '--enable-sysvsem'
>'--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-ftp'
>'--without-mysql' '--with-xml'
>Server API Apache
>Virtual Directory Support disabled
>Configuration File (php.ini) Path /etc
>ZEND_DEBUG disabled
>Thread Safety disabled
>
> This program makes use of the Zend scripting language engine:
>Zend Engine v1.0.1, Copyright (c) 1998-2000 Zend Technologies
>
>
>
>
>----------------------------------------------------------------------------
>----
>
>PHP 4.0 Credits
>
>----------------------------------------------------------------------------
>----
>
>Configuration
>PHP Core
>Directive Local Value Master Value
>allow_call_time_pass_reference
> On On
>arg_separator
> & &
>asp_tags
> Off Off
>auto_append_file
> no value no value
>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_functions
> no value no value
>display_errors
> On On
>doc_root
> no value no value
>enable_dl
> On On
>error_append_string
> Off Off
>error_log
> no value no value
>error_prepend_string
> Off Off
>error_reporting
> 2039 2039
>expose_php
> On On
>extension_dir
> /usr/lib/php4 /usr/lib/php4
>gpc_order
> GPC GPC
>highlight.bg
> #FFFFFF #FFFFFF
>highlight.comment
> #FF8000 #FF8000
>highlight.default
> #0000BB #0000BB
>highlight.html
> #000000 #000000
>highlight.keyword
> #007700 #007700
>highlight.string
> #DD0000 #DD0000
>ignore_user_abort
> Off Off
>implicit_flush
> Off Off
>include_path
> .:/usr/share/php .:/usr/share/php
>log_errors
> Off Off
>magic_quotes_gpc
> On On
>magic_quotes_runtime
> Off Off
>magic_quotes_sybase
> Off Off
>max_execution_time
> 30 30
>open_basedir
> no value no value
>output_buffering
> Off Off
>precision
> 14 14
>register_argc_argv
> On On
>register_globals
> On On
>safe_mode
> Off Off
>safe_mode_exec_dir
> no value no value
>sendmail_from
> [EMAIL PROTECTED] [EMAIL PROTECTED]
>sendmail_path
> /usr/sbin/sendmail -t /usr/sbin/sendmail -t
>short_open_tag
> On On
>SMTP
> localhost localhost
>sql.safe_mode
> Off Off
>track_errors
> Off Off
>track_vars
> On On
>upload_max_filesize
> 2097152 2097152
>upload_tmp_dir
> no value no value
>user_dir
> no value no value
>variables_order
> EGPCS EGPCS
>y2k_compliance
> Off Off
>
>
>imap
>IMAP Support enabled
>IMAP c-Client Version 4.1
>
>
>ldap
>LDAP Support enabled
>RCS Version $Id: ldap.c,v 1.46 2000/06/27 09:28:05 thies Exp $
>Total Links 0/unlimited
>
>
>pgsql
>PostgreSQL Support enabled
>Active Persistent Links 0
>Active Links 0
>
>Directive Local Value Master Value
>pgsql.allow_persistent
> On On
>pgsql.max_links
> Unlimited Unlimited
>pgsql.max_persistent
> Unlimited Unlimited
>
>
>gd
>GD Support enabled
>GD Version 1.6.2 or higher
>FreeType Support enabled
>FreeType Linkage with TTF library
>PNG Support enabled
>JPG Support enabled
>
>
>zlib
>ZLib Support enabled
>Compiled Version 1.1.3
>Linked Version 1.1.3
>
>
>yp
>YP Support enabled
>
>
>xml
>XML Support active
>
>
>standard
>Regex Library System library enabled
>Dynamic Library Support enabled
>Path to sendmail /usr/sbin/sendmail -t
>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
>safe_mode_allowed_env_vars
> PHP_ PHP_
>safe_mode_protected_env_vars
> LD_LIBRARY_PATH LD_LIBRARY_PATH
>
>
>
>session
>Session Support enabled
>
>Directive Local Value Master Value
>session.auto_start
> Off Off
>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.entropy_file
> no value no value
>session.entropy_length
> 0 0
>session.gc_maxlifetime
> 1440 1440
>session.gc_probability
> 1 1
>session.name
> PHPSESSID PHPSESSID
>session.referer_check
> no value no value
>session.save_handler
> files files
>session.save_path
> /tmp /tmp
>session.serialize_handler
> php php
>session.use_cookies
> On On
>
>
>posix
>Revision $Revision: 1.17 $
>
>
>pcre
>PCRE (Perl Compatible Regular Expressions) Support enabled
>PCRE Library Version 3.1 09-Feb-2000
>
>
>gettext
>GNU GetText Support enabled
>
>
>dba
>V1 ($Id: dba.c,v 1.19 2000/06/27 22:25:27 jah Exp $) gdbm db2 db3
>
>
>db
>This is GDBM version 1.8.0, as of May 19, 1999.
>
>
>apache
>APACHE_INCLUDE
>APACHE_TARGET
>Apache Version Apache/1.3.12
>Apache Release 10312100
>Apache API Version 19990320
>Hostname:Port localhost.localdomain:80
>User/Group apache(48)/48
>Max Requests Per Child: 100
>Keep Alive: on
>Max Per Connection: 100
>Timeouts Connection: 300
>Keep-Alive: 15
>Server Root /etc/httpd
>Loaded Modules mod_ssl, mod_dav, mod_php4, mod_perl, mod_setenvif, mod_so,
>mod_headers, mod_expires, mod_auth_db, mod_auth_anon, mod_auth, mod_access,
>mod_rewrite, mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis,
>mod_cgi, mod_dir, mod_autoindex, mod_include, mod_info, mod_status,
>mod_negotiation, mod_mime, mod_log_referer, mod_log_agent, mod_log_config,
>mod_env, mod_vhost_alias, http_core
>
>
>Apache Environment
>Variable Value
>DOCUMENT_ROOT /home/httpd/html/
>HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
>application/msword, application/vnd.ms-powerpoint, application/vnd.ms-excel,
>*/*
>HTTP_ACCEPT_ENCODING gzip, deflate
>HTTP_ACCEPT_LANGUAGE es
>HTTP_CONNECTION Keep-Alive
>HTTP_HOST 192.168.70.2
>HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
>PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
>REDIRECT_STATUS 200
>REDIRECT_URL /
>REMOTE_ADDR 192.168.70.245
>REMOTE_PORT 1870
>SCRIPT_FILENAME /home/httpd/html/index.php
>SERVER_ADDR 192.168.70.2
>SERVER_ADMIN [EMAIL PROTECTED]
>SERVER_NAME localhost.localdomain
>SERVER_PORT 80
>SERVER_SIGNATURE Apache/1.3.12 Server at localhost.localdomain Port 80
>SERVER_SOFTWARE Apache/1.3.12 (Unix) (Red Hat/Linux) mod_ssl/2.6.6
>OpenSSL/0.9.5a DAV/1.0.1 PHP/4.0.1pl2 mod_perl/1.24
>GATEWAY_INTERFACE CGI/1.1
>SERVER_PROTOCOL HTTP/1.1
>REQUEST_METHOD GET
>QUERY_STRING
>REQUEST_URI /
>SCRIPT_NAME /index.php
>
>
>HTTP Headers Information
>HTTP Request Headers
>HTTP Request GET / HTTP/1.1
>Accept image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
>application/msword, application/vnd.ms-powerpoint, application/vnd.ms-excel,
>*/*
>Accept-Encoding gzip, deflate
>Accept-Language es
>Connection Keep-Alive
>Host 192.168.70.2
>User-Agent Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
>HTTP Response Headers
>X-Powered-By PHP/4.0.1pl2
>Keep-Alive timeout=15, max=100
>Connection Keep-Alive
>Transfer-Encoding chunked
>Content-Type text/html
>
>
>Additional Modules
>sysvshm
>sysvsem
>ftp
>
>
>Environment
>Variable Value
>PWD /
>BOOT_FILE /boot/vmlinuz-2.2.16-22
>HOSTNAME localhost.localdomain
>CONSOLE /dev/console
>PREVLEVEL N
>AUTOBOOT YES
>runlevel 3
>MACHTYPE i386-redhat-linux-gnu
>SHLVL 2
>previous N
>BOOT_IMAGE linux
>SHELL /bin/bash
>HOSTTYPE i386
>OSTYPE linux-gnu
>HOME /
>TERM linux
>PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
>RUNLEVEL 3
>INIT_VERSION sysvinit-2.78
>_ /bin/nice
>
>
>PHP Variables
>Variable Value
>PHP_SELF /index.php
>HTTP_SERVER_VARS["PATH_TRANSLATED"] /home/httpd/html/index.php
>HTTP_SERVER_VARS["PHP_SELF"] /index.php
>HTTP_SERVER_VARS["argv"] Array
>(
>)
>
>
>HTTP_SERVER_VARS["argc"] 0
>HTTP_ENV_VARS["PWD"] /
>HTTP_ENV_VARS["BOOT_FILE"] /boot/vmlinuz-2.2.16-22
>HTTP_ENV_VARS["HOSTNAME"] localhost.localdomain
>HTTP_ENV_VARS["CONSOLE"] /dev/console
>HTTP_ENV_VARS["PREVLEVEL"] N
>HTTP_ENV_VARS["AUTOBOOT"] YES
>HTTP_ENV_VARS["runlevel"] 3
>HTTP_ENV_VARS["MACHTYPE"] i386-redhat-linux-gnu
>HTTP_ENV_VARS["SHLVL"] 2
>HTTP_ENV_VARS["previous"] N
>HTTP_ENV_VARS["BOOT_IMAGE"] linux
>HTTP_ENV_VARS["SHELL"] /bin/bash
>HTTP_ENV_VARS["HOSTTYPE"] i386
>HTTP_ENV_VARS["OSTYPE"] linux-gnu
>HTTP_ENV_VARS["HOME"] /
>HTTP_ENV_VARS["TERM"] linux
>HTTP_ENV_VARS["PATH"] /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
>HTTP_ENV_VARS["RUNLEVEL"] 3
>HTTP_ENV_VARS["INIT_VERSION"] sysvinit-2.78
>HTTP_ENV_VARS["_"] /bin/nice
>
>
>TX!
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]