I meant just putting in some echo statements, e.g.
echo "checkpoint 1 reached<br>\n"; .... .. serweb code ... .... echo "checkpoint 2 reached<br>\n"; .... .. serweb code ... .... echo "checkpoint 3 reached<br>\n"; .... .. serweb code ... ....
this way, you will see which parts of the php script are processed and this can lead you to the error.
regards, klaus
gaillac harry wrote:
I don't know php language how to get debug function ??? Le ven 19/03/2004 à 10:54, Klaus Darilion a écrit :
Your php configuration looks fine. I suggest you put some debug output into the php script to analyze why the login fails.
klaus
gaillac harry wrote:
Here is the test however I 'don't know what is wrong an what to do !! Best Regards Harry Le jeu 18/03/2004 à 18:34, Klaus Darilion a écrit :
make a file "test.php" with the following content:
<?php phpinfo(); ?>
put this file into the root directory of your html server and request it in your browser:
This file will give you a lot of debug info of your configuration!
regards, Klaus
PS: cc to the list
gaillac harry wrote:
I need more help to verify configuration !! many thanks Harry Le jeu 18/03/2004 à 16:00, Klaus Darilion a écrit :
You can use
<?php phpinfo(); ?>
to verify the configuration. I had a problem with short_open_tag and multiple php.ini files.
Klaus
gaillac harry wrote:
>Hello > >I have successfully installed and configured Serweb but cannot login to >the web site. I enter admin / heslo and the web page just refreshes. I >am not logged in. Can some one point me in the right direction? I am >completely stumped. >"register_globals=On" and "short_open_tag=On" in /etc/php,ini > >My configuration: > >Redhat Taroon updated > >ser-0.8.12-0 >sems-0.1.1-0 >php-4.3.2-7.ent >mysql-3.23.56-1.9 >mysql-server3.23.56-1.9 >php-mysql-4.3.2-7 >httpd-2.0.46-26.ent >serweb_2004-01-04.tar.gz > >Best regards > >Harry > >_______________________________________________ >Serusers mailing list >serusers@lists.iptel.org >http://lists.iptel.org/mailman/listinfo/serusers > >
PHP Version 4.3.2
System Linux serveur1.example.com 2.4.21-6.EL #1 Sat Feb 21 20:53:43 CET 2004 i686 Build Date Jul 8 2003 08:59:20 Configure Command './configure' '--host=i386-redhat-linux' '--build=i386-redhat-linux' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-pcre=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--without-oci8' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--with-apxs2filter=/usr/sbin/apxs' Server API Apache 2.0 Filter Virtual Directory Support disabled Configuration File (php.ini) Path /etc/php.ini Scan this dir for additional .ini files /etc/php.d additional .ini files parsed /etc/php.d/mysql.ini PHP API 20020918 PHP Extension 20020429 Zend Extension 20021010 Debug Build no Thread Safety disabled Registered PHP Streams php, http, ftp, https, ftps, compress.bzip2, compress.zlib
http://www.zend.com/ This program makes use of the Zend Scripting Language Engine: Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
PHP Credits http://serweb.example.com/test.php?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000
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_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 2039 2039 expose_php On On extension_dir /usr/lib/php4 /usr/lib/php4 file_uploads On On 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 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/share/pear .:/usr/share/pear 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 max_execution_time 30 30 max_input_time 60 60 memory_limit 8M 8M open_basedir /no value/ /no value/ output_buffering /no value/ /no value/ output_handler /no value/ /no value/ post_max_size 8M 8M precision 14 14 register_argc_argv On On register_globals On On report_memleaks On On safe_mode Off Off safe_mode_exec_dir /no value/ /no value/ safe_mode_gid Off Off safe_mode_include_dir /no value/ /no value/ sendmail_from me@localhost.com me@localhost.com 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
apache2filter
bcmath
BCMath support enabled
bz2
BZip2 Support Enabled BZip2 Version 1.0.2, 30-Dec-2001
calendar
Calendar support enabled
ctype
ctype functions enabled
curl
CURL support enabled CURL Information libcurl 7.9.8 (OpenSSL 0.9.7a) (ipv6 enabled)
dba
DBA support enabled Supported handlers gdbm cdb cdb_make db4 flatfile
dbx
dbx support enabled dbx version 1.0.0 supported databases MySQL ODBC PostgreSQL Microsoft SQL Server FrontBase Oracle 8 (oci8) Sybase-CT
Directive Local Value Master Value dbx.colnames_case unchanged unchanged
dio
dio support enabled
domxml
DOM/XML enabled DOM/XML API Version 20020815 libxml Version 20510 HTML Support enabled XPath Support enabled XPointer Support enabled
exif
EXIF Support enabled EXIF Version 1.4 $Id: exif.c,v 1.118.2.19 2003/04/16 18:25:35 helly Exp $ Supported EXIF Version 0220 Supported filetypes JPEG,TIFF
ftp
FTP support enabled
gd
GD Support enabled GD Version bundled (2.0.12 compatible) FreeType Support enabled FreeType Linkage with freetype GIF Read Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled
gettext
GetText Support enabled
gmp
gmp support enabled
iconv
iconv support enabled iconv implementation glibc iconv library version 2.3.2
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
mbstring
Multibyte Support enabled Japanese support enabled Multibyte (japanese) regex support enabled
mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.
Directive Local Value Master Value mbstring.detect_order /no value/ /no value/ mbstring.encoding_translation Off Off mbstring.func_overload 0 0 mbstring.http_input pass pass mbstring.http_output pass pass mbstring.internal_encoding none none mbstring.language neutral neutral mbstring.substitute_character /no value/ /no value/
mysql
MySQL Support enabled Active Persistent Links 0 Active Links 0 Client API version 3.23.56 MYSQL_MODULE_TYPE external MYSQL_SOCKET /var/lib/mysql/mysql.sock MYSQL_INCLUDE -I/usr/include/mysql MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient
Directive Local Value Master Value mysql.allow_persistent On On mysql.connect_timeout -1 -1 mysql.default_host /no value/ /no value/ mysql.default_password /no value/ /no value/ mysql.default_port /no value/ /no value/ mysql.default_socket /no value/ /no value/ mysql.default_user /no value/ /no value/ mysql.max_links Unlimited Unlimited mysql.max_persistent Unlimited Unlimited mysql.trace_mode Off Off
openssl
OpenSSL support enabled OpenSSL Version OpenSSL 0.9.7a Feb 19 2003
overload
User-Space Object Overloading Support enabled
pcre
PCRE (Perl Compatible Regular Expressions) Support enabled PCRE Library Version 3.92 11-Sep-2002
posix
Revision $Revision: 1.51.2.2 $
pspell
PSpell Support enabled
session
Session Support enabled Registered save handlers files user
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.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 session.use_only_cookies Off Off session.use_trans_sid Off Off
shmop
shmop support enabled
sockets
Sockets Support enabled
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 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,input=src,form=,fieldset= a=href,area=href,frame=src,input=src,form=,fieldset= user_agent /no value/ /no value/
tokenizer
Tokenizer Support enabled
wddx
WDDX Support enabled WDDX Session Serializer enabled
xml
XML Support active XML Namespace Support active EXPAT Version expat_1.95.5
yp
YP Support enabled
zlib
ZLib Support enabled Compiled Version 1.1.4 Linked Version 1.1.4
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 sysvsem sysvshm
Environment
Variable Value CONSOLE /dev/console TERM linux INIT_VERSION sysvinit-2.85 PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin RUNLEVEL 5 runlevel 5 PWD / LANG fr_FR.UTF-8 PREVLEVEL N previous N SHLVL 2 _ /sbin/initlog
PHP Variables
Variable Value PHP_SELF /test.php _SERVER["UNIQUE_ID"] RGobn8CoAAEAAAQ1e2gAAAAB _SERVER["HTTP_HOST"] serweb.example.com _SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030819 _SERVER["HTTP_ACCEPT"] text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1 _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["PATH"] /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin _SERVER["SERVER_SIGNATURE"] <address>Apache/2.0.46 (Red Hat) Server at serweb.example.com Port 80</address> _SERVER["SERVER_SOFTWARE"] Apache/2.0.46 (Red Hat) _SERVER["SERVER_NAME"] serweb.example.com _SERVER["SERVER_ADDR"] 192.168.0.1 _SERVER["SERVER_PORT"] 80 _SERVER["REMOTE_ADDR"] 192.168.0.1 _SERVER["DOCUMENT_ROOT"] /var/www/virtual/02/html/ _SERVER["SERVER_ADMIN"] root@example.com _SERVER["SCRIPT_FILENAME"] /var/www/virtual/02/html/test.php _SERVER["REMOTE_PORT"] 32804 _SERVER["GATEWAY_INTERFACE"] CGI/1.1 _SERVER["SERVER_PROTOCOL"] HTTP/1.1 _SERVER["REQUEST_METHOD"] GET _SERVER["QUERY_STRING"] /no value/ _SERVER["REQUEST_URI"] /test.php _SERVER["SCRIPT_NAME"] /test.php _SERVER["PHP_SELF"] /test.php _SERVER["PATH_TRANSLATED"] /var/www/virtual/02/html/test.php _SERVER["argv"]
Array ( )
_SERVER["argc"] 0 _ENV["CONSOLE"] /dev/console _ENV["TERM"] linux _ENV["INIT_VERSION"] sysvinit-2.85 _ENV["PATH"] /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin _ENV["RUNLEVEL"] 5 _ENV["runlevel"] 5 _ENV["PWD"] / _ENV["LANG"] fr_FR.UTF-8 _ENV["PREVLEVEL"] N _ENV["previous"] N _ENV["SHLVL"] 2 _ENV["_"] /sbin/initlog
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.