Apache2 configuration for php5 : apxs not found

Posted on 2006-06-14
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/ /bin/sh: bad interpreter: Permission denied
/data2/apache/httpd-2.0.58/srclib/apr/configure: /data2/apache/httpd-2.0.58/srclib/apr/build/ /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 500 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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…
Windows 7 does not have the best desktop search built in. This is something Windows 7 users have struggled with. You type something in, and your search results don’t always match what you are looking for, or it doesn’t actually work at all. There ar…
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.

724 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