473,326 Members | 2,104 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,326 software developers and data experts.

[4.4.1] Compile libphp4.so from src w/o apache src?

Hello, I was running php 4.1.2 that came with my Linux distro a while
back (RH7.3 RPM, Kernel 2.4.20-20.7) and I wanted a newer version so I
download the src tarball from the web and compiled it and it looks like
that well, as I have the new one in /usr/local/bin (the old binary is
still in /usr/bin until I have the new one working with my apache) :

$ php -v
PHP 4.4.1 (cgi) (built: Dec 13 2005 20:32:47)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
My question is, how can I compile a libphp4.so for use with my apache.
My apache is of a special configuration, so recompiling is not an option
(it was made available as an RPM when I obtained it some time ago, so I
don't have the source.)

Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6b
PHP/4.1.2 mod_perl/1.26 FrontPage/5.0.2.2510 configured

The INSTALL file that came with the tarball wasn't very helpful in this
regard. It seems to make sense to me that one should be able to simply
compile the libphp4.so separately and add it to the modules for apache.

Thanks for any help
Feb 21 '06 #1
4 2189
I think this will work:
../configure --with-apxs=/usr/bin/apxs

Feb 21 '06 #2
Sjoerd wrote:
I think this will work:
./configure --with-apxs=/usr/bin/apxs


Do you mean for php (from the root source dir?)

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Feb 21 '06 #3
Sjoerd wrote:
I think this will work:
./configure --with-apxs=/usr/bin/apxs


Do you mean for php (from the root source dir?)

Feb 21 '06 #4
Sjoerd wrote:
I think this will work:
./configure --with-apxs=/usr/bin/apxs


Thanks.

I did:

../configure --with-mysql --with-apxs=/usr/sbin/apxs

and `make` and `make install` and got nor errors. Now, after restarting
apache, it segaults as soon as I try to do any sort of GET (any type,
even noremal html pages.)

(Apache works fine if I comment out the php entried in my httpd.conf)

error_log:
[Tue Feb 21 11:33:10 2006] [notice] Apache/1.3.27 (Unix)
(Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6b PHP/4.4.1 mod_perl/1.26
FrontPage/5.0.2.2510 configured -- resuming normal operations
[Tue Feb 21 11:33:10 2006] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Tue Feb 21 11:33:10 2006] [notice] Accept mutex: sysvsem (Default:
sysvsem)
[Tue Feb 21 11:33:57 2006] [notice] child pid 26807 exit signal
Segmentation fault (11)
[Tue Feb 21 11:33:57 2006] [notice] child pid 26806 exit signal
Segmentation fault (11)
httpd.conf php4 lines:
[...]
<IfDefine HAVE_PHP4>
#LoadModule php4_module modules/libphp4.so
</IfDefine>
[...]
<IfDefine HAVE_PHP4>
#AddModule mod_php4.c
</IfDefine>
[...]
From the error log you can see that the new php "PHP/4.4.1" is
recognized (where as before it said "PHP/4.1.2" in that same spot.)

Did I miss something when compiling? I have GCC 3.

Than kfor any help

$ gcc --version
gcc (GCC) 3.2.1 20020903 (prerelease)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

$ uname -mrs
Linux 2.4.20-20.7 i686

$ php -v
PHP 4.4.1 (cli) (built: Feb 21 2006 11:24:53)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Feb 21 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Robert Blaha | last post by:
Hi, I'm runnig Linux/Mandrake9.0-Dolphin and try to update Apache 2.0.46 and PHP 4.3.2. Apache is OK bu with PHP I've problem. I unpacked distribution, run ../configure > configure.vysl, make...
0
by: lok | last post by:
hi all, i have installed oracle9i client tools on RedHat7.3 (x86 machine) and i compiled php4.1.2 & apache1.3 successfully but when i execute php script in browser, error occured: "Fatal error:...
0
by: Mairhtin O'Feannag | last post by:
I have done a make, and a make install on the 4.3.6 version, using /usr/local/etc/php as the directory I make from. However, no matter what I do, I do not see a php4lib.so that has been created. ...
0
by: prompt | last post by:
Hello, I installed PHP 4.3.7 from source (and Apache 2.0.49): ../configure --prefix=/usr/local --sysconfdir=/etc --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs --enable-dbase make make...
0
by: Kurt | last post by:
Hi, I tried to compile my php 4.3.9 with snmp support but it won't work. Compiling Net-SNMP always worked good --> I tried the 5.2rc4 and also the older version 5.1.2 successfully so far. I use...
0
by: Jordan Willms | last post by:
My xsl stylesheet is as simple as follows: <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet xmlns:ims="http://www.imsglobal.org/xsd/imsmd_v1p2"...
0
by: SwampFoetus | last post by:
Hi, I was wondering if anyone can shed any light on this problem. When I configured and built PHP4 on Cygwin with gd, jpeg, and zlib it makes fine but I get the following error when I try to...
0
by: mchristopher | last post by:
I'm having trouble compiling DOM XML support into PHP 4.4.2 on CentOS 4.3. Everytime I attempt to compile, it spits back this: .... chmod 755 /usr/lib/apache/libphp4.so Installing PHP CLI...
1
by: Randell D. | last post by:
Folks, I consider myself well versed with Apache 1.3 and PHP4 - I found drupal and wanted to try it out - I had problems getting it working with Apache2/PHP5/MySQL5 so I downgraded... Note: I...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.