473,382 Members | 1,349 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,382 software developers and data experts.

Problem building php 4.4.6 and apache 1.3.37 on RHEL 4

Folks,

Trying to build php 4.4.6 and apache 1.3.37 on RHEL 4.
Each of them builds and installs okay, but when we start
apache we get:

Syntax error on line 238 of /usr/local/etc/httpd/conf/httpd.conf:
API module structure `php4_module' in file
/usr/local/etc/httpd/libexec/libphp4.so is garbled -
perhaps this is not an Apache module DSO?
I've checked this out, got some hint that we need to use
the apxs that came with RedHat, not the one built in the
Apache distribution? RedHat does have an http-devel package
which includes apxs but that is for Apache 2.x

Last time we did this on RHEL 4 is was Apache 1.3.34
and php 4.4.1 and it went fine, we are using the same
procedures. Not sure if some RHEL 4 libraries changed?

Has anyone been able to build that combination? Below
are some excerpts on what we are using for configure.
Thanks!
For apache:

../configure --with-layout=Apache --prefix=/usr/local/etc/httpd
--enable-suexec
.... some deleted...
--disable-module=asis --enable-shared=max
--enable-rule=SHARED_CORE --enable-module=so

For php:

CPPFLAGS="-DLINUX=22 -DEAPI" \
../configure \
--enable-static \
--disable-shared \
--with-config-file-path=/usr/local/etc/httpd/conf \
--with-apxs=/usr/local/etc/httpd/bin/apxs \
.... some deleted.
--enable-mbstring=all \
--with-mhash=/export/tools/apache/php/ext/mhash
--
John
__________________________________________________ _________________
John Murtari Software Workshop Inc.
jmurtari@following domain 315.635-1968(x-211) "TheBook.Com" (TM)
http://thebook.com/
Apr 25 '07 #1
3 4106
C.
On 25 Apr, 22:10, John Murtari <jmurt...@thebook.comwrote:
Folks,

Trying to build php 4.4.6 and apache 1.3.37 on RHEL 4.
Each of them builds and installs okay, but when we start
apache we get:

Syntax error on line 238 of /usr/local/etc/httpd/conf/httpd.conf:
API module structure `php4_module' in file
/usr/local/etc/httpd/libexec/libphp4.so is garbled -
perhaps this is not an Apache module DSO?

I've checked this out, got some hint that we need to use
the apxs that came with RedHat, not the one built in the
Apache distribution? RedHat does have an http-devel package
which includes apxs but that is for Apache 2.x
No - you either build or your Apache from source or use rpms never mix
and match. If you build apache from source then you build PHP from
source. Its probably OK to build PHP from source with a packaged
apache.

This error is commonly caused by using the wrong version of apxs or if
your modules are much newer than your apache.

Read these:

http://uk3.php.net/results.php?q=gar...ule&l=en&p=all

If your still having difficulties, what does ldd report for the
module?

C.

Apr 27 '07 #2
C. wrote:
On 25 Apr, 22:10, John Murtari <jmurt...@thebook.comwrote:
>Folks,

Trying to build php 4.4.6 and apache 1.3.37 on RHEL 4.
Each of them builds and installs okay, but when we start
apache we get:

