/usr/sbin/apache2 is not a supported Apache binary or control script.
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
/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
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)
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.
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
/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:
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.