Can’t locate ./apache-lib.pl at ./usr/share/webmin/apache/restart.cgi line 5.
from outside of the directory or:
WEBMIN_CONFIG not set at …/web-lib-funcs.pl line 5021.
Compilation failed in require at ./restart.cgi line 5.
from inside it.
I assume this uses something like:
service apache2 reload
systemctl reload apache2
But I would like to know for certain (and whether restart.cgi can otherwise be referenced/executed via the command line).
I have an IP-restricted folder on a website and users have to ask to have their IP added. I am considering how I might add a “ready for prime time” type of one-click “add new IP here” (for IPs already approved/users logged in to this site… not virtualmin), have it append the .conf file, and then do the apache reload. I just don’t want to miss anything that restart.cgi might do (or unnecessarily elevate privileges somewhere).