Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run the command: apache2ctl configtest #739

Closed
NOYB opened this issue Aug 30, 2015 · 6 comments
Closed

Unable to run the command: apache2ctl configtest #739

NOYB opened this issue Aug 30, 2015 · 6 comments

Comments

@NOYB
Copy link

NOYB commented Aug 30, 2015

Fresh CentOS 7 Install

yum install httpd (httpd-2.4.6-31.el7.centos.1.x86_64)
yum install mod_ssl (mod_ssl-2.4.6-31.el7.centos.1.x86_64)

./venv/bin/letsencrypt -d subdomain.tld.com auth

Results in this message for option #1:
Apache Web Server - Alpha (apache) [Misconfigured]
More Info:
Reported Error: Unable to run the command: apache2ctl configtest

Run in Standalone Mode obtained certificate

./venv/bin/letsencrypt -d subdomain.tld.com run
"Unable to run the command: apache2ctl configtest"

Looks like the command should be apachectl configtest

@centminmod
Copy link

probably due to Letsencrypt client being Ubuntu OS centric and not accounting for CentOS specific package and file names

@NOYB
Copy link
Author

NOYB commented Aug 30, 2015

If I create an apache2ctl sym link to apachectl then only manual and standalone authentication modes are available (no Apache Web Server mode).
And letsencrypt -d domain run reports that "Configurator could not be determined".

@kuba
Copy link
Contributor

kuba commented Aug 30, 2015

Rather than messing with your distribution (e.g. symlinking) I would suggest to letsencrypt --apache-ctl apachectl -d domain run. You may also need to update --apache-enmond, --apache-dismod, --apache-init-script.

Note, that all flags can be set using configuration file (although there are some upstream problems currently: bw2/ConfigArgParse#26).

Could you please report back necessary values, so that we can update documentation?

@NOYB
Copy link
Author

NOYB commented Aug 31, 2015

Think --apache-server-root should be /etc/httpd. The current default appears to be /etc/apache2.
Haven't made any progress on the other options. Other than that the default for init script /etc/init.d/apache2 does not exist.

@jdkasten
Copy link
Contributor

Other distributions haven't attempted to be tackled yet.

Off the top of my head, here is what needs to be changed.

  1. Default locations (easy)
  2. Installing/enabling modules
  3. Virtual host loadout (pretty easy) - we need to change the one call to sites-available -> location of server_root (or a more apt place if there is one)

@bmw
Copy link
Member

bmw commented Oct 13, 2015

Closing this as a more specific form of #788.

@bmw bmw closed this as completed Oct 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants