php4 to php5 means exit session functions?
Hi all, I am trying to update php4 to php5 on my FreeBSD 6.1-server, by using the following 'manual': http://lists.freebsd.org/pipermail/freebsd-questions/2006-July/127059.html However, now I get error messages like *Fatal error*: Call to undefined function session_start()*. This is strange, because I _did_ also update php5-session and php5-extensions. I did restart apache, so what else can be wrong? This is the configure command I used: *'./configure' '--enable-versioning' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection' '--program-prefix=' '--enable-fastcgi' '--with-apxs2=/usr/local/sbin/apxs' '--with-regex=php' '--with-zend-vm=CALL' '--prefix=/usr/local' * anyone a clue how to get the session functionality back? thanks. Bram * ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: php4 to php5 means exit session functions?
OK, I finally found at what had been going wrong: In my php.ini file there is the variable extension_dir. This was still pointing at the old extension dir, located at /usr/local/lib/php/2002something after I changed it to /usr/local/lib/php/20060613 everything worked fine. thanks, Bram Matthew Seaman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Bram Kuijper wrote: Hi all, I am trying to update php4 to php5 on my FreeBSD 6.1-server, by using the following 'manual': http://lists.freebsd.org/pipermail/freebsd-questions/2006-July/127059.html However, now I get error messages like *Fatal error*: Call to undefined function session_start()*. This is strange, because I _did_ also update php5-session and php5-extensions. I did restart apache, so what else can be wrong? This is the configure command I used: *'./configure' '--enable-versioning' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection' '--program-prefix=' '--enable-fastcgi' '--with-apxs2=/usr/local/sbin/apxs' '--with-regex=php' '--with-zend-vm=CALL' '--prefix=/usr/local' * anyone a clue how to get the session functionality back? thanks. If you're correctly following the instructions I wrote in the message you quoted, then you would never run configure directly. The ports system does it all for you. Do you have a php-session port installed? Does /usr/local/etc/php/extensions.ini contain the line: extension=session.so What do you get if you run this command? % php -r 'phpinfo();' | grep -i session Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGr2an8Mjk52CukIwRCPvdAJ9jY2Gq0hTmoLimhhNZF73/WTfAZACfYE68 WZ97WG94IeHeqj2F6Y7quyI= =+3C3 -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: usb storage device mounting problems
Hi, still cannot seem to get usb device working as an ordinary user between multiple reboots, without doing /etc/rc.d/devfs start as root every time. did the following things described under 4.3.3. from http://www.gphoto.org/doc/manual/permissions-usb.html added this to devfs.rules: [usb_devices=10] add path 'da*s*' mode 0666 group usb add path 'ugen*' mode 0666 group usb added this to rc.conf: devfs_system_ruleset=usb_devices removed this from devfs.conf: own /dev/fd0 root:operator perm /dev/fd0 0666 then, I restarted my rc.conf: /etc/rc.d/devfs start now, it is possible to mount the device as described, however only during this login. If I reboot, I have to do devfs start again as root. anybody knows how to retain these settings between multiple reboots? TIA, Bram ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
usb storage device mounting problems
Hi all, I got some problems with mounting my usb device. I did all the stuff according to point 9.22 in the FreeBSD FAQ, but I still cannot mount my usb storage key (a sandisk cruzer mini 256 MB) as an ordinary user, without having to change the group owner as a root. Adding the needed lines to devfs.conf doesn't seem to help in retaining the settings across multiple reboots. I run FreeBSD-stable 6.1 in /etc/sysctl.conf I added: vfs.usermount=1 I added to my etc/devfs.conf the following lines: own /dev/da0s1 root:usb perm/dev/da0s1 0666 I added myself, the ordinary user to the group usb and checked if that worked out by doing id $myusername: uid=1002($myusername) gid=0(wheel) groups=0(wheel), 1002(usb), 1004(cvs) so I am in the group usb, and if everything went allright, also the folder /dev/da0s1 should now owned by the group usb. So I'll reboot and plugin the device. I reboot and plugin my usb key. Check if things are recognized using usbdevs: $ devfs addr 1: UHCI root hub, Intel addr 2: product 0x3108, vendor 0x04b3 addr 1: UHCI root hub, Intel addr 2: Cruzer Mini, SanDisk Corporation seems it has been recognized. Now I check the user rights on dev/da0s1 $ su $ ls -aln /dev | grep da0 crw-r- 1 0 5 0, 107 Jul 8 15:17 da0 crw-r- 1 0 5 0, 108 Jul 8 15:17 da0s1 crw-r- 1 0 5 0, 108 Jul 8 15:17 da0s1 alas, despite the changes made in devfs.conf, the group in which da0s1 is in, is still another one than the usb-group (which has 1002) as a group identifier. So still not able to mount the device as an ordinary user. anybody advice on how to tweak my devfs.conf, so that it works? thanks, Bram ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
kdm restart and back into root shell from KDE
Hi all, I got two KDE-related newby questions: 1. How do I restart a KDE session after I changed some config files? In Linux this is /etc/init.d/kdm restart But since there is no init.d on FreeBSD, I'm stuck. 2. Is there any way I can shutdown KDE and get back to a root shell? If I choose 'log out' from KDE, I am still in the KDE environment and fixed to choose another user to login again. If I choose 'shutdown KDE', it issues a shutdown command to shutdown my PC, and that's also not what I want. I just want to shutdown KDE and get back into a root shell. Think it's an easy thing to configure, but where? btw, I'm running KDE 3.5.1 on FreeBSD 6.0. any help would be appreciated, %Bram ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]