PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : PHP4 mod kennt keine Session befehle



linuxnoob:-)
20.10.04, 19:20
Hallo
Ich habe mal versucht meinen Server (Webserver,FTP,usw.) auf Suse Linux 9.1 aufzubauen. Als Webserver nutze ich Apache2 2.0.49 mit Apache Mod PHP4 4.3.4 (beide als Installationspakete bei Suse). PHP Funktioniert eigentlich recht gut, Gästebuch, Formmailer, Counter läuft. Auf meiner Homepage habe ich jedoch mit phpSecurePages version 0.28 beta einen geschützten Admin-Bereich erstellt, woraufhin Apache Fatal error: Call to undefined function: session_start() in usw. ausspuckte. Unter Windows lief die Ganze Seite mit der gleichen PHP Version noch tadellos.
Die Fehlermeldung erscheint bei allen Scripts mit dem session Befehl, als ob diese PHP Vesion den Befehl gar nicht kennen würde.
Habe bereits mit Yast das modul php4-session installiert und in der php.ini session.auto_start auf 1 gesetzt. Der session.save_path = /tmp existiert onehin auf meinem System.
Weiss da jemand Rat ? :confused:

THX im Voraus

Tomek
20.10.04, 21:09
Wenn ich mich nicht irre, musst du bei SuSE noch ein extra php4-session-Modul installieren. Das kannst du über YaST machen.

linuxnoob:-)
20.10.04, 21:28
Hab ich wie ich oben bereits geschrieben habe getan, geht aber trotzdehm nicht :(
Hat noch jemand ne idee, muss ich das session modul noch irgendwie verpnüpfen mit dem php modul ??

Tomek
20.10.04, 21:30
Paste mal bitte die Ausgabe von rpm -qa|grep php- hier rein. Und hänge mal bitte die /etc/php.ini an den Beitrag.

linuxnoob:-)
20.10.04, 21:44
php4-bcmath-4.3.4-26
php4-calendar-4.3.4-26
php4-mysql-4.3.4-26
php4-pgsql-4.3.4-26
php4-readline-4.3.4-26
php4-shmop-4.3.4-26
php4-sockets-4.3.4-26
php4-sysvsem-4.3.4-26
php4-unixODBC-4.3.4-26
php4-yp-4.3.4-26
php4-curl-4.3.4-26
php4-dbase-4.3.4-26
php4-exif-4.3.4-26
php4-ftp-4.3.4-26
php4-iconv-4.3.4-26
php4-mbstring-4.3.4-26
php4-mcrypt-4.3.4-26
php4-session-4.3.4-26
php4-gd-4.3.4-26
php4-imap-4.3.4-26
php4-bz2-4.3.4-26
php4-mime_magic-4.3.4-26
php4-qtdom-4.3.4-26
php4-recode-4.3.4-26
php4-snmp-4.3.4-26
php4-swf-4.3.4-26
php4-sysvshm-4.3.4-26
php4-wddx-4.3.4-26
php4-zlib-4.3.4-26
php4-dba-4.3.4-26
php4-domxml-4.3.4-26
php4-filepro-4.3.4-26
php4-gettext-4.3.4-26
php4-ldap-4.3.4-26
php4-ctype-4.3.4-26
php4-mhash-4.3.4-26
php4-xslt-4.3.4-26
php4-gmp-4.3.4-26
php4-mcal-4.3.4-26
php4-4.3.4-26
apache2-mod_php4-4.3.4-26 : syntax error in expression (error token is ".3.4-26
php4-calendar-4.3.4-26
php4-mysql-4.3.4-26
php4-pgsql-4.3.4-26
php4-readline-4.3.4-26
php4-shmop-4.3.4-26
php4-sockets-4.3.4-26
php4-sysvsem-4.3.4-26
php4-unixODBC-4.3.4-26
php4-yp-4.3.4-26
php4-curl-4.3.4-26
php4-dbase-4.3.4-26
php4-exif-4.3.4-26
php4-ftp-4.3.4-26
php4-iconv-4.3.4-26
php4-mbstring-4.3.4-26
php4-mcrypt-4.3.4-26
php4-session-4.3.4-26
php4-gd-4.3.4-26
php4-imap-4.3.4-26
php4-bz2-4.3.4-26
php4-mime_magic-4.3.4-26
php4-qtdom-4.3.4-26
php4-recode-4.3.4-26
php4-snmp-4.3.4-26
php4-swf-4.3.4-26
php4-sysvshm-4.3.4-26
php4-wddx-4.3.4-26
php4-zlib-4.3.4-26
php4-dba-4.3.4-26
php4-domxml-4.3.4-26
php4-filepro-4.3.4-26
php4-gettext-4.3.4-26
php4-ldap-4.3.4-26
php4-ctype-4.3.4-26
php4-mhash-4.3.4-26
php4-xslt-4.3.4-26
php4-gmp-4.3.4-26
php4-mcal-4.3.4-26
php4-4.3.4-26
apache2-mod_php4-4.3.4-26

Tomek
21.10.04, 00:00
Ich selbst habe kein SuSE zur Hand und weiss nicht wie SuSE das handhabt, aber füge mal folgendes in die /etc/php.ini hinzu:

Finde:

; Note that it should be the name of the module only; no directory information
; needs to go here. Specify the location of the extension with the
; extension_dir directive above.

; The following section header introduces a section where packages
; will add extension directives. You should not edit that line!

Ersetze mit:

; Note that it should be the name of the module only; no directory information
; needs to go here. Specify the location of the extension with the
; extension_dir directive above.
extension=session.so

; The following section header introduces a section where packages
; will add extension directives. You should not edit that line!

Danach natürlich Apache neustarten.

linuxnoob:-)
21.10.04, 11:36
...und schon funkts :)
Thx