LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-30-2005, 02:35 AM   #1
Vantasticman777
LQ Newbie
 
Registered: Nov 2005
Posts: 6

Rep: Reputation: 0
Problem installing Apache Modules


I get the following error message when installing any Apache modules:

Can't exec "/usr/bin/apr-config": No such file or directory at /usr/sbin/apxs line 49.
Use of uninitialized value in scalar chomp at /usr/sbin/apxs line 54.
apxs:Error: /usr/bin/apr-config not found!.

I searched and could not find any apr-config file. Where do I get a correct apr-config file?

My stuff: CentOS 3.5 & Apache 2.0.54

Thanks,
Van
 
Old 11-30-2005, 03:43 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Did you compile apache yourself or get it from somewhere else?

As far as I know you specifically need to enable APXS support when compiling apache - if you got a binary distribution of apache, it might be that whoever you sourced it from did not include APXS support when configuring and compiling apache...

You best approach (if this isn't what you've done already) might be to download a source archive of the latest apache version (I think it is 2.0.54 which you already have) and compile it yourself.

It's not that hard, try the following steps:

1. Get the source archive.
2. Unbzip / ungzip it with either

tar zxvf archive.tar.gz

if you got a .gz archive, or

bunzip2 archive.tar.bz2
tar xvf archive.tar

if you got a .bz2 archive.

3. Change into the resulting directory.

4. In the apache source directory, type

./configure --help | grep apxs

5. If you just get your terminal prompt again, with no info about an apxs entry also try

./configure --help | grep APXS

6. This will show you what configuration option to set to specifically enable APXS, if any.

7. Now, once you have the needed parameter do

./configure --with-apxs

if applicable.

8. Wait untilt he configure completes, then do

make

9. Wait again. When done, and you have your terminal prompt back, become superuser by typing

su

end entering your password.
a
10. Type

make install

11. This will then install apache.

Try and install a module again, most likely you will now have APXS support for the modules you need to install...

Regards,
 
Old 12-01-2005, 01:14 AM   #3
Vantasticman777
LQ Newbie
 
Registered: Nov 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks, I will give it a shot the next few days. My host installed the OS and Apache on my VPS account. There was not a lot of documentation on APXS available.

Van
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem when installing apache jpan Linux - General 1 11-03-2004 08:17 PM
Installing apache modules dominant Linux - Newbie 0 07-21-2004 04:48 AM
problem with modules install after installing module-init-tools fobius Linux - Software 4 02-01-2004 03:40 PM
Problem installing Apache 2.0.47 RPM on Redhat 9 linub Linux - Software 0 10-20-2003 06:04 PM
Installing Modules - Depmod problem cardboard Linux - Newbie 7 06-10-2001 03:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration