php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20044 FreeBSD : Apache 2.0.43 + PHP 4.2.3 ( clean install ) gives error
Submitted: 2002-10-23 11:03 UTC Modified: 2002-12-10 12:38 UTC
Votes:56
Avg. Score:5.0 ± 0.0
Reproduced:56 of 56 (100.0%)
Same Version:56 (100.0%)
Same OS:56 (100.0%)
From: tim at allodox dot nl Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.2.3 OS: FreeBSD 4.7
Private report: No CVE-ID: None
 [2002-10-23 11:03 UTC] tim at allodox dot nl
Ok..

I downloaded php 4.2.3 and apache-2.0.43 and compiled them  according the install thingy on http://www.php.net/manual/en/install.apache.php

I first compiled Apache-2, tested it and it worked.

then i compiled PHP 4.2.3 and now apache-2 gives me this error :

daedalus# ./apachectl start
Syntax error on line 230 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp4.so into server: /usr/local/apache2/modules/libphp4.so: Undefined symbol "pthread_getspecific"


any idea what to do next ? thanx,

- Tim -

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-23 11:04 UTC] tim at allodox dot nl
Ok..

I downloaded php 4.2.3 and apache-2.0.43 and compiled them  according
the install thingy on http://www.php.net/manual/en/install.apache.php

I first compiled Apache-2, tested it and it worked.

then i compiled PHP 4.2.3 and now apache-2 gives me this error :

daedalus# ./apachectl start
Syntax error on line 230 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp4.so into server:
/usr/local/apache2/modules/libphp4.so: Undefined symbol
"pthread_getspecific"

any idea what to do next ? thanx,

- Tim -
 [2002-10-23 20:54 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [2002-10-24 17:12 UTC] mbednarik at completecomputing dot com
I had the same problem on our development cluster which is freebsd based. I use squirrelmail webmail ( www.squirrelmail.org ) which gave me a solution in their readme for their webmail. First configure apache like you did, I did it like this
./configure --prefix=/usr/local/wwwserv2 --enable-so --with-ssl=/usr/local/ssl --enable-ssl --enable-cgi
then i did a make then a make install. Then instead of configuring php like
./configure --with-apxs2=/usr/local/wwwserv2/bin/apxs
I just did
./configure
then i did a 
make
then copy the file php to you cgi-bin directory whereever your webserver lives like this
cp php /usr/local/wwwserv2/cgi-bin/php
then edit the httpd.conf whereever your webserver's configuration file is, and add the next 2 lines
AddType application/php4script .php
Action application/php4script /cgi-bin/php
then and php pages should work. It is not the most efficent way to do it but it does work. Same security but might be a little slower, you might only notice it if you have a high demanding website. I hope this helps, if you have any more questions feel free to e-mail me at mbednarik@completecomputing.com
 [2002-10-24 17:15 UTC] mbednarik at completecomputing dot com
this is a problem with php.net software, if a developer reveiws this, i would like them to include the document i left above in the readme for other freebsd users and give credit to www.squirrelmail.org
 [2002-11-08 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2002-12-10 12:31 UTC] questin at attbi dot com
Latest build fixed the problem.

Running,

FreeBSD: 4.7
Apache2
 [2002-12-10 12:38 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

User reports that the problem was fixed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 05:01:29 2024 UTC