Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Apache2 configuration for php5 : apxs not found

Posted on 2006-06-14
Medium Priority
Last Modified: 2012-05-05

We are trying to install php5 on SuSe 10 OSS. Before this we need to configure Apache for php which is done using ./configure with apxs but in our case I can not located apxs in /usr/sbin directory where apache2ctl is installed.

I have installed 2 different versions of Apache but apxs is still not visible in server, though man pages for apxs are available.

where I run ./configure it says
/bin/sh bad interpreter Permission Denied.

Could you please provide some solution why apxs is not getting installed ?

Many Thanks
Question by:Anupama_2005
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Expert Comment

ID: 16909459
Is it

# ./configure --with-apxs2=/usr/local/apache2/bin/apxs

Expert Comment

ID: 16909467
Just for your reference, here is one on Setting Up PHP 5 Under Suse 9.1

Author Comment

ID: 16909693

I have not yet started with php5 configuration, It gives error while configuring Apache itself

I downloaded httpd-2.0.58 and when I say  

sh ./configure --enable-so


Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Configuring APR library
Platform: i686-pc-linux-gnu
checking for working mkdir -p... yes
/data2/apache/httpd-2.0.58/srclib/apr/configure: /data2/apache/httpd-2.0.58/srclib/apr/build/get-version.sh: /bin/sh: bad interpreter: Permission denied
/data2/apache/httpd-2.0.58/srclib/apr/configure: /data2/apache/httpd-2.0.58/srclib/apr/build/get-version.sh: /bin/sh: bad interpreter: Permission denied
APR Version:
checking for chosen layout... apr
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
configure failed for srclib/apr

What could be the reason for this ?

LVL 12

Accepted Solution

GinEric earned 2000 total points
ID: 16925602
/bin/sh is being flagged as a bad interpretor.  I think maybe you need to re-read also :


Here's a typical compile configure that we use:


Maybe you've confused enable-sockets with enable-shared, because we don't use "enable-so" for the very reason that abbreviations can, and often do, conflict as GNU changes.

You're supposed to disable-static when you use enable-shared also.

More imporantly, you got an Access Denied, which means some directory does not have proper permissions, or, the simple "execute bit" is not set for the script you're trying to execute!  Very likely.  Get /bin/sh properties and see if it even has execute permissions turned on.

The shell script must have permission to execute, by whomever is either installing or compiling, and the configure script must be correct.  and /bin/sh should be in /bin/sh

If you're trying to call it at some other location, it probably doesn't have permission, or, you're calling the wrong shell script.

Look into all I've said.


Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
I don't know if many of you have made the great mistake of using the Cisco Thin Client model with the management software VXC. If you have then you are probably more then familiar with the incredibly clunky interface, the numerous work arounds, and …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question