469,306 Members | 1,896 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

Why doesn't "make install" generate libphp5.so?

First, thanks for taking the time to read this message.

I am trying to build a LAMP stack for the first time, and have
encountered the following problem:

CentOS 4.3
mysql 4.1.20
apache 2.2.3
php 5.1.6

I've compiled and installed apache as follows:

==apache===

./configure --prefix=/usr/local/apache2 --enable-module=so

make

make install

=====

That appears to work perfectly. The problem comes when I try and
compile and install PHP.

==php==

./configure --prefix=/usr/local/php
--with-mysqli=/usr/bin/mysql_config
--with-apx2=/usr/local/apache2/bin/apxs

make

make install

====

According to my reading, a "libphp5.so" is supposed to be generated
during this process, but there is no such file on the system after the
fact, which is certainly a problem.

Can anybody perhaps provide guidance as to why this file would NOT be
generated?

Please let me know if I can provide further details to help track down
the problem.

Thanks,
Eric

Oct 23 '06 #1
4 13363

Eric West napisal(a):
First, thanks for taking the time to read this message.

I am trying to build a LAMP stack for the first time, and have
encountered the following problem:

CentOS 4.3
mysql 4.1.20
apache 2.2.3
php 5.1.6

I've compiled and installed apache as follows:

==apache===

./configure --prefix=/usr/local/apache2 --enable-module=so

make

make install

=====

That appears to work perfectly. The problem comes when I try and
compile and install PHP.

==php==

./configure --prefix=/usr/local/php
--with-mysqli=/usr/bin/mysql_config
--with-apx2=/usr/local/apache2/bin/apxs
I think you've misspelled this line. It should be:
--with-apxs2=/usr/local/apache2/bin/apxs
(you have apx2 there should be apxs2)
make

make install

====

According to my reading, a "libphp5.so" is supposed to be generated
during this process, but there is no such file on the system after the
fact, which is certainly a problem.

Can anybody perhaps provide guidance as to why this file would NOT be
generated?

Please let me know if I can provide further details to help track down
the problem.
Oct 23 '06 #2
Wow. That's embarrassing... Thanks so much!

The created the libphp5.so where it needed to be. When restarting
Apache, I started getting an error related to "html entities". I
googled about, and found somebody with a similar issue, so I heeded
their advise and ran:

./configure --disable-all --prefix=/usr/local/php
--with-apxs2=/usr/local/apache2/bin/apxs --disable-cgi --enable-so

followed with

./configure --prefix=/usr/local/php
--with-mysqli=/usr/bin/mysql_config
--with-apx2=/usr/local/apache2/bin/apxs

make
make install

which took care of the "html_entities" complaint.

Now Apache restarts, but whenever I ask for a ".php" page, I get the
following in my error log:

[Mon Oct 23 12:25:29 2006] [notice] child pid 682 exit signal
Segmentation fault (11)

Is this something I need to address in PHP or in Apache?

Thanks for any help,
Eric
On Oct 23, 11:55 am, "Mateusz Markowski" <mate...@bsdmail.orgwrote:
Eric West napisal(a):
First, thanks for taking the time to read this message.
I am trying to build a LAMP stack for the first time, and have
encountered the following problem:
CentOS 4.3
mysql 4.1.20
apache 2.2.3
php 5.1.6
I've compiled and installed apache as follows:
==apache===
./configure --prefix=/usr/local/apache2 --enable-module=so
make
make install
=====
That appears to work perfectly. The problem comes when I try and
compile and install PHP.
==php==
./configure --prefix=/usr/local/php
--with-mysqli=/usr/bin/mysql_config
--with-apx2=/usr/local/apache2/bin/apxsI think you've misspelled this line. It should be:
--with-apxs2=/usr/local/apache2/bin/apxs
(you have apx2 there should be apxs2)
make
make install
====
According to my reading, a "libphp5.so" is supposed to be generated
during this process, but there is no such file on the system after the
fact, which is certainly a problem.
Can anybody perhaps provide guidance as to why this file would NOT be
generated?
Please let me know if I can provide further details to help track down
the problem.
Oct 23 '06 #3
Hmmm... I restarted apache again, and it seems to be working. I'm
serving up PHP!

Thanks for your time,
Eric

On Oct 23, 12:52 pm, "Eric West" <pumpkinheadgi...@gmail.comwrote:
Wow. That's embarrassing... Thanks so much!

The created the libphp5.so where it needed to be. When restarting
Apache, I started getting an error related to "html entities". I
googled about, and found somebody with a similar issue, so I heeded
their advise and ran:

./configure --disable-all --prefix=/usr/local/php
--with-apxs2=/usr/local/apache2/bin/apxs --disable-cgi --enable-so

followed with

./configure --prefix=/usr/local/php
--with-mysqli=/usr/bin/mysql_config
--with-apx2=/usr/local/apache2/bin/apxs

make
make install

which took care of the "html_entities" complaint.

Now Apache restarts, but whenever I ask for a ".php" page, I get the
following in my error log:

[Mon Oct 23 12:25:29 2006] [notice] child pid 682 exit signal
Segmentation fault (11)

Is this something I need to address in PHP or in Apache?

Thanks for any help,
Eric

On Oct 23, 11:55 am, "Mateusz Markowski" <mate...@bsdmail.orgwrote:
Eric West napisal(a):
First, thanks for taking the time to read this message.
I am trying to build a LAMP stack for the first time, and have
encountered the following problem:
CentOS 4.3
mysql 4.1.20
apache 2.2.3
php 5.1.6
I've compiled and installed apache as follows:
==apache===
./configure --prefix=/usr/local/apache2 --enable-module=so
make
make install
=====
That appears to work perfectly. The problem comes when I try and
compile and install PHP.
==php==
./configure --prefix=/usr/local/php
--with-mysqli=/usr/bin/mysql_config
--with-apx2=/usr/local/apache2/bin/apxsI think you've misspelled this line. It should be:
--with-apxs2=/usr/local/apache2/bin/apxs
(you have apx2 there should be apxs2)
make
make install
====
According to my reading, a "libphp5.so" is supposed to be generated
during this process, but there is no such file on the system after the
fact, which is certainly a problem.
Can anybody perhaps provide guidance as to why this file would NOT be
generated?
Please let me know if I can provide further details to help track down
the problem.
Oct 23 '06 #4
On 23 Oct 2006 09:52:16 -0700, "Eric West" <pu**************@gmail.comwrote:
>Now Apache restarts, but whenever I ask for a ".php" page, I get the
following in my error log:

[Mon Oct 23 12:25:29 2006] [notice] child pid 682 exit signal
Segmentation fault (11)

Is this something I need to address in PHP or in Apache?
Probably PHP (and then it's probably one of the libraries loaded by one of the
extensions loaded by or compiled into PHP), but you need to get a core dump and
run it through gdb to find out where to dig.

Look up the Apache CoreDumpDirectory directive to tell it where to write the
dump.

See also http://bugs.php.net/bugs-generating-backtrace.php

Do you get a similar segfault from the commandline version of PHP? If so that
obviously narrows it down a bit ;-)

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Oct 23 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

15 posts views Thread by Jordan Rastrick | last post: by
6 posts views Thread by jmborr | last post: by
7 posts views Thread by Dave | last post: by
14 posts views Thread by Arne | last post: by
1 post views Thread by francescomoi | last post: by
169 posts views Thread by JohnQ | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.