Syntax error on line 238 of /usr/local/etc/httpd/conf/httpd.conf:
API module structure `php4_module' in file
/usr/local/etc/httpd/libexec/libphp4.so is garbled -
perhaps this is not an Apache module DSO?

I've checked this out, got some hint that we need to use
the apxs that came with RedHat, not the one built in the
Apache distribution? RedHat does have an http-devel package
which includes apxs but that is for Apache 2.x

No - you either build or your Apache from source or use rpms never mix
and match. If you build apache from source then you build PHP from
source. Its probably OK to build PHP from source with a packaged
apache.

This error is commonly caused by using the wrong version of apxs or if
your modules are much newer than your apache.

Read these:

http://uk3.php.net/results.php?q=gar...ule&l=en&p=all

If your still having difficulties, what does ldd report for the
module?

C.
i second that. what happened in my case was that the version of apache
that i'd installed on my machine from source had installed to a
different location. the default version was what known to the system. in
my case, i had to replace the default version binaries with symbolic
links to the compiled version.

this can be happening to you as it sounds like you've compiled apache
from source with php. if the old apache is still there (regardless of
its running or not), it will interfere with your php compile. need to be
specific when passing config arguments to the php configuration.

hope this helps.

--
lark -- ha****@sbcdeglobalspam.net
To reply to me directly, delete "despam".
Apr 30 '07 #3
>>
Trying to build php 4.4.6 and apache 1.3.37 on RHEL 4.
Each of them builds and installs okay, but when we start
apache we get:

Syntax error on line 238 of /usr/local/etc/httpd/conf/httpd.conf:
API module structure `php4_module' in file
/usr/local/etc/httpd/libexec/libphp4.so is garbled -
perhaps this is not an Apache module DSO?

I've checked this out, got some hint that we need to use
the apxs that came with RedHat, not the one built in the
Apache distribution? RedHat does have an http-devel package
which includes apxs but that is for Apache 2.x

No - you either build or your Apache from source or use rpms never mix
and match. If you build apache from source then you build PHP from
source. Its probably OK to build PHP from source with a packaged
apache.

This error is commonly caused by using the wrong version of apxs or if
your modules are much newer than your apache.

Read these:

http://uk3.php.net/results.php?q=gar...ule&l=en&p=all

If your still having difficulties, what does ldd report for the
module?
Okay, thanks for the tip. We were just building from
sources, but I took your suggestions and installed the newer
apache before building php and that cleared it up!
Thanks!

--
John
__________________________________________________ _________________
John Murtari Software Workshop Inc.
jmurtari@following domain 315.635-1968(x-211) "TheBook.Com" (TM)
http://thebook.com/
May 1 '07 #4

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

Similar topics

6
by: Zaan | last post by:
www.entropy.ch release for Mac OS X.] Hello, My issue is the following: to promote consistency on a site I'm building, I decided to go for a php scheme where some recurring elements...
1
by: Louis Aslett | last post by:
Hi, I am extremely stuck trying to port a PHP app from one server to another while making use of the PEAR Mail_mimeDecode package. We have just upgraded from RedHat 7.x to RedHat Enterprise...
2
by: pancho | last post by:
Greetings, I need help configuring/building PHP3 with MySQL as a DSO on a Solaris 8 box - this module is needed to host some existing sites I will be migrating Note. I built PHP4 from source and...
26
by: Darryl W. DeLao Jr | last post by:
Im currently on red hat 7.3 running postgres. Everything is running fine. Obviously, Im going to have to upgrade to RHEL 3 in order to receive updates, etc. Does anyone know of any problems with...
2
by: Robert Stearns | last post by:
After working well for most of a week, my application with the mysterious php/db2 problem is now failing again. No one has worked on the php code this week. We're running DB2 8.1.5, php 4.3.6...
6
by: akaodin | last post by:
Hi, I am trying to install my copy of the DB2 Universal Workgroup Server Edition on my Linux server (RedHat 9.0, kernel 2.4.20-6) and it will not let me past the db2setup because of a Java error...
8
by: mark.bergman | last post by:
I am porting from Digital Unix to Linux (RHEL 4), and am seeing a difference in the return value of glob(). Given a non-existant directory "/tmp/a", and the following line of code: result =...
1
by: sureshbup | last post by:
Hi to all, I am trying to install CPAN modules using the command perl -MCPAN -e 'install qw (Text::CSV_XS)' but i get the problem like this even i changed the working proxies but none is...
1
by: mhearne808[insert-at-sign-here]gmail[insert-dot-he | last post by:
I can't seem to get the zlib module to build on an RHEL box. I did the following: 1) Download zlib 1.2.3 2) configure;make;make install 3) Download python 2.5.2 4) configure;make;make install...
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
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.