Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Applications > Apache 2 install problems

Forgot Password?
 Linux Applications   I cant get "X" app to work... also discussion about linux programs.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 12-09-2003   #1 (permalink)
Just Joined!
 
Join Date: Dec 2003
Posts: 2
Apache 2 install problems

Am a *nix newbie & here is a problem that has been driving me crazy for the last 36 hours or so.

I've attempted a clean install of Apache 2.0.48.

[1] I have successfully installed it in /usr/local/apache using the following steps:

(a) ./configure --prefix=/usr/local/apache --with-php --with-mysql --withsusexec --enable-mods-shared=all --disable-info
(b) make
(c) make install


[2] However, whenever httpd or apachectl runs it is looking for the conf directory in /usr/local/apache2. The error msgs I get are as follows:

(a) httpd: could not open document config file /usr/local/apache2/conf/httpd.conf

(b) /usr/local/apache/bin/httpd: error while loading shared libraries: libaprutil-0.so.0: cannot open shared object file: No such file or directory

I found this link: http://www.freelists.org/archives/o...2/msg00254.html

So I tried what was suggested in there:

[1] CFLAGS="-DBEOS" ./configure --prefix=/usr/local/apache --with-php --with-mysql --with-susexec --enable-mods-shared=all --disable-info

[2] make; make install;

However during the make process I get the following errors:

In file included from /root/httpd-2.0.48/srclib/apr-util/include/apr_buckets.h:70,
from /root/httpd-2.0.48/include/httpd.h:82,
from /root/httpd-2.0.48/include/ap_listen.h:59,
from /root/httpd-2.0.48/server/exports.c:16:
/root/httpd-2.0.48/srclib/apr/include/apr_mmap.h:70:23: kernel/OS.h: No such file or directory
In file included from /root/httpd-2.0.48/srclib/apr-util/include/apr_buckets.h:70,
from /root/httpd-2.0.48/include/httpd.h:82,
from /root/httpd-2.0.48/include/ap_listen.h:59,
from /root/httpd-2.0.48/server/exports.c:16:
/root/httpd-2.0.48/srclib/apr/include/apr_mmap.h:105: parse error before "area_id"
/root/httpd-2.0.48/srclib/apr/include/apr_mmap.h:105: warning: no semicolon at end of struct or union
/root/httpd-2.0.48/srclib/apr/include/apr_mmap.h:127: parse error before } token
make[2]: *** [/root/httpd-2.0.48/server/exports.lo] Error 1
make[2]: Leaving directory `/root/httpd-2.0.48/server
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/httpd-2.0.48/server
make: *** [all-recursive] Error 1


Any suggestions? Thanks.
vinny is offline  



Reply With Quote
Old 12-09-2003   #2 (permalink)
Linux Guru
 
Join Date: Apr 2003
Location: London, UK
Posts: 3,284
Re: Apache 2 install problems

Quote:
Originally Posted by vinny
Am a *nix newbie & here is a problem that has been driving me crazy for the last 36 hours or so.

I've attempted a clean install of Apache 2.0.48.

[1] I have successfully installed it in /usr/local/apache using the following steps:

(a) ./configure --prefix=/usr/local/apache --with-php --with-mysql --withsusexec --enable-mods-shared=all --disable-info
(b) make
(c) make install


[2] However, whenever httpd or apachectl runs it is looking for the conf directory in /usr/local/apache2. The error msgs I get are as follows:

(a) httpd: could not open document config file /usr/local/apache2/conf/httpd.conf

(b) /usr/local/apache/bin/httpd: error while loading shared libraries: libaprutil-0.so.0: cannot open shared object file: No such file or directory
Create a symlink that links /usr/local/apache2/ to /usr/local/apache/, that should solve the problem. I always get the params around the wrong way.... here goes: "ln -s /usr/local/apache2/ /usr/local/apache/". If that doesnt work, change the apache dirs around..

Jason
jasonlambert is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 09:14 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1