I am trying to install php 4.3.4 on my Redhat 9 box. I am currently at php-4.2.2-17. I

downloaded the php 4.3.4.tar.gz file -
checked to make sure I had dynamic capability (which I do) --> httpd -l and the following was

output:

Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c

So I entered in the command :

./configure --with-mysql --with-apxs

it returns:
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS...

Sorry, I was not able to successfully run APXS. Possible reasons:

  1. Perl is not installed;
  2. Apache was not compiled with DSO support (--enable-module=so);
  3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
    The output of apxs follows
    ./configure: line 3169: apxs: command not found

The most possible reason for the error is #3. I tried many different paths...but they all

return the same result. I tried searching my system for apsx....nothing found except for the

html document in the webroot (/var/www/html). I also looked in /usr/httpd/modules direcotry

where all the modules are....I didn't see the mod.so.c in there! Am I missing it? Does anyone

know the correct path to find this on a Redhat 9 box??

I looked at the following post - he had a similiar problem:

http://www.phpbuilder.com/board/showthread.php?threadid=1026

    What version of Apache are you using? Since it is RedHat 9, it is more than likely 2.0.40.

    Do the following:

    rpm -q httpd

    If it returns "httpd-2.0.40" then you should be using the option --with-apxs2 and not the --with-apxs option.

      Thanks for replying dcmbrown!

      When I run ./configure --with-mysql --with-apxs2

      it will compile for about am running Apache 2.0 ( httpd-2.0.40-21)

      Configuring SAPI modules
      checking for AOLserver support... no
      checking for Apache 1.x module support via DSO through APXS... no
      checking for Apache 1.x module support... no
      checking for member fd in BUFF *... no
      checking for mod_charset compatibility option... no
      checking for Apache 2.0 filter-module support via DSO through APXS... no
      checking for Apache 2.0 handler-module support via DSO through 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)

      The output of apxs follows:
      ./configure: line 5080: apxs: command not found
      configure: error: Aborting

        5 days later

        I'm a debian lover as you may tell from my avatar 🙂 I was just doing this last night and I had to install a Debain package called apache-dev to get the apxs (Apache 1.3xxxxx in deb still). Debian stuck it in /usr/bin as I recall. That's possibly where ./configure expects it to be? However, if that doesn't work, you can do a ...

        ./configure --help

        to find out how to specify your own path.

          I got the new php installed.....

          ./configure --with-httpd=/etc/httpd --with-mysql
          make
          make install

          I un-installed the old php-2.1 (rpms) and its dependicies.....

          I am trying to install the php-4.3.4.tar.gz in conjunction with Apache 2.0.41-21.5 (which is an rpm)

          How do I verify that it is up and working??

          While trying to research my problem - I found put some interesting points:

          • Apache 2.0 isn't recommended by the people at PHP (in a production environment)

          • installing a tarball (php) in conjuction with Apache (rpm) is not recommended.

            OK - Its definitley not working! I restarted my RedHat 9 box - went back to the php page I am working on - and it just shows the "Index of /horde" page with all the files and directories..(I am working on the Horde project) - www.horde.org

            I'm thinking I have to edit my php.ini.....

            Can you guys help me out??

            Thanks,

            Adrian

              Still not working!!

              I am getting just plain text in my browser each time I try to load a php file in my webroot...

              Adrian

                Write a Reply...