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
#41
[Solved] RE: [MODULE][WIP] Sencrypt Let's Encrypt SSL Module
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);
●●●●●●●
My Sentora DemoMy GithubAuxio Github
Zentora themeS-Type themeCstyleX theme
flat-color-iconssmall-n-flat-icons
●●●●●●●


Reply
Thanks given by:
#42
[Solved] 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 - Head of Support

SEARCH the Forums or read the DOCUMENTATION before posting!
Modules Maintained: 13 - Module Installs: 108k+

Find my support or modules helpful? Donate HERE
Get your domains using my affiliate link:
GoDaddy - Domains
Reply
Thanks given by:


Possibly Related Threads...
Thread Author Replies Views Last Post
WHMCS Module on PHP 7.1 server dead. aaronlroberts 4 260 11-13-2018, 08:57 AM
Last Post: fearworks
[MODULE] xBilling modpluz 230 266,103 10-17-2018, 10:43 AM
Last Post: republicus
A whmcs Module is necessary v8web 1 535 03-23-2018, 09:45 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)