Cannot find Apache control command apachectl,Python 2.6 is no longer supported by

General support questions
Post Reply
mbt
Posts: 1
Joined: 2017/09/04 17:54:02

Cannot find Apache control command apachectl,Python 2.6 is no longer supported by

Post by mbt » 2017/09/04 18:16:23

Hi ,

I am trying to install Let’s Encrypt Cert using Centos6/Apache on hosting provider Vultr. For the domain
mybigtoeinfo.com

I am using the guide from the following link for install steps;
https://certbot.eff.org/#centos6-apache.

During the setup I

2017-09-04 14:23:07,056:DEBUG:certbot.main:certbot version: 0.17.0
2017-09-04 14:23:07,056:DEBUG:certbot.main:Arguments: [’–apache’]
2017-09-04 14:23:07,056:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2017-09-04 14:23:07,074:DEBUG:certbot.log:Root logging level set at 20
2017-09-04 14:23:07,074:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2017-09-04 14:23:07,075:DEBUG:certbot.plugins.selection:Requested authenticator apache and installer apache
2017-09-04 14:23:07,102:WARNING:certbot.plugins.util:Failed to find executable apachectl in PATH: /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/apache/bin
2017-09-04 14:23:07,103:DEBUG:certbot.plugins.disco: **installation (PluginEntryPoint#apache): Cannot find Apache control command apachectl
Traceback (most recent call last):
File “/root/.local/share/letsencrypt/lib/python2.6/site-packages/certbot/plugins/disco.py”, line 130, in prepare
self._initialized.prepare()
File “/root/.local/share/letsencrypt/lib/python2.6/site-packages/certbot_apache/configurator.py”, line 173, in prepare
’Cannot find Apache control command {0}’.format(restart_cmd))
NoInstallationError: Cannot find Apache control command apachectl
2017-09-04 14:23:07,104:DEBUG:certbot.plugins.selection:No candidate plugin
2017-09-04 14:23:07,104:DEBUG:certbot.plugins.selection:Selected authenticator None and installer None

[root@drupalcc5 ~]# sudo env PATH=$PATH:/usr/local/apache/bin ./certbot-auto --apache
/root/.local/share/letsencrypt/lib/python2.6/site-packages/cryptography/init.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of cryptography will drop support for Python 2.6
DeprecationWarning

I have looked at upgrading Python 2.6 to 2.7 on Centos 6.3 but I have found various guides on how to do this which vary. But many say if not done right you risk breaking Yum. This is the first time I have used Centos and have little knowledge about working in servers. I did however find this short guide which sounds simple compared to all the others I seen. Can anyone tell me if this method listed here is correct https://www.softwarecollections.org/en/ ... /python27/ or give me some help on how to move to 2.7

This is the first time I have run a server , I have had a look at some suggested fixes but they vary and I rather not make a mistake. Can someone help me work a solution for this ?

Thanks all!
Darren

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Cannot find Apache control command apachectl,Python 2.6 is no longer supported by

Post by TrevorH » 2017/09/04 21:30:47

You're getting a _warning_ from certbot about python 2.6 - I would ignore that as it's just a warning.

Your *error* is the lack of apachectl - what does rpm -q httpd say? If it says it's not installed then yum install httpd and try your steps again.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

mghe
Posts: 766
Joined: 2015/11/24 12:04:43
Location: Katowice, Poland

Re: Cannot find Apache control command apachectl,Python 2.6 is no longer supported by

Post by mghe » 2017/09/05 05:03:57

You can use # certbot certonly --standalone -d yourdomain.com against certbot-auto --apache

Read documentation about --standalone argument and add proper entry to crontab to recert.

Post Reply