PDA

View Full Version : white screen & installation problem


polgard
21-09-04, 04:58 AM
I have installed once already on another PC with no problem, and followed the same procedure on a second machine. This time I get the white screen, and if I remove the lines in config.php:

error_reporting( E_ALL );

I get this error message:
Fatal error: Call to undefined function: session_name() in /srv/www/htdocs/dotproject/index.php on line 52

-this line is:
session_name( 'dotproject' );


I have tried the things suggested in other posts, like checking config settings, permissions, and as far as I can see I have set up everything correctly.

The check.php also reports everything correctly.

Does anyone have any ideas?

ajdonnison
21-09-04, 07:46 AM
If session_name is not defined then you don't have session handling compiled into your PHP version. Session handling is available by default since PHP 4.0, and you would have had to compile with --disable-sessions to drop it out. If you don't have session handling, dotProject is not going to work.

Try using the dotproject/docs/phpinfo.php file and check the output for session handling.

polgard
21-09-04, 07:52 PM
I can see in the output of dotproject/docs/phpinfo.php '--disable-session'
I am not sure what this means.
phpMyAdmin works OK
Does this help to identify the problem?


PHP Version 4.3.4
System Linux peck 2.6.4-52-default #1 Wed Apr 7 02:08:30 UTC 2004 i686
Build Date Apr 5 2004 00:09:36

Configure Command
'./configure' '--prefix=/usr' '--datadir=/usr/share/php' '--mandir=/usr/share/man' '--bindir=/usr/bin' '--libdir=/usr/share' '--includedir=/usr/include' '--sysconfdir=/etc' '--with-_lib=lib' '--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin' '--disable-debug' '--enable-inline-optimization' '--enable-memory-limit' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sigchild' '--disable-ctype' '--disable-session' '--without-mysql' '--disable-cli' '--without-pear' '--with-openssl' '--with-apxs2=/usr/sbin/apxs2-prefork' 'i586-suse-linux'

Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php.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.zlib, compress.bzip2



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
......

boogieman
05-10-05, 07:35 PM
Hello
I've found my php is installed by rpm and its configuration has '--disable-session' prefix

how should I do to reconfig php?

Thanks for your help~