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

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

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

There may be an issue with certbot 0.17 and python 2.6…
Can you update the python to 2.7?

1 Like

Hi thanks for the reply. As I mentioned first time using a server so all new to me. I had a look around re: update python 2.6 to 2.7 on Centos 6.3 and the guides vary a little to a lot. Most with warning if not done right you might break yum. Any suggestions on a guide that is good of how to do this would be helpful.

Thanks again
Darren

Hi again,

Most of the guides I found a very long. I have come across the guide which seems pretty straight forward , not sure if its correct though.
https://www.softwarecollections.org/en/scls/rhscl/python27/

Any thoughts on if that guide would do the trick ?

Thanks

if you aren’t using python for any other purpose - certbot only.
then it’s safe to remove it and try certbot-auto (which should load/install all requirements)

if that fails, try
apt-get update
apt-get install python
or
yum -y update
yum install -y python27

I believe CentOS (and many other Linux flavors) rely heavily on Python, and modifying the system Python can be an issue. You can install multiple versions alongside each other, however.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.