LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-19-2010, 12:02 PM   #1
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Rep: Reputation: 31
/usr/sbin/apache2 is not a supported Apache binary or control script.


I am trying to install Google Sitemap Generator at server. I am getting the following errors:

Quote:
This installation updates the Apache configuration file. To find that file,
the installer needs the location of the Apache binary (httpd) or control
script (apachectl). The binary or control script that you specify must
support the -V option.
What is the location of the Apache binary or control script? [/usr/sbin/apache2]
Can't determine Group directive for Apache.
/usr/sbin/apache2 is not a supported Apache binary or control script.
Do you want to enter a different location for the Apache binary or control script? [Y/n]n
The Google Sitemap Generator installation has been aborted.
Has anyone done this install before? Please help. Thanks
 
Old 08-19-2010, 12:20 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You didn't say your distro, but I guess it's debian or ubuntu, as you're talking about /usr/sbin/apache2. For these distros the correct file you need is /usr/sbin/apache2ctl.
For other distros (like rhel based) it's /usr/sbin/apachectl (or /usr/bin/httpd)

Regards

Last edited by bathory; 08-19-2010 at 12:28 PM.
 
Old 08-19-2010, 12:30 PM   #3
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Original Poster
Rep: Reputation: 31
Yes, i'm using Ubuntu. I will try that in a moment and let you know the output. Thanks!
 
Old 08-19-2010, 02:31 PM   #4
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Original Poster
Rep: Reputation: 31
i tried your suggestion and no luck:
Quote:
New location for the Apache binary or control script:/usr/sbin/apache2ctl
Can't determine Group directive for Apache.
/usr/sbin/apache2ctl is not a supported Apache binary or control script.
 
Old 08-19-2010, 04:41 PM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Huh. If it doesn't like apache2ctl, try httpd. Does any of the following work?
Code:
/usr/sbin/apache2ctl -V
/usr/sbin/httpd -V
Quote:
Can't determine Group directive for Apache.
I guess the script is looking for the Group directive that is usually in httpd.conf. In ubuntu this file does not exist or it's empty. So you can delete it if it exists and then make a symlink to apache2.conf
Code:
ln -s /etc/apache2/apache2.conf /etc/apache2/httpd.conf
 
Old 08-20-2010, 01:20 PM   #6
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Original Poster
Rep: Reputation: 31
/usr/sbin/apachectl -V
-bash: /usr/sbin/apachectl: No such file or directory
/usr/sbin/httpd -V
-bash: /usr/sbin/httpd: No such file or directory

I will do that ln later today. thanks!
 
Old 08-20-2010, 03:41 PM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
/usr/sbin/apachectl -V
-bash: /usr/sbin/apachectl: No such file or directory
/usr/sbin/httpd -V
-bash: /usr/sbin/httpd: No such file or directory
Are you sure you have all the necessary apache packages and you run the above command as root? The 1st command is /usr/sbin/apache2ctl and the 2nd could be /usr/sbin/apache2. Check /usr/sbin to find the correct names.
After that, as root, you can run:
Code:
./install.sh -g www-data -c /etc/apache2/apache2.conf -t /usr/sbin/apache2ctl
You can read more about install.sh here
 
Old 08-20-2010, 06:09 PM   #8
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Original Poster
Rep: Reputation: 31
my mistake! should be: (i forgot the 2 in 'apache2ctl -V)

Quote:
sudo /usr/sbin/apache2ctl -V
Server version: Apache/2.2.12 (Ubuntu)
Server built: Aug 18 2009 13:02:37
Server's Module Magic Number: 20051115:23
Server loaded: APR 1.3.8, APR-Util 1.3.9
Compiled using: APR 1.3.8, APR-Util 1.3.9
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT=""
-D SUEXEC_BIN="/usr/lib/apache2/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
-D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"
 
Old 08-21-2010, 02:31 AM   #9
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
It's ok.
So the command from my previous post should do the job:
Quote:
./install.sh -g www-data -c /etc/apache2/apache2.conf -t /usr/sbin/apache2ctl
Did you try it?
 
Old 08-21-2010, 09:54 AM   #10
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Original Poster
Rep: Reputation: 31
That worked!! Thanks bathory you are the best!!
I couldn't find a proper way to install this for Ubuntu. Not even at the Google sitemap's help website.
Now we have the answer!
Thanks again!
 
  


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
Dansguardian binary file in /usr/local/sbin dies out from time to time? linuxlover.chaitanya Linux - Server 3 05-21-2010 02:01 AM
[SOLVED] Compiling my own apache2 on debian -- no /usr/sbin/apache2 ??? jippen Linux - Server 2 11-30-2009 03:21 AM
How to run the /usr/sbin/in.tftpd script in the background continuously? sharu99 Linux - Newbie 8 10-31-2008 12:20 AM
RM system file /usr/sbin/apache-modconf by accident. How do i replace? alexxxis Debian 2 12-23-2006 02:33 PM
Can't find adsl-setup script in /usr/sbin caddie Linux - Newbie 1 09-11-2002 10:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:03 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