Configuration on InMotion VPS


My domain is:

My operating system is (include version): Centos 6.8

My web server is (include version): Apache 2.4.18

My hosting provider, if applicable, is: InMotion

I can login to a root shell on my machine (yes or no, or I don’t know): Yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): WHM 62

I have installed Certbot for Apache with SSH. I want to install an SSL certificate on my domain. I read the documentation for Apache at I don’t understand what to do after I have installed Certbot. Thanks.


Did you follow the guide on the home page too?

Entering “Apache” and “CentOS 6” would lead you to the following page:

There you would find the “how to” for your webserver + OS combination.


Thanks for your reply. Do you have any guidance as to a best practice for where / what directory / certbot ought to be installed in?


Not really… Just pick the most logical place you can think of. Where you can find it again after a while! (Seriously, there were people who “lost” their certbot-auto :grin:) /tmp/ would be a terrible choice for example, many users just run it from their home directory (or /root/ as most of the time you’d be running certbot as root). One might choose /opt/ as a location. I’m actually not sure what directories the certbot-auto script will generate, so perhaps /opt/certbot/ might be better.


OK so I installed certbot in /root. Then I ran the command ./path/to/certbot-auto --apache. I got this error

WARNING:certbot.plugins.util:Failed to find apachectl in PATH: /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/cpanel/composer/bin:/usr/local/easy/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin

I checked my /etc/letsencrypt/ directory and it is empty. Please advise, thanks.


Do you know where the apachectl command is? Can you run apachectl yourself as root?


No I don’t know where the apachect1 command is. I’m a novice with Linux. How would I find this out?


Could you try running

locate apachectl



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