Solved

Apache2 configuration for php5 : apxs not found

Posted on 2006-06-14
7
691 Views
Last Modified: 2012-05-05
Hello,

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
Regards
0
Comment
Question by:Anupama_2005
  • 2
7 Comments
 
LVL 7

Expert Comment

by:imacgouf
ID: 16909459
Is it

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

Expert Comment

by:imacgouf
ID: 16909467
Just for your reference, here is one on Setting Up PHP 5 Under Suse 9.1
http://www.artima.com/forums/flat.jsp?forum=271&thread=70581
0
 

Author Comment

by:Anupama_2005
ID: 16909693
Hello,

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 ?
Regards
Amit

0
 
LVL 12

Accepted Solution

by:
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 :

http://httpd.apache.org/docs/2.2/programs/configure.html#configurationoptions

Here's a typical compile configure that we use:

http://www.Musics.com/Status/38.revert.Bach.08.Apache2.MAPPS.html

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.

0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Key Card and Motion Sensor 1 235
Staging desktop / laptop tools 5 110
Windows pro to home 2 84
Windows 8 - Second Application Launching 2 38
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…
In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
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.

815 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now