Fatal error when installing on SUSE 9.2

Fatal error when installing on SUSE 9.2

by Nick Sanders -
Number of replies: 6
When I try to install moodle on SUSE 9.2 with apache2, php and mysql I get the following error:
Fatal error
: Call to undefined function: session_name() in /srv/www/htdocs/moodle/install.php on line 29

Everything seems to be operating fine so I am at a loss to know what is wrong.
I am trying to install version 1.5.
Average of ratings: -
In reply to Nick Sanders

Re: Fatal error when installing on SUSE 9.2

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Are you using the PHP that came with SuSE or did you 'roll your own'? The implication is that session support is not compiled in. However, I am using 9.2 for a PHP project and I know session_name() is definitely supported.
In reply to Howard Miller

Re: Fatal error when installing on SUSE 9.2

by Nick Sanders -

Hi,
I am using the version from the Novell-SuSE ftp site.

thanks

In reply to Nick Sanders

Re: Fatal error when installing on SUSE 9.2

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Need to see your phpinfo(); output.
In reply to Howard Miller

Re: Fatal error when installing on SUSE 9.2

by Nick Sanders -
Hi,
Hear is the output from info.php.
Hope you can decifer it ok.
thanks



PHP Version 4.3.8






System
Linux moodle 2.6.8-24.16-default #1 Thu Jun 2 12:09:57 UTC 2005 i686


Build Date
Apr 22 2005 12:38:33


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




This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, 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_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/php/extensions
/usr/lib/php/extensions


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


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


register_argc_argv
On
On


register_globals
Off
Off


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




apache2handler



Apache Version
Apache/2.0.50 (Linux/SUSE)


Apache API Version
20020903


Server Administrator
[no address given]


Hostname:Port
moodle.cheltenham-sc.edu.vic.gov.au:0


User/Group
wwwrun(30)/8


Max Requests
Per Child: 0 - Keep Alive: on - Max Per Connection: 100


Timeouts
Connection: 300 - Keep-Alive: 15


Virtual Server
No


Server Root
/srv/www


Loaded Modules
core prefork http_core mod_so mod_access mod_actions mod_alias mod_auth mod_auth_dbm mod_autoindex mod_cgi mod_dir mod_env mod_expires mod_include mod_log_config mod_mime mod_negotiation mod_setenvif mod_ssl mod_suexec mod_userdir sapi_apache2




Directive
Local Value
Master Value


engine
1
1


last_modified
0
0


xbithack
0
0




Apache Environment



Variable
Value


HTTP_CONNECTION
Keep-Alive


HTTP_USER_AGENT
Mozilla/5.0 (compatible; Konqueror/3.3; Linux) (KHTML, like Gecko)


HTTP_ACCEPT
text/html, image/jpeg, image/png, text/*, image/*, */*


HTTP_ACCEPT_ENCODING
x-gzip, x-deflate, gzip, deflate


HTTP_ACCEPT_CHARSET
utf-8, utf-8;q=0.5, *;q=0.5


HTTP_ACCEPT_LANGUAGE
en


HTTP_HOST
localhost


PATH
/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin


SERVER_SIGNATURE
Apache/2.0.50 (Linux/SUSE) Server at localhost Port 80



SERVER_SOFTWARE
Apache/2.0.50 (Linux/SUSE)


SERVER_NAME
localhost


SERVER_ADDR
127.0.0.1


SERVER_PORT
80


REMOTE_ADDR
127.0.0.1


DOCUMENT_ROOT
/srv/www/htdocs


SERVER_ADMIN
[no address given]


SCRIPT_FILENAME
/srv/www/htdocs/info.php


REMOTE_PORT
1049


GATEWAY_INTERFACE
CGI/1.1


SERVER_PROTOCOL
HTTP/1.1


REQUEST_METHOD
GET


QUERY_STRING
no value


REQUEST_URI
/info.php


SCRIPT_NAME
/info.php




HTTP Headers Information



HTTP Request Headers


HTTP Request
GET /info.php HTTP/1.1


Connection
Keep-Alive


User-Agent
Mozilla/5.0 (compatible; Konqueror/3.3; Linux) (KHTML, like Gecko)


Accept
text/html, image/jpeg, image/png, text/*, image/*, */*


Accept-Encoding
x-gzip, x-deflate, gzip, deflate


Accept-Charset
utf-8, utf-8;q=0.5, *;q=0.5


Accept-Language
en


Host
localhost


HTTP Response Headers


X-Powered-By
PHP/4.3.8


Keep-Alive
timeout=15, max=99


Connection
Keep-Alive


Transfer-Encoding
chunked


Content-Type
text/html; charset=ISO-8859-1




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.12.0 OpenSSL/0.9.7d ipv6 zlib/1.2.1




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




domxml



DOM/XML
enabled


DOM/XML API Version
20020815


libxml Version
20612


HTML Support
enabled


XPath Support
enabled


XPointer Support
enabled




exif



EXIF Support
enabled


EXIF Version
1.4 $Id: exif.c,v 1.118.2.27 2003/12/17 09:08:37 helly Exp $


Supported EXIF Version
0220


Supported filetypes
JPEG,TIFF




ftp



FTP support
enabled




gd



GD Support
enabled


GD Version
2.0 or higher


FreeType Support
enabled


FreeType Linkage
with freetype


T1Lib Support
enabled


GIF Read Support
enabled


GIF Create Support
enabled


JPG Support
enabled


PNG Support
enabled


WBMP Support
enabled




gettext



GetText Support
enabled




gmp



gmp 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




ldap



LDAP Support
enabled


RCS Version
$Id: ldap.c,v 1.130.2.10 2004/06/01 21:05:33 iliaa Exp $


Total Links
0/unlimited


API Version
3001


Vendor Name
OpenLDAP


Vendor Version
20215




mbstring



Multibyte Support
enabled


Japanese support
enabled


Simplified chinese support
enabled


Traditional chinese support
enabled


Korean support
enabled


Russian 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
UTF-8
UTF-8


mbstring.language
neutral
neutral


mbstring.substitute_character
no value
no value




mcal



MCAL Support
enabled


MCAL Version
0.6 - 20000121




mcrypt



mcrypt support
enabled


version
>= 2.4.x


Supported ciphers
cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes


Supported modes
cbc cfb ctr ecb ncfb nofb ofb stream




Directive
Local Value
Master Value


mcrypt.algorithms_dir
no value
no value


mcrypt.modes_dir
no value
no value




mhash



MHASH support
Enabled


MHASH API Version
20020524




mime_magic



mime_magic support
enabled




Directive
Local Value
Master Value


mime_magic.magicfile
/usr/share/misc/magic.mime
/usr/share/misc/magic.mime




mysql



MySQL Support
enabled


Active Persistent Links
0


Active Links
0


Client API version
4.0.21


MYSQL_MODULE_TYPE
none


MYSQL_SOCKET
/var/lib/mysql/mysql.sock


MYSQL_INCLUDE
no value


MYSQL_LIBS
no value




Directive
Local Value
Master Value


mysql.allow_persistent
Off
Off


mysql.connect_timeout
60
60


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.7d 17 Mar 2004




overload



User-Space Object Overloading Support
enabled




pcre



PCRE (Perl Compatible Regular Expressions) Support
enabled


PCRE Library Version
4.5 01-December-2003




pgsql



PostgreSQL Support
enabled


PostgreSQL(libpq) Version
7.4.6


Multibyte character support
enabled


SSL support
enabled


Active Persistent Links
0


Active Links
0




Directive
Local Value
Master Value


pgsql.allow_persistent
Off
Off


pgsql.auto_reset_persistent
Off
Off


pgsql.ignore_notice
Off
Off


pgsql.log_notice
Off
Off


pgsql.max_links
Unlimited
Unlimited


pgsql.max_persistent
Unlimited
Unlimited




posix



Revision
$Revision: 1.51.2.2 $




qtdom



qtdom 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




xml



XML Support
active


XML Namespace Support
active


EXPAT Version
1.95.6




zlib



ZLib Support
enabled


Compiled Version
1.2.1


Linked Version
1.2.1




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


dbase


filepro




Environment



Variable
Value


CONSOLE
/dev/console


TERM
linux


SHELL
/bin/sh


get_module_list_done
true


INIT_VERSION
sysvinit-2.85


REDIRECT
/dev/tty1


COLUMNS
158


get_includes_done
true


PATH
/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin


vga
0x31a


RUNLEVEL
5


PWD
/


SPLASHCFG
/etc/bootsplash/themes/SuSE/config/bootsplash-1280x1024.cfg


PREVLEVEL
N


LINES
57


HOME
/


SHLVL
2


splash
silent


SPLASH
yes


_
/sbin/startproc


DAEMON
/usr/sbin/httpd2-prefork




PHP Variables



Variable
Value


_SERVER["HTTP_CONNECTION"]
Keep-Alive


_SERVER["HTTP_USER_AGENT"]
Mozilla/5.0 (compatible; Konqueror/3.3; Linux) (KHTML, like Gecko)


_SERVER["HTTP_ACCEPT"]
text/html, image/jpeg, image/png, text/*, image/*, */*


_SERVER["HTTP_ACCEPT_ENCODING"]
x-gzip, x-deflate, gzip, deflate


_SERVER["HTTP_ACCEPT_CHARSET"]
utf-8, utf-8;q=0.5, *;q=0.5


_SERVER["HTTP_ACCEPT_LANGUAGE"]
en


_SERVER["HTTP_HOST"]
localhost


_SERVER["PATH"]
/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin


_SERVER["SERVER_SIGNATURE"]
Apache/2.0.50 (Linux/SUSE) Server at localhost Port 80



_SERVER["SERVER_SOFTWARE"]
Apache/2.0.50 (Linux/SUSE)


_SERVER["SERVER_NAME"]
localhost


_SERVER["SERVER_ADDR"]
127.0.0.1


_SERVER["SERVER_PORT"]
80


_SERVER["REMOTE_ADDR"]
127.0.0.1


_SERVER["DOCUMENT_ROOT"]
/srv/www/htdocs


_SERVER["SERVER_ADMIN"]
[no address given]


_SERVER["SCRIPT_FILENAME"]
/srv/www/htdocs/info.php


_SERVER["REMOTE_PORT"]
1049


_SERVER["GATEWAY_INTERFACE"]
CGI/1.1


_SERVER["SERVER_PROTOCOL"]
HTTP/1.1


_SERVER["REQUEST_METHOD"]
GET


_SERVER["QUERY_STRING"]
no value


_SERVER["REQUEST_URI"]
/info.php


_SERVER["SCRIPT_NAME"]
/info.php


_SERVER["PHP_SELF"]
/info.php


_SERVER["PATH_TRANSLATED"]
/srv/www/htdocs/info.php


_SERVER["argv"]
Array
(
)



_SERVER["argc"]
0


_ENV["CONSOLE"]
/dev/console


_ENV["TERM"]
linux


_ENV["SHELL"]
/bin/sh


_ENV["get_module_list_done"]
true


_ENV["INIT_VERSION"]
sysvinit-2.85


_ENV["REDIRECT"]
/dev/tty1


_ENV["COLUMNS"]
158


_ENV["get_includes_done"]
true


_ENV["PATH"]
/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin


_ENV["vga"]
0x31a


_ENV["RUNLEVEL"]
5


_ENV["PWD"]
/


_ENV["SPLASHCFG"]
/etc/bootsplash/themes/SuSE/config/bootsplash-1280x1024.cfg


_ENV["PREVLEVEL"]
N


_ENV["LINES"]
57


_ENV["HOME"]
/


_ENV["SHLVL"]
2


_ENV["splash"]
silent


_ENV["SPLASH"]
yes


_ENV["_"]
/sbin/startproc


_ENV["DAEMON"]
/usr/sbin/httpd2-prefork




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.



In reply to Nick Sanders

Re: Fatal error when installing on SUSE 9.2

by Philip Hermsmeyer -

Hi Nick,

I hit this very same wall yesterday installing Moodle 1.5 on SuSE Linux Enterprise Server (SLES) version 9.0.   php4_session support is not apparently included automatically.  Here's the link I found:

http://lists.suse.com/archive/suse-linux-e/2005-Apr/1867.html

I went into YaST and added php4_session and all worked perfectly!

Phil Hermsmeyer
San Diego, CA
In reply to Philip Hermsmeyer

Re: Fatal error when installing on SUSE 9.2

by Nick Sanders -
Thanks Phil,
That fixed it but the application that I found to install was php4-session. Now I am having another problem with pathnames but that is another story.