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

apxs problem when updating PHP

Hope someone can point me in the right direction to fix this one...

I'm currently running Apache 2.0.40 and PHP 4.2.2 on a RedHat9 server.
I'm needing to update to PHP5 but don't want to change the way the rest
of the server is configured. So far I've done the following...

1. Copied the following from phpinfo to get the current configuration...

'./configure' '--host=i386-redhat-linux' '--build=i386-redhat-linux'
'--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--cache-file=../config.cache'
'--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d'
'--enable-force-cgi-redirect' '--disable-debug' '--enable-pic'
'--disable-rpath' '--enable-inline-optimization' '--with-bz2'
'--with-db3' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin'
'--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd'
'--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext'
'--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr'
'--with-openssl' '--with-png' '--with-pspell' '--with-regex=system'
'--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU'
'--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes'
'--enable-safe-mode' '--enable-sockets' '--enable-sysvsem'
'--enable-sysvshm' '--enable-discard-path' '--enable-track-vars'
'--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8'
'--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl'
'--with-kerberos=/usr/kerberos' '--with-ldap=shared'
'--with-mysql=shared,/usr' '--with-pgsql=shared'
'--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack'
'--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath'
'--enable-shmop' '--enable-versioning' '--enable-calendar'
'--enable-dbx' '--enable-dio' '--enable-mcal' '--with-apxs2=/usr/sbin/apxs'

....and pasted it into a text file called conf

2. Downloaded php 5.0.2 source and unzipped it.

3. Copied the conf file to the same directory and made it executable.

4. Ran ./conf to run the configure command with the same options as the
current setup.

First question is, should this have worked?

Next, why doesn't it? The configure command seems to churn away happily
for a bit, then gets stuck with apxs.

"Sorry, I cannot run apxs. Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

follows:t of /usr/sbin/apxs
: No such file or directoryr/sbin/apxs
configure: error: Aborting
: command not found"

Now, to go through this...
1. Perl is installed and I'm able to run Perl script on the server.
whereis perl replies with /usr/bin/perl and this matches the #! line in
the apxs script.
2. As you can see from the configure options, the location of apxs is
specified and is correct.
3. Running httpd -l shows that mod_so.c was compiled in.

At this point, I run out of ideas. Any help would be greatly appreciated.

Thanks.

Derek
Jul 17 '05 #1
2 6873
On Sun, 26 Sep 2004 19:20:09 +0100, Derek Scollon
<ds******@scotwebsolutions.com> wrote:
Next, why doesn't it? The configure command seems to churn away happily
for a bit, then gets stuck with apxs.

"Sorry, I cannot run apxs. Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

follows:t of /usr/sbin/apxs
: No such file or directoryr/sbin/apxs
configure: error: Aborting
: command not found"
This bit looks a bit mangled; could you either confirm this is exactly how it
appears, or copy&paste it again?
Now, to go through this...
1. Perl is installed and I'm able to run Perl script on the server.
whereis perl replies with /usr/bin/perl and this matches the #! line in
the apxs script.
2. As you can see from the configure options, the location of apxs is
specified and is correct.
What user are you running this as, and is /usr/sbin/apxs executable?
3. Running httpd -l shows that mod_so.c was compiled in.


--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #2
Andy Hassall wrote:
On Sun, 26 Sep 2004 19:20:09 +0100, Derek Scollon
<ds******@scotwebsolutions.com> wrote:

Next, why doesn't it? The configure command seems to churn away happily
for a bit, then gets stuck with apxs.

"Sorry, I cannot run apxs. Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

follows:t of /usr/sbin/apxs
: No such file or directoryr/sbin/apxs
configure: error: Aborting
: command not found"

This bit looks a bit mangled; could you either confirm this is exactly how it
appears, or copy&paste it again?

Now, to go through this...
1. Perl is installed and I'm able to run Perl script on the server.
whereis perl replies with /usr/bin/perl and this matches the #! line in
the apxs script.
2. As you can see from the configure options, the location of apxs is
specified and is correct.

What user are you running this as, and is /usr/sbin/apxs executable?

3. Running httpd -l shows that mod_so.c was compiled in.



Yes, that was exactly as it appeared. It looked strange to me too, as if
part of the message was being overwritten on the screen.

I'm running this as root and apxs is indeed executable (rwxr-xr-x).

Derek
Jul 17 '05 #3

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

Similar topics

1
by: jon rogers | last post by:
Hi I'm new to PHP. I have a RHLinux 9 box running Apache httpd 2.0.40 and MySQL Ver 12.18 Distrib 4.0.12. I downloaded PHP 4.3.4 (tar.gz) - 03 November 200 and tried $ ./configure...
3
by: jon rogers | last post by:
Thanks for the advice I got, but I still cannot install PHP. >./configure --with-mysql --with-apxs2=/path/to/apxs2 > >http://uk.php.net/manual/en/install.apache2.php So what is my...
11
by: Jason | last post by:
Let's say I have an html form with 20 or 30 fields in it. The form submits the fields via POST to a php page which updates a table in a database with the $_POST vars. Which makes more sense? ...
3
by: StupidScript | last post by:
phpinfo() (4.2.2) shows that the configure flags included --with-apxs2=/usr/sbin/apxs There is no apxs program/file on my computer. httpd -l shows mod_so.c , so DSO is definitely compiled into...
2
by: Hal Vaughan | last post by:
First, I am aware of both SwingUtilities.invokeLater(), and of using Thread to create a new thread.  These are part of the problem. I want to have something running in the background, while the...
5
by: khan | last post by:
this is my code, it is updating QTY on Hand when you make a new sale or if you got some product returned. Now as it is updating QTY when qty textbox lost focus if some one is going through...
10
by: jaYPee | last post by:
does anyone experienced slowness when updating a dataset using AcceptChanges? when calling this code it takes many seconds to update the database SqlDataAdapter1.Update(DsStudentCourse1)...
1
by: vijaykumars | last post by:
+-----------------------------------------------------------------------------+ Summaries: +-----------------------------------------------------------------------------+ Installation...
5
by: mechphisto | last post by:
I have a FC 7 box with PHP 5.2.4 and I'm installing mcrypt. To do that, I have to recompile PHP with the libmcrypt switches in the ./ configure. So I downloaded the latest PHP source files, and...
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...
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
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,...
0
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...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.