Skip to content

codetot-web/runcloud-bash-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

RunCloud - Bash scripts

Author: @khoipro, alongs with Copilot.

The collection of helpful bash scripts to help you manage servers better. Written by me with Copilot suggestions. Tested.

Features

  • Install ioncube
  • Migration WP Site

Requirements

  • OpenLitespeed/Nginx
  • Ubuntu 20, 22 or 24 version

Changelog

  • 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)

Install Ioncube

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.sh

The 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.

Migration WP Site

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

Sample 1: Same application, only different server

./wp-migration.sh runcloud@sample.codetot.com:22 codetot-app

Sample 2: Different appname

./wp-migration.sh ecohome@sample.codetot.com:22 codetot-app codetot-app-new

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages