Author: @khoipro, alongs with Copilot.
The collection of helpful bash scripts to help you manage servers better. Written by me with Copilot suggestions. Tested.
- Install ioncube
- Migration WP Site
- OpenLitespeed/Nginx
- Ubuntu 20, 22 or 24 version
- Install ioncube for all PHP versions - OpenLitespeed
- Install ioncube for all PHP versions - nginx
- Migration script for WordPress (server to server)
- Change SSH port
- Automatic Tweak my.cnf
- Batch update WP Site (using wp-cli)
Login as root to run those commands.
wget https://raw.githubusercontent.com/codetot-web/runcloud-bash-scripts/refs/heads/main/install-ioncube.sh
chmod +x install-ioncube.sh
./install-ioncube.shThe sample result:
root@ubuntu:~# ./install-ioncube.sh
Downloading ionCube loaders...
Installing ionCube for PHP 7.4...
⚠️ Skipping PHP 8.0: loader file not found.
Installing ionCube for PHP 8.1...
Installing ionCube for PHP 8.2...
Installing ionCube for PHP 8.3...
Installing ionCube for PHP 8.4...
Restarting OpenLiteSpeed services...
Verifying ionCube installation...
Cannot load the ionCube PHP Loader - it was already loaded
ionCube Loader
the ionCube PHP Loader + ionCube24
ionCube not loaded for PHP 80
ionCube Loader
the ionCube PHP Loader
ionCube Loader
the ionCube PHP Loader
ionCube Loader
the ionCube PHP Loader
ionCube Loader
the ionCube PHP Loader
✅ ionCube installation completed for all detected PHP versions.Login as runcloud or any system user (not require root)
cd /home/runcloud/
wget https://raw.githubusercontent.com/codetot-web/runcloud-bash-scripts/refs/heads/main/wp-migration.sh
chmod +x wp-migration.sh./wp-migration.sh runcloud@sample.codetot.com:22 codetot-app./wp-migration.sh ecohome@sample.codetot.com:22 codetot-app codetot-app-new