MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Tips and Tricks => Topic started by: zenkul on 2013-02-28, 11:52:55
-
There is some example maintenence command ........
to know the configuration of the installed
sh /script/sysinfo
restarting all services
sh /script/restart-services
sh /script/restart-all
example restarting per-item
/etc/init.d/named restart
/etc/init.d/httpd restart
/etc/init.d/nginx restart
/etc/init.d/php-fpm restart
/etc/init.d/mysqld restart
/etc/init.d/kloxo restart
example fix
sh /script/fixweb
sh /script/fixphp
sh /script/fixdns
sh /script/fixwebmail
sh /script/fixmail
sh /script/fixvpop
# for all
sh /script/fix-all
Clean-Up for affected software, especially after updating kloxo-mr
sh /script/cleanup
manual alternative fix permission & ownership at kloxo-mr menu
sh /script/fix-chownchmod
example command for optimize & repair mysql database
sh /script/mysql-optimize --select=repair
sh /script/mysql-optimize --select=optimize
Clear Cache (*not work in OpenVz VPS)
sh /script/clearcache --select=1
Manual alternative apache optimize
### for mod_php select optimeze
sh /script/apache-optimize --select=optimize
### for suphp/fcgid/php-fpm
sh /script/apache-optimize --select=default
Reset mysql root password
sh /script/reset-mysql-root-password <newpassword>
Reset Kloxo admin password login:
sh /script/resetpassword master <newpassword>
another way to convert database storage engine (myisam or innodb)
sh /script/mysql-convert --engine=MyISAM
sh /script/mysql-convert --engine=InnoDB
### MariaDB only convert to aria
sh /script/mysql-convert --engine=aria
RkHunter Check (security)
rkhunter --check
check memory
free -m
any other :?:
-
Add also for fixwebmail, fixmail and fixvpop. Also resetpassword and reset-mysql-root-password.
And don't forget 'sh /script/apache-optimize --select=optimize' (for using mod_php) or 'sh /script/apache-optimize --select=default' (for suphp/fcgid/php-fpm).
-
### backup
/script/backup --class=client --name=admin
### restore
/script/restore --restore --accounts=all <backup-file-path>
Have anyone actually succeeded in restore like this. I never did, even on completly new system and even on old Kloxo.
-
### backup
/script/backup --class=client --name=admin
### restore
/script/restore --restore --accounts=all <backup-file-path>
Have anyone actually succeeded in restore like this. I never did, even on completly new system and even on old Kloxo.
not work
:D so i deleted this item above, to reduce confuse
maybe coming soon ..............
-
I could be very cool feature backup with command line, maybe Mustafa could look into it when he have time?
-
at stuck command line, is automatic replace old file, it nice for cron job scheduled back-up, ... :roll: but sadly not work
just backup/restore at menu kloxo or other method
never mind, kloxo-mr so far so good
hope MR always healthy
-
how to switch fmpt-event event suphp?
-
can i use convert script "sh /script/mysql-convert --engine=InnoDB" only for selected database?
what the option command to do that?
-
eh nevermind, i saw the script and got this option:
sh /script/mysql-convert --engine=InnoDB --database=<databasename>
thanks kloxo-mr ;)
-
Most scripts will work with '--help'.
-
restart hiawatha failed
[root@hendiana ~]# /etc/init.d/hiawatha restart
Stopping Hiawatha web server: [FAILED]
Starting Hiawatha web server: Error binding 0.0.0.0:80
[FAILED]
[root@hendiana ~]#
gimana ya pak?
-
Kalau restart, gunakan 'sh /script/restart-web y' daripada langsung restart. Jika pakai restart-web akan tahu mungkin ada webserver lain yang mengganggu. Begitu.
-
[root@hendiana ~]# sh /script/restart-web y
error reading information on service phpm-fpm: No such file or directory
*** Process for PHP-FPM service ***
- Process: restart
Stopping php-fpm: [FAILED]
Starting php-fpm: [26-May-2016 23:59:37] ERROR: Unable to globalize '/opt/configs/php-fpm/conf/php/*.conf' (ret=2) from /etc/php-fpm.conf at line 18.
[26-May-2016 23:59:37] ERROR: failed to load configuration file '/etc/php-fpm.conf'
[26-May-2016 23:59:37] ERROR: FPM initialization failed
[FAILED]
-------------------------------------------------------------------
*** Process for HIAWATHA service ***
- Process: restart
Stopping Hiawatha web server: [FAILED]
Starting Hiawatha web server: Error binding 0.0.0.0:80
[FAILED]
-------------------------------------------------------------------
- For help, type '/script/restart-web [--help|-h]'
[root@hendiana ~]#
-
Coba ulangi 'sh /script/cleanup'.