ISPConfig is a web hosting control panel for Linux servers. A shell script can be used to automate common tasks like creating email accounts and websites, managing FTP users, and configuring SSL certificates.
curl https://get.ispconfig.org | sh
curl https://get.ispconfig.org | sh -s -- --use-nginx
grep 'def.*VERS' /usr/local/ispconfig/server/lib/config.inc.php
timedatectl
timedatectl list-timezones
timedatectl set-timezone Asia/Bangkok
- Create a backup folder
mkdir /home/backup
chmod 700 /home/backup
cd /home/backup
- Backup the database
mysqldump -u root -p dbispconfig > dbispconfig.sql
- Backup the ISPConfig software
tar pcfz ispconfig_software.tar.gz /usr/local/ispconfig
- Backup the configuration files in /etc
tar pcfz etc.tar.gz /etc
- Enable Maintenance Mode [System -> Main Config -> Misc -> Maintenance Mode]
- Update Master server first and Slave server
- Update from Stable only
- ISPConfig Backup: site backup in /usr/local/ispconfig and database backup in /var/backup after run script
cd /usr/local/bin/
ispconfig_update.sh
ispconfig_update.sh --force
ISPProtect is a powerful security tool designed to scan and protect web servers against malware and suspicious files. It offers comprehensive monitoring, detection, and removal of threats, ensuring enhanced security for server environments.
mkdir -p /usr/local/ispprotect
chown -R root:root /usr/local/ispprotect
chmod -R 750 /usr/local/ispprotect
cd /usr/local/ispprotect
wget https://www.ispprotect.com/download/ispp_scan.tar.gz
tar xzf ispp_scan.tar.gz
rm -f ispp_scan.tar.gz
ln -s /usr/local/ispprotect/ispp_scan /usr/local/bin/ispp_scan
ispp_scan
WP-CLI is a command line interface for WordPress. You can update plugins, configure multisite installations, and much more, without using a web browser. Efficient for developers and administrators, it simplifies many WordPress tasks through a simple command-line interface.
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
php wp-cli.phar --info
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
- Command Run
sudo -u web1 php /usr/local/bin/wp core version
wp core version --path=/var/www/clients/client1/web1/web
- Sort by priority update
sudo -u web1 wp plugin list
sudo -u web1 wp plugin update --all
sudo -u web1 wp theme list
sudo -u web1 wp theme update --all
sudo -u web1 wp core version
sudo -u web1 wp core update
- Another Command
sudo -u web1 wp user list
sudo -u web1 wp db check
sudo -u web1 wp menu item list main-menu