Tomas Kuliavas | 1 Jul 2004 08:51
Picon
Gravatar

Re: Fatal Error: Call to undefined function: session_id()

> Hello,
> 
> 
> I am running a box with SuSE 9.1 installed.  I have Apache 2.0.49, PHP
> 4.3.4, Squirrelmail 1.4.2-44.
> 
> 
> My webserver is running great, and php appears to be working as I can
> view php pages I put into my web server directory.  When I try to access
> the main squirrelmail page I get the following error:
> 
> Fatal error: Call to undefined function: session_id() in
> /srv/www/htdocs/squirrelmail/functions/global.php on line 293
> 
> 
> I am assuming that this is more a php problem than a squirrelmail
> problem. Has anyone run into this before and can anyone point me in the
> right direction?

SquirrelMail needs session and pcre support in php.

You have disabled session support in your php install.

--enable-session --with-pcre-regex

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
(Continue reading)

Brian | 1 Jul 2004 15:19
Favicon

Re: Fatal Error: Call to undefined function: session_id()

Okay, thanks for the tip, I will give it a shot.  I appreciate the help.

Brian

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
--
squirrelmail-users mailing list
List Address: squirrelmail-users <at> lists.sourceforge.net
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Brian | 1 Jul 2004 22:37
Favicon

Re: Fatal Error: Call to undefined function: session_id()

I have removed and reinstalled Apache, Squirrelmail, and PHP and I still get 
the session_id() error.  Is there anything in php.ini that may cause this?

Thanks.

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
--
squirrelmail-users mailing list
List Address: squirrelmail-users <at> lists.sourceforge.net
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Tomas Kuliavas | 2 Jul 2004 09:35
Picon
Gravatar

Re: Re: Fatal Error: Call to undefined function: session_id()

> I have removed and reinstalled Apache, Squirrelmail, and PHP and I still
> get the session_id() error.  Is there anything in php.ini that may cause
> this?

how do you install php? can you show ./configure line that is used in php compilation?

Please provide details about your setup. when you talk to the doctor, you don't expect to get medicide just
because "you are sick".
--

-- 
Tomas

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
--
squirrelmail-users mailing list
List Address: squirrelmail-users <at> lists.sourceforge.net
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

stephen tan | 2 Jul 2004 11:09
Picon

Re: Re: Fatal Error: Call to undefined function:

>> I have removed and reinstalled Apache, Squirrelmail, and PHP and I still
>> get the session_id() error.  Is there anything in php.ini that may cause
>> this?
>
> how do you install php? can you show ./configure line that is used in php
> compilation?
>
> Please provide details about your setup. when you talk to the doctor, you
> don't expect to get medicide just because "you are sick".
> --
> Tomas
>

perhaps the posting guideline can include something about the poster
themselves like:
1. type of user : end-user, administrator, system operator whatever, guru,
hacker, newbie, part-timer, lurker, troll?
2. length of time doing no.1?
3. level of experience in which linux/unix distro, php, apache, mysql,
perl? which versions? rpm or tarball installation of various related
technologies?

anything else to ease the level of frustration on both sides of the "divide"?

my 2 cents,

>
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
(Continue reading)

Brian | 2 Jul 2004 15:13
Favicon

Re: Fatal Error: Call to undefined function:

You are right, I should have been more specific....sorry.

I used the following configuration line:

./configure --sysconfdir=/etc --prefix=/usr --with-apxs2=/usr/sbin --with-
mysql --enable-session --with-pcre-regex

Didn't have any problem with running that command.  Also I tried SuSE's YAST 
insatallation utility and installed all mods and packages with php, but didn't 
have any luck there either.

Thanks.

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
--
squirrelmail-users mailing list
List Address: squirrelmail-users <at> lists.sourceforge.net
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Tomas Kuliavas | 2 Jul 2004 16:29
Picon
Gravatar

Re: Re: Fatal Error: Call to undefined function:

> You are right, I should have been more specific....sorry.
>
>
> I used the following configuration line:
>
>
> ./configure --sysconfdir=/etc --prefix=/usr --with-apxs2=/usr/sbin
> --with-
> mysql --enable-session --with-pcre-regex
>
> Didn't have any problem with running that command.  Also I tried SuSE's
> YAST
> insatallation utility and installed all mods and packages with php, but
> didn't have any luck there either.

Check your php install with phpinfo(). Create file that contains <?php phpinfo() ?>, name it test.php, put
it on your webserver and open that file in browser. http://your.server/some-path/test.php

how about keeping your own apache installation away from rpm dirs. First rule about packages - you should
not mess with directories used by packages or create own packages that mess with them. If you manually
change file in /usr, you don't inform about it packaging utility. Utility might break changes made by you.

cd /usr/local/src/httpd-2.0.50

./configure --prefix=/opt/apache-2.0.50 \
--with-so --enable-module=most --enable-shared=remain

make

make install
(Continue reading)

Brian | 2 Jul 2004 18:20
Favicon

Re: Fatal Error: Call to undefined function:

Wow, lots of good information.  Thanks for the advice....I will give it a shot.

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
--
squirrelmail-users mailing list
List Address: squirrelmail-users <at> lists.sourceforge.net
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Gmane