Cannot compile new PHP with apxs

Discussion in 'Installation/Configuration' started by olli, Apr 19, 2005.

  1. olli

    olli New Member

    Hi,

    I have a dedicated server, it currently has Apache 2 and PHP 4.2.x installed on it. I'm trying to install PHP 4.3.11 on it.

    I have compiled PHP 4.3.11 on the machine, but Apache is still using the old version. I think this is because I didn't specify --with-apxs2=/path/to/apxs. I didn't do it, because I don't know the path to apxs. I can't find it anywhere on the server.

    I still have an httpd.conf file and everything.... and a directory for modules.... but I can't for the life of me find the path to apxs so that PHP ./configure can create the libphp4.so file.....

    Don't know what to do now... :( Please help!

    Olli
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Run

    Code:
    updatedb
    locate apxs
    to find apxs.
     
  3. olli

    olli New Member

    updatedb and locate don't seem to be installed on my system... :( Any hints?

    Olli
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Run yast and install the package findutils-locate. Afterwards, updatedb and locate will be on your system.
     
  5. olli

    olli New Member

    That did the trick. :) :)

    Thanks!

    Olli
     
  6. areamike

    areamike New Member

    I did the above information to find path to apxs. All I get is path to

    /var/www/manual/programs/apxs.html.ko.euc-kr
    /var/www/manual/programs/apxs.html.en
    /var/www/manual/programs/apxs.html

    I cannot find th epath to apxs.

    I am running Redhat Enterprise 4 ES
     
  7. falko

    falko Super Moderator Howtoforge Staff

    You must install the apache-devel package.
    I'm not quite sure if RHEL uses yum or up2date as package manager. If it's yum, you can run
    Code:
    yum search apache
    to find the apache-devel package, and you can install it with
    Code:
    yum install <package_name>
    I don't know the syntax for up2date, so you better check with
    Code:
    man up2date
     
  8. areamike

    areamike New Member

    Thanks for the reply.
    It looks like RHEL4 uses up2date.
    However, there is no apache-devel package available for RHEL4.

    Looks like I will be compiling Apache manually myself...and just not use the default apache package that installs with Redhat.

    thanks.
     
  9. falko

    falko Super Moderator Howtoforge Staff

    I can't imagine that... Are you sure? You should search again. Its name might not be apache-devel, but something with apache in it.
     
  10. areamike

    areamike New Member

    I know. I was surprised too.
    I did an extensive search, but no luck.
    I'll check again.
     
  11. radical

    radical New Member

    It is included in RHEL4 or at least it's in CentOS 4. Install the package package "httpd-devel".
     
  12. areamike

    areamike New Member

    Sorry FALKO, After searching around and after radical's comment. I was able to find httpd-devel rpm on DISC4 for RHEL4.

    Thanks~!

    Now off to try and install PHP again...
     

Share This Page