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@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: php4 to php5 means exit session functions?
    ... I am trying to update php4 to php5 on my FreeBSD 6.1-server, ... undefined function session_start*". ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ...
    (freebsd-questions)
  • Re: DDoS in FreeBSD 6.2-STABLE And Problen With The Clock
    ... I try to fix this with a "ntpdate otel.net" for example .. ... I try and the "date" command but it's ... Version: GnuPG v1.4.7 (FreeBSD) ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ...
    (freebsd-stable)
  • Re: Netstat command output
    ... FreeBSD box acts as a router between two subnets where an ftp client is on ... MB file and at the same time initiate a netstat -w1 -Ibge0 command on the ... Note that some modern NICs with hardware checksum offloading can give false ...
    (freebsd-questions)
  • Re: The Myth of the secure Mac
    ... >> Good to see that you can interpret the command I wrote. ... >> which means it is a fork of FreeBSD. ... >> the implication that Os X somehow transcends the need for a mere CLI. ...
    (comp.sys.mac.advocacy)
  • FreeBSD Security Advisory FreeBSD-SA-05:01.telnet
    ... For general information regarding FreeBSD Security Advisories, ... The telnetcommand is a TELNET protocol client, ... establish terminal sessions across a network. ... fixed-sized buffer. ...
    (Bugtraq)