Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-30-2009, 02:52 AM   #1
LQ Newbie
Registered: Apr 2007
Posts: 7

Rep: Reputation: 0
Compiling my own apache2 on debian -- no /usr/sbin/apache2 ???

Working on a debian lenny server (rackspace), and trying to compile my own apache2 server.

So, I did like any good sysadmin, and made a quick script to make installation and maintainance easier. Very straightforward.

Now, the script seems to have gone through and been just happy, except for one problem: There is no /usr/sbin/apache2
I have /usr/sbin/apache2ctrl, but without the apache2 executeable, nothing happens when I run it.

Any other sysadmins able to help me get a /usr/sbin/apache2 file to appear?

Script is here:
Logs are here:
Old 11-30-2009, 03:04 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,480

Rep: Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481Reputation: 1481
You don't have a "--prefix=/some/path" in your script, so apache is installed in the default /usr/local/apache2 directory. So the correct apachectl script is /usr/local/apache2/bin/apachectl and the binary you might be looking for is /usr/local/apache2/bin/httpd.
I guess that /usr/sbin/apache2 comes from a previous apache installation.

1 members found this post helpful.
Old 11-30-2009, 03:21 AM   #3
LQ Newbie
Registered: Apr 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Ah-ha! One symbolic link later, and I have more stuff working. Thanks for the point in the right direction.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
cannot access `/usr/local/apache2/modules/' gravesb Linux - Software 13 12-02-2011 02:56 AM
Apache2 - have to restart apache2 process every 10 mins to clear /tmp directory.... levi dehaan Linux - Software 8 09-01-2009 06:34 PM
SuSe Apache2 error: cannot adjust 'apache2' service sir_shunt SUSE / openSUSE 14 04-18-2006 11:36 AM
Cannot load /usr/lib/apache2/ into server Kristijan Slackware 1 10-08-2005 12:28 AM
strange problems compiling apache2, and/or mysql in debian JLTB Linux - Newbie 2 08-14-2004 04:30 PM

All times are GMT -5. The time now is 01:41 AM.

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