This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[MODULE][WIP] Sencrypt Let's Encrypt SSL Module
#42
RE: [MODULE][WIP] Sencrypt Let's Encrypt SSL Module
(11-23-2018, 12:33 AM)Ron-e Wrote: isn't this the class that handles the command lines, with here an example?

the cpuraminfo module just uses:
Code:
$mem = shell_exec("cat /proc/meminfo");

the zgodx module just uses:
Code:
exec("/etc/zpanel/bin/zsudo service postfix stop", $output);

You are correct, but for some reason I can never get it to work. Basically it needs to run something like:
Code:
sudo certbot certonly --webroot -w /var/sentora/hostdata/[client]/public_html/domain_com -d domain.com -d www.domain.com
Which I believe would be something like:
Code:
exec("/etc/sentora/bin/zsudo certbot certonly --webroot -w $hostdata_dir/$client/public_html/$domain_folder -d $domain -d www.$domain.com", $output);
Maybe I forgot the zsudo..? hmmm...

Maybe I'll find some time this weekend to test it out again.
-TGates - Project Council

SEARCH the Forums or read theĀ DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Thanks given by:


Messages In This Thread
RE: [MODULE][WIP] Sencrypt Let's Encrypt SSL Module - by TGates - 11-24-2018, 10:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
[Request] BoxBilling api module. cyber1995 4 13 ,381 10-23-2021, 05:29 AM
Last Post: sparkrack
Module Repo Beta Chris L 3 7 ,233 08-13-2021, 02:32 AM
Last Post: Chris L
Cloud module repo spoonman 0 2 ,548 02-28-2021, 01:34 AM
Last Post: spoonman

Forum Jump:


Users browsing this thread: 1 Guest(s)