LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-18-2005, 04:12 PM   #1
tunasashimi
Member
 
Registered: Jun 2005
Posts: 82

Rep: Reputation: 15
SuSE: Apache2/PHP session_id gone missing


Hi

I am hoping someone knows why (after ASTERISK 0.6 overwrote half my system) my PHP session_id function is no longer available.

To enable mysql I had to add:
extension=/usr/lib/php/extensions/mysql.so

Is there something similar to enable other php extensions?

Where can I learn more about extending php?

Thanks

Last edited by tunasashimi; 10-03-2005 at 05:05 PM.
 
Old 09-18-2005, 04:49 PM   #2
flower.Hercules
Member
 
Registered: Aug 2005
Distribution: Gentoo
Posts: 228

Rep: Reputation: 31
Only the session_id function is not functioning? That seems weird for only one function to stop working.

What are you hoping to extend about PHP? Functionality or knowledge? Perhapd phpinfo() can provide you with some interesting information. More information is always nice, solving a problem on the bare minimum of supplied information is quite difficult.
 
Old 09-19-2005, 01:01 AM   #3
tunasashimi
Member
 
Registered: Jun 2005
Posts: 82

Original Poster
Rep: Reputation: 15
phpinfo lists too much info to be useful

I would presume none of the session-cookie stuff would work. Havent figured it out yet.

Part of which library is session_id?

Fatal error: Call to undefined function: session_id() in /srv/www/other/squirrelmail-1.5.0/functions/global.php on line 339
 
Old 09-19-2005, 07:15 AM   #4
flower.Hercules
Member
 
Registered: Aug 2005
Distribution: Gentoo
Posts: 228

Rep: Reputation: 31
session_id is a built in function, I don't believe it is part of any library that can go missing. It isn't a module, if that is what you are asking. It comes by default with PHP4 and PHP5.

Did you try a simple program to test session_id()?

Isolating the function instead of running it in a large application and having an error. Perhaps it wasn't called properly or wasn't set with session_start(). I'm not an expert but I don't think built-in functions can go missing.
 
Old 10-03-2005, 04:48 PM   #5
tunasashimi
Member
 
Registered: Jun 2005
Posts: 82

Original Poster
Rep: Reputation: 15
I have tired EVERYTING... even Yast/You uninstalling apache, php and all, reinstalling it. Downloading the sources and compiling my own... can't get anything to work.

My phpinfo() lists:
--disable-session.

under Configure Command

HOW and WHERE do I change these switches?

php-config man page is most unhelpful.
Do I have to recompile the whole stupid php4 with all its 12 patches installed for SuSe?

I've even tried the php4-session and php4_mod whatever for Apache and everything SRC rpms but cant find where it tries to install these things. Looking in the rpms doesnt say!

I feel so useless!!! HELP!

I am thinking it must be something TINY and SIMPLE if asterisk could screw it up with one tiny command. I even went through all the asterisk scripts to see what it destroyed and replaced those files, but alas. My brain is throbbing with !@)(#)!(@_

Last edited by tunasashimi; 10-03-2005 at 04:51 PM.
 
Old 10-03-2005, 04:58 PM   #6
tunasashimi
Member
 
Registered: Jun 2005
Posts: 82

Original Poster
Rep: Reputation: 15
I've found the srpm target directory:
/usr/src/packages/SOURCES

Now trying to ./configure;make...

But there are 15 .diff files with the php tar.gz

Any words of advice? I am guessing simply ./configure;make will get me nowhere in particular...
 
Old 10-03-2005, 05:19 PM   #7
tunasashimi
Member
 
Registered: Jun 2005
Posts: 82

Original Poster
Rep: Reputation: 15
Its a lost case

Trillions of errors compiling php. Maybe appying the diff patches will work... maybe not.
Who cares?! Long story short. DONT INSTALL ANYTHING ON SUSE THAT DOESNT COME THROUGH YAST. PERIOD.

from /usr/local/apache2/include/apr_buckets.h:29,
from /usr/local/apache2/include/util_filter.h:21,
from /usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c
/usr/local/apache2/include/apr_file_io.h:548: error: parse error before "apr_off_t"
/usr/local/apache2/include/apr_file_io.h:740: error: parse error before "apr_off_t"
In file included from /usr/local/apache2/include/apr_buckets.h:29,
from /usr/local/apache2/include/util_filter.h:21,
from /usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c
/usr/local/apache2/include/apr_network_io.h:545: error: parse error before "apr_off_t"
In file included from /usr/local/apache2/include/apr_buckets.h:32,
from /usr/local/apache2/include/util_filter.h:21,
from /usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c
/usr/local/apache2/include/apr_mmap.h:134: error: parse error before "apr_off_t"
/usr/local/apache2/include/apr_mmap.h:161: error: parse error before "apr_off_t"
In file included from /usr/local/apache2/include/util_filter.h:21,
from /usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c
/usr/local/apache2/include/apr_buckets.h:242: error: parse error before "apr_off_t"
/usr/local/apache2/include/apr_buckets.h:242: warning: no semicolon at end of struct or unio
/usr/local/apache2/include/apr_buckets.h:244: error: conflicting types for `data'
/usr/src/packages/SOURCES/php-4.3.4/main/php.h:255: error: previous declaration of `data'
/usr/local/apache2/include/apr_buckets.h:252: error: `free' redeclared as different kind of
/usr/include/stdlib.h:569: error: previous declaration of `free'
/usr/local/apache2/include/apr_buckets.h:255: error: parse error before '}' token
/usr/local/apache2/include/apr_buckets.h:634: error: field `b' has incomplete type
/usr/local/apache2/include/apr_buckets.h:702: error: parse error before "apr_off_t"
/usr/local/apache2/include/apr_buckets.h:714: error: parse error before "apr_off_t"
/usr/local/apache2/include/apr_buckets.h:750: error: parse error before "apr_off_t"
/usr/local/apache2/include/apr_buckets.h:886: error: parse error before "apr_off_t"
/usr/local/apache2/include/apr_buckets.h:1164: error: parse error before "apr_off_t"
/usr/local/apache2/include/apr_buckets.h:1363: error: parse error before "apr_off_t"
/usr/local/apache2/include/apr_buckets.h:1377: error: parse error before "apr_off_t"
/usr/local/apache2/include/apr_buckets.h:1427: error: parse error before "apr_off_t"
/usr/local/apache2/include/apr_buckets.h:1443: error: parse error before "apr_off_t"
In file included from /usr/local/apache2/include/util_filter.h:23,
from /usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c
/usr/local/apache2/include/httpd.h:788: error: parse error before "apr_off_t"
/usr/local/apache2/include/httpd.h:788: warning: no semicolon at end of struct or union
/usr/local/apache2/include/httpd.h:790: warning: data definition has no type or storage clas
/usr/local/apache2/include/httpd.h:801: error: parse error before "clength"
/usr/local/apache2/include/httpd.h:801: warning: data definition has no type or storage clas
/usr/local/apache2/include/httpd.h:804: error: parse error before "remaining"
/usr/local/apache2/include/httpd.h:804: warning: data definition has no type or storage clas
/usr/local/apache2/include/httpd.h:806: error: parse error before "read_length"
/usr/local/apache2/include/httpd.h:806: warning: data definition has no type or storage clas
/usr/local/apache2/include/httpd.h:937: error: parse error before '}' token
In file included from /usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c
/usr/local/apache2/include/util_filter.h:141: error: parse error before "apr_off_t"
/usr/local/apache2/include/util_filter.h:296: error: parse error before "apr_off_t"
In file included from /usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c
/usr/local/apache2/include/http_core.h:205: error: parse error before "ap_get_limit_req_body
/usr/local/apache2/include/http_core.h:205: warning: data definition has no type or storage
/usr/local/apache2/include/http_core.h:264: error: `ap_auth_type' redeclared as different ki
/usr/local/apache2/include/httpd.h:860: error: previous declaration of `ap_auth_type'
/usr/local/apache2/include/http_core.h:644: error: parse error before "apr_off_t"
In file included from /usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c
/usr/local/apache2/include/http_protocol.h:109: error: parse error before "apr_off_t"
/usr/local/apache2/include/http_protocol.h:209: error: parse error before "apr_off_t"
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c: In function `php_apa
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:84: error: dereferenc
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:85: error: dereferenc
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:85: error: dereferenc
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:87: error: dereferenc
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:87: error: dereferenc
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:87: error: dereferenc
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:87: error: dereferenc
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:87: error: dereferenc
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:87: error: dereferenc
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:89: error: dereferenc
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:89: error: dereferenc
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c: In function `php_apa
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:120: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:123: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:125: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c: In function `php_apa
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:138: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c: In function `php_apa
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:161: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c: In function `php_apa
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:180: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:181: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:182: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:188: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:189: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:190: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:193: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:194: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c: In function `php_apa
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:205: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c: In function `php_apa
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:217: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c: In function `php_apa
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:226: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:235: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c: In function `php_apa
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:264: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:268: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:269: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:269: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:269: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:269: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:269: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:269: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:270: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:270: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c: In function `php_apa
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:419: error: dereferen
/usr/src/packages/SOURCES/php-4.3.4/sapi/apache2handler/sapi_apache2.c:419: error: dereferen
/usr/src/packages/SOURCES/php-
 
Old 10-03-2005, 05:36 PM   #8
tunasashimi
Member
 
Registered: Jun 2005
Posts: 82

Original Poster
Rep: Reputation: 15
Well, got httpd running and most things working, but my suse built in apache2 and rc's and yast etc. etc. is forever screwed now.

Man, suse sucks if you once derail your little setup by conventional linux means...
 
Old 10-03-2005, 05:48 PM   #9
tunasashimi
Member
 
Registered: Jun 2005
Posts: 82

Original Poster
Rep: Reputation: 15
Great. cant get ssl working with php4.

Php5 won't load with apache2:
libphp5.so undefined symbol: php_stream_context_get_option

Blah blah blah.
 
Old 10-03-2005, 06:09 PM   #10
tunasashimi
Member
 
Registered: Jun 2005
Posts: 82

Original Poster
Rep: Reputation: 15
Light at the end of the tunnel....

Had problems compiling/reconfiguring php with SuSe's default apache2 because I couldn't find "apxs".

I now finally see that it is in the apache2-devel package.
 
Old 10-03-2005, 06:22 PM   #11
tunasashimi
Member
 
Registered: Jun 2005
Posts: 82

Original Poster
Rep: Reputation: 15
Great!

This is ridiculous.

API module structure `php4_module' in file /usr/lib/apache2-prefork/libphp4.so is garbled - perhaps this is not an Apache module DSO?

*really ugly swearwords*
 
Old 10-04-2005, 03:46 AM   #12
tunasashimi
Member
 
Registered: Jun 2005
Posts: 82

Original Poster
Rep: Reputation: 15
..A poor solution

I've compiled the suse srpm php4 without all it's diffs and had to manually move the libphp4.so to /usr/lib/apache2 since "make install" cried like a baby. Also had to delete libphp4.so from 3 other places... finally it works. Now just to get all in php that needs to be there - mysql, ssl, etc...

SO, it works. But what a headache.

If someone gives me ONE command to fix it here, I'll cry.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php extension for postgresql xrado Slackware 3 12-06-2005 09:31 AM
PHP session_id passing kloppster Linux - Software 0 07-19-2004 12:19 PM
Mysql Php Extension SilentK Linux - Newbie 11 06-11-2004 08:47 AM
PHP does not show mysql as an extension Linix Linux - Newbie 7 01-31-2004 09:13 AM
Build PHP extension. ugenn Linux - Software 1 11-05-2003 05:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration