• VMware

    Learn about VMware virtualization for its products like vsphere ESX and ESXi, vCenter Server, VMware View, VMware P2V and many more

  • Linux

    Step by step configuration tutorials for many of the Linux services like DNS, DHCP, FTP, Samba4 etc including many tips and tricks in Red Hat Linux.

  • Database

    Learn installation and configuration of databases like Oracle, My SQL, Postgresql, etc including many other related tutorials in Linux.

  • How to fix "/www/bin/apxs: No such file or directory"

    The other day I was trying to compile php in one of my Linux machine and this error threw up. Well
    then I thought let me provide a solution for this on my blog as well.

    This error comes when you are trying to compile php with Apache.
    # ./configure --with-apxs=/www/bin/apxs
    Well I was following the INSTALL directory present inside the downloaded php directory which told me to compile using the above syntax if I wanted to integrate my php with Apache. Initially I didn't recognized that the path I was using for apxs was not correct but anyhow we will come to know about it once we run the command.


    This happens because of the following missing package
    1. httpd
    2. httpd-devel (important)
    In most cases httpd-devel package is missing which leads to this error.

    On Red Hat, Fedora, CentOS
    # yum install httpd httpd-devel
    Once the package is installed look out for apxs in your machine
    # which apxs

    So as you see the location of apxs is different as we were using in our command. Now try to compile your PHP
    # ./configure --with-apxs=/www/bin/apxs
    NOTE: If your Apache version is higher than 1.3 then you will have to use apxs2 instaed of apxs.
    # ./configure --with-apxs2=/www/bin/apxs

    I hope the article was useful.

    How to fix "/www/bin/apxs: No such file or directory" How to fix "/www/bin/apxs: No such file or directory" Reviewed by admin on Friday, May 17, 2013 Rating: 5

    1 comment:

    1. Hi Deepak,

      Thanks for the above article.
      I have a small doubt. I have installed apache using source httpd-2.2.27.tgz and found that apxs is missing If I want to get it do I need to install default httpd again or is there any other way to compile the same. Please let me know if possible mail me



    Powered by Blogger.