Failed to find directory path

I need some help with installing the SSL certificate on my server.

when I run this:

./certbot-auto certonly

I can see there is an error:

certbot-auto certonly
/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
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Failed to find executable apachectl in PATH: /usr/local/jdk/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin

How would you like to authenticate with the ACME CA?

1: Place files in webroot directory (webroot)
2: Spin up a temporary webserver (standalone)

I try to choose the 1 but I cant find the webroot directory for my site when it ask for me to webroot directory.

Do you know how I can find out what is the directory for my website workwithchris.com?

Hi @chris0147,

Do you know what web server software you use to host your web site?

Where do you put files in order to make them part of your web site’s content?

Since your domain appears to be parked with GoDaddy, you also might not have pointed the domain at your web server yet! This isn’t the reason for the error message that you saw, but you will most likely need to point your domain at the web server in order to use Certbot.

I use apache 2.4.16 (unix) on my server. I also have cpanel with easy apache v3.30.5 version.

I store the files in /home/chris0147/public_html/ folder. The name of the folder for my web site content is “workwithchris”.

I have looked on Godaddy, actually you was right. I have parked my domain with Godaddy and I did not pointed the domain on my web server. I have checked the domain on my server via “Edit DNS Zone” to make sure the domain is point at my server which it did not. I have removed it and reset it to make it go fresh like new again, so now I can see that I have point the domain on my web server.

Do you have a feature in cPanel to get a certificate inside cPanel? Some versions offer that, which would be a convenient alternative to running Certbot.

I dont know what you mean by feature in the cPanel. Can you please explain what you mean by feature in the cPanel give me an example?

It’s called AutoSSL. I have never used cPanel myself, so I’m not immediately sure where to tell you to look for it.

I dont have them. How I can download them??

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