473,395 Members | 1,783 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 13689

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Jordan Rastrick | last post by:
First, a disclaimer. I am a second year Maths and Computer Science undergraduate, and this is my first time ever on Usenet (I guess I'm part of the http generation). On top of that, I have been...
0
by: pmarshall1971 | last post by:
Currently on my Windows 2000 server, where we do our builds, whenever we to generate a key to be able to strong name our assemblies we receive the follwing error. Failed to generate a strong...
6
by: jmborr | last post by:
While running make, I obtain the following error: make: *** No rule to make target `amino_acid_param.h', needed by `pdb2txt_relax.o'. Stop. I'm confused, since header files (*.h) shouldn't...
7
by: Dave | last post by:
Greetings, I am attempting to take a number that is currently in minutes and turn it into a string that will list the hours followed by minutes. Some more examples: "30" into "0h 30m" "155...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
1
by: francescomoi | last post by:
Hi. I compiled PHP by using: -------------- './configure' '--prefix=/usr/local/php' '--with-apxs2=/usr/local/httpd/bin/apxs' '--with-mysql=/usr/local/mysql'...
1
by: HermannJens | last post by:
im trying to install a module. The directions for installing modules say: download the file, extract it, put the file under "c:/perl/lib/module-here" go to "cmd" type there: perl makefile.pl...
169
by: JohnQ | last post by:
(The "C++ Grammer" thread in comp.lang.c++.moderated prompted this post). It would be more than a little bit nice if C++ was much "cleaner" (less complex) so that it wasn't a major world wide...
12
by: John Connic | last post by:
Hi All: I just setup a new machine with Vista Business Edition and IIS 7. I had to turn on IIS 7 attributes including the IIS Manager. Not sure what options I needed I turn them all on that even...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.