473,796 Members | 2,677 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[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 2216
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
10018
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 > make.vysl and make install. When I search in configure.vysl or make.vysl there is nothing about libphp4.so.
0
3021
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: Call to undefined function: ocilogon()" i found no oci8.so in the whole system. i think this is the reason why the error occured
0
1668
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. The documentation I recieved (an IBM source) says that the following has to be added to the httpd.conf file : LoadModule php4_modulelib/apache/libphp4.so .. .. ..
0
1431
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 install I added
0
1613
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 Fedora Core 2. Here's what I already tried with php (Every configure options version listed below was tried with both of the two snmp versions): ../configure --with-openssl --with-apxs=/usr/local/apache/1.3.31/bin/apxs --w...
0
2631
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" xmlns="http://ltsc.ieee.org/xsd/LOMv1p0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" version="1.0" encoding="ISO-8859-1" indent="yes"/> <!-- rename ims datetime tags to IEEE dateTime tags --> <xsl:template match="ims:datetime">
0
1538
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 start apache: Syntax error on line 239 of /etc/apache/httpd.conf: Cannot load /usr/lib/apache/libphp4.dll into server: Permission denied /usr/sbin/apachectl start: httpd could not be started
0
1239
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 binary: /usr/local/bin/ Installing PHP CLI man page: /usr/local/man/man1/ Installing PEAR environment: /usr/local/lib/php/ Archive_Tar - already installed: 1.3.1
1
4818
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 did have Apache2/ PHP5 working... I confirmed this via phpinfo output... But now that I removed my original directory containing Apache/PHP, and recompiled from scratch, I get everything to startup and static html is displayd, but phpinfo produces...
0
9530
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10236
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10182
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10017
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6793
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5445
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5577
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4120
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3734
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.