ID:               47503
 Comment by:       himanshuvj at gmail dot com
 Reported By:      roland dot ziegler at bsgti dot ch
 Status:           No Feedback
 Bug Type:         Apache related
 Operating System: Fedora Linux 2.6.22.9-61.fc6
 PHP Version:      5.2.8
 New Comment:

I reconfigured PHP, this time providing --with-pic option (in addition
to other options that you might have been using right now), followed by
make and make install. this basically generated the new libphp5.so DSO
file which is used by apache. That solved the problem for me.

I did this because I got the hint from this page on apache's site:
http://httpd.apache.org/docs/2.0/programs/apxs.html. 
It tells you that the PHP source code should better be compiled for
position independent code (PIC).

I would also recommend that before doing this reconfiguration check for
and remove any old *.so objects that are present. Infact I un-tarred the
 PHP source in a new location every time and then did the
reconfiguration.


Previous Comments:
------------------------------------------------------------------------

[2009-03-18 01:00:01] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, 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".

------------------------------------------------------------------------

[2009-03-10 10:39:55] j...@php.net

Check the output of this:

# ldd /usr/local/apache_1.3.41/libexec/libphp5.so

Then fix your /etc/ld.so.conf to contain the missing paths, run
ldconfig and try again to start apache..

------------------------------------------------------------------------

[2009-02-26 12:35:14] roland dot ziegler at bsgti dot ch

This is my configure line:

./configure --with-apxs=/usr/local/apache_1.3.41/bin/apxs

I also tried it without using other modules, but without success.

I also tried to install apache2 first, but my server is inside a very
strictly ruled network and is not allowed to connect to the internet.
Solving the rpm-dependencies is very difficult in this case.

------------------------------------------------------------------------

[2009-02-25 20:36:27] j...@php.net

Check that your httpd.conf (and possible included configuration files 
in it) do not load anything but the libphp5.so. You should also 
consider upgrading to Apache 2. 

Also, what was the configure line you used when compiling PHP?

------------------------------------------------------------------------

[2009-02-25 17:02:48] roland dot ziegler at bsgti dot ch

Description:
------------
Similar to Bug #17147

Installed Apache 1.3.41 and PHP 5.2.8 - after start i got this
message:

Syntax error on line 206 of /usr/local/apache_1.3.41/conf/httpd.conf:
Cannot load /usr/local/apache_1.3.41/libexec/libphp5.so into server:
/usr/local/apache_1.3.41/libexec/libphp5.so: undefined symbol:
sapi_globals /usr/local/apache_1.3.41/bin/apachectl start: httpd could
not be started



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47503&edit=1

Reply via email to