Jump to content

Archived

This topic is now archived and is closed to further replies.

mawkish

No session support in my php installation!?

Recommended Posts

I have a problem with my php5/apache2 installation on Debian Linux. I don't seem to have session support. I get: "[b]Fatal error: Call to undefined function session_name() in...[/b]" when loading a page containing the session_name() function.

If I had session support I guess it would be visible in phpinfo, but it's not (see http://www.magnus.ws/phpinfo-copy.htm).
Session support are supposed to be enabled in php by default. But I think you can compile without it if you want. I didn't do anything like that, I just installed the Debian packages like this:
# apt-get install php5 libapache2-mod-php5 php5-curl php5-gd

Did I miss to install something or were those packages already built without session support?
Or did I just miss to enable something?  Plz help ???

Share this post


Link to post
Share on other sites
Hmm... that's odd.  According to the php site:

[quote]Session support is enabled in PHP by default[/quote]

What distro of linux are you using?

Share this post


Link to post
Share on other sites
Yeah this may be more of a debian linux support question than PHP... since it should be enabled by default then they may have disabled it somehow but who knows... maybe you can go to their support forum and find a better answer :).

Share this post


Link to post
Share on other sites
Yeah, with a heavy heart I will turn to the Linux forums, damn that Tux...
Anyway, from this post I learnt that I didn't miss any obvious php setting, right.
Thanks!

Maybe just those installation packages were weired --> reinstall, with other servers in my /etc/apt/source.list.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.