To add another Manager/mgr to Ceph using the Orchestrator: To add another Monitor/mon to Ceph using the Orchestrator:
Add Manager/mgr or Monitor/mon Ceph Orchestrator
Add/Zap OSD using Ceph Orchestrator
To add an OSD using Ceph Orchestrator: Replace hostname-of-osd with the hostname of the osd server. Replace /dev/sda with the path of the drive you’re trying to add. To Zap/clean…
How to find DirectAdmin Mysql root password
Simply open the following file to find your DirectAdmin MySQL root password:
Compress/Reduce PDF size Linux terminal
Reduce the size of a pdf file from the Linux terminal using Ghostscript:
Find chmod number/numeric value for specific file
To find the permissions of a file in numeric format (i.e 644, 755 etc), run the following command:
Add WP_MEMORY_LIMIT to all WordPress installations cPanel
cPanel has a neat tool called wp-toolkit which helps to secure and update WordPress installations, themes, and plugins. The trouble is that wp-toolkit updates will fail with memory limit issues…
Harden CloudLinux – Symlink protection
CloudLinux has some handy settings to protect against symlink race conditions. Run the following commands to insert the necessary protections in /etc/sysctl.conf: If you’re running cPanel, you can add the…
Change CXS scan to automatically change folder permissions from 777 to 755
By default, CXS daily and weekly scans will let you know which directories are world writable (777), but it won’t change these. You need to instruct CXS in the scan…
Append text to file if it doesn’t exist Sed terminal
Assume you wanted to add the text “mytext” to a file if it doesn’t exist: -i writes the output to the input file. If this isn’t specified, output is written…
Replace text in file with Sed terminal
Assume you wanted to replace “abc” with “def” in a file, you can do so using sed as follows: -i tells sed to write the contents to the input file.