[root@ns1 ~]# sh /script/cleanup
Execute fixlxphpexe for php56s...
*** Execute Update (cleanup) - BEGIN ***
>>> Execute fixDataBaseIssues() <<<
Fix Database Issues
- Fix admin account database settings
- Set default database settings
- Fix resourceplan settings in database
- Alter some database tables to fit that of Kloxo
- Set default welcome text at Kloxo login page
- Remove default db password if exists
>>> Execute doUpdates() <<<
- Create flag dir
Fix IP Address
- Fix process
Create domain backup dirs
- Create process
- Create OS system user admin
- User admin exists
Fix MySQL root password
- Fix process
Set admin contact email
- Set process
Get Kloxo License info
- Get process
- Create database interface template (Forced)
>>> Execute driverload.php <<<
>>> Execute update_all_slave() <<<
>>> Execute cp_dbfile() <<<
>>> Execute updatecleanup() <<<
Prepare for Kloxo
- OS Create Kloxo init.d service file
- OS Fix programroot path permissions
- OS Restart Kloxo service
Remove Old dirs
- Remove process
Initialize Some Binary files
- Symlink /usr/local/bin/php already exists
Remove lighttpd errorlog
- Remove process
Fix the secure logfile
- Fix process
Clean hosts.deny
- Clean process
Synchronize driver between table and slavedb
- No need synchronize for 'web' - already using 'apache'
- No need synchronize for 'webcache' - already using 'none'
- No need synchronize for 'dns' - already using 'bind'
- No need synchronize for 'pop3' - already using 'courier'
- No need synchronize for 'smtp' - already using 'qmail'
- No need synchronize for 'spam' - already using 'bogofilter'
Update Services Branch List
- Wait to process...
Check for rpm packages
- autorespond-toaster package already installed
- courier-imap-toaster package already installed
- dovecot-toaster package already installed
- daemontools-toaster package already installed
- ezmlm-toaster package already installed
- libdomainkeys-toaster package already installed
- libsrs2-toaster package already installed
- maildrop-toaster package already installed
- qmail-toaster package already installed
- ripmime package already installed
- ucspi-tcp-toaster package already installed
- vpopmail-toaster package already installed
- fetchmail package already installed
- bogofilter package already installed
- spamdyke package already installed
- pure-ftpd package already installed
- webalizer package already installed
- dos2unix package already installed
- rrdtool package already installed
- xinetd package already installed
- lxjailshell package already installed
Initialize /script/ dir
- Initialize processes
Install jailshell to system
- Already exists
Set /home permission to 0755
- Set process
- chown apache:apache FOR /home/kloxo/httpd/ AND INSIDE
- chmod 644 FOR *.php* INSIDE /home/kloxo/httpd/
- chmod 755 FOR *.pl/cgi/py/rb INSIDE /home/kloxo/httpd/
- chmod 755 FOR /home/kloxo/httpd/ AND INSIDE
- chmod 771 FOR /home/kloxo/httpd/
Fix suexec
- Fix process
Install/Fix Services/Permissions/Configfiles
- Set permissions for /usr/bin/php-cgi
- Set permissions for closeinput binary
- Set permissions for phpsuexec.sh script
- Set permissions for /var/lib/php/session/ dir
- Set permissions for /var/bogofilter/ dir
- Kill sisinfoc system process
Execute/remove/initialize/install script
- Execute vpopmail.sh
- Initialize /home/kloxo/httpd/script dir
- Remove /home/kloxo/httpd/script dir
- Set ownership apache:apache for /home/kloxo/httpd/script dir
- Install phpinfo.php into /home/kloxo/httpd/script dir
Remove cache dir
- Remove process
Initialize awstats dirdata
- Initialize process
Update Kloxo database
- Update process
Remove old lxlabs ssh key
- Remove process
Prepare MySQL/MariaDB service
- MariaDB activated
- Updating Main services
Update All packages
- WAIT to process...
- No update found/not installed
Remove /home/httpd/*/httpdocs
- Remove process
Add 'hostname' information to '/etc/hosts'
Initialize some skeletons
- Php files for default web page
- Skeleton for default web page
- robots.txt for default web page
- Php files for disable web page
- Skeleton for disable web page
- robots.txt for disable web page
- Php files for webmail web page
- Skeleton for webmail web page
- robots.txt for webmail web page
- Php files for cp web page
- Skeleton for cp web page
- robots.txt for cp web page
- Skeleton for error web page
- robots.txt for error web page
- chown apache:apache FOR /home/kloxo/httpd/ AND INSIDE
- chmod 644 FOR *.php* INSIDE /home/kloxo/httpd/
- chmod 755 FOR *.pl/cgi/py/rb INSIDE /home/kloxo/httpd/
- chmod 755 FOR /home/kloxo/httpd/ AND INSIDE
- chmod 771 FOR /home/kloxo/httpd/
- Php files for login web page
- Skeleton for panel login web page
- Skeleton for panel root web page
- Files for error web pages
- Skeleton for error web pages
- Copy error web pages to '/home/kloxo/httpd/error'
- No exists user-skeleton
- No exists user-logo
Initialize phpMyAdmin configfile
- phpMyAdmin: Set db password in configfile
Initialize OS admin account description
- Initialize process
Copy all contents from ../file/bind
- Copy to /opt/configs/bind
- Copy etc/named.conf to /etc/named.conf
Copy all contents from ../file/djbdns
- Copy to /opt/configs/djbdns
Copy all contents from ../file/pdns
- Copy to /opt/configs/pdns
- Copy etc/conf/pdns.conf to /etc/pdns/pdns.conf
Prepare PowerDNS database
- Install MySQL and Geo Backend
- Fix MySQL commands in import files
- Generate password
- Add Password to configuration file
Copy all contents from ../file/nsd
- Copy to /opt/configs/nsd
- Copy etc/conf/nsd4.conf to /etc/nsd/nsd.conf
Copy all contents from ../file/yadifa
- Copy to /opt/configs/yadifa
- Copy etc/yadifad.conf to /etc/yadifad.conf
Initialize apache config
- /etc/httpd/conf.d dir already exists
- /opt/configs/apache/tpl dir already exists
- /opt/configs/apache/conf dir already exists
- /opt/configs/apache/etc dir already exists
- /opt/configs/apache/etc/conf dir already exists
- /opt/configs/apache/etc/conf.d dir already exists
Copy all contents from ../file/apache
- Copy to /opt/configs/apache
- Copy etc/conf/httpd.conf to /etc/httpd/conf/httpd.conf
- chown root:root FOR /opt/configs/apache/ AND INSIDE
- chmod 755 FOR *.sh INSIDE /opt/configs/apache/
Initialize lighttpd config
- /etc/lighttpd/conf.d dir already exists
- /opt/configs/lighttpd/tpl dir already exists
- /opt/configs/lighttpd/conf dir already exists
- /opt/configs/lighttpd/etc dir already exists
- /opt/configs/lighttpd/etc/conf dir already exists
- /opt/configs/lighttpd/etc/conf.d dir already exists
Copy all contents from ../file/lighttpd
- Copy to /opt/configs/lighttpd
- Copy etc/conf/lighttpd.conf to /etc/lighttpd/lighttpd.conf
- chown root:root FOR /opt/configs/lighttpd/ AND INSIDE
- chmod 755 FOR *.sh INSIDE /opt/configs/lighttpd/
Initialize nginx config
- /etc/nginx/conf.d dir already exists
- /opt/configs/nginx/tpl dir already exists
- /opt/configs/nginx/conf dir already exists
- /opt/configs/nginx/etc dir already exists
- /opt/configs/nginx/etc/conf dir already exists
- /opt/configs/nginx/etc/conf.d dir already exists
Copy all contents from ../file/nginx
- Copy to /opt/configs/nginx
- Copy etc/conf/nginx.conf to /etc/nginx/nginx.conf
- chown root:root FOR /opt/configs/nginx/ AND INSIDE
- chmod 755 FOR *.sh INSIDE /opt/configs/nginx/
Initialize hiawatha config
- /etc/hiawatha/conf.d dir already exists
- /opt/configs/hiawatha/tpl dir already exists
- /opt/configs/hiawatha/conf dir already exists
- /opt/configs/hiawatha/etc dir already exists
- /opt/configs/hiawatha/etc/conf dir already exists
- /opt/configs/hiawatha/etc/conf.d dir already exists
Copy all contents from ../file/hiawatha
- Copy to /opt/configs/hiawatha
- Copy etc/conf/hiawatha_standard.conf to /etc/hiawatha/hiawatha.conf
- chown root:root FOR /opt/configs/hiawatha/ AND INSIDE
- chmod 755 FOR *.sh INSIDE /opt/configs/hiawatha/
Copy all contents from ../file/varnish
- Copy to /opt/configs/varnish
Copy all contents from ../file/trafficserver
- Copy to /opt/configs/trafficserver
Copy all contents from ../file/squid
- Copy to /opt/configs/squid
Install All Dns servers
- No process for 'bind'
- No process for 'djbdns'
- No process for 'pdns'
- No process for 'nsd'
- No process for 'yadifa'
Inactivate DNS servers
- Inactivate 'bind'
- Inactivate 'djbdns'
- Inactivate 'pdns'
- Inactivate 'nsd'
- Inactivate 'yadifa'
Activate Dns servers
- Activate 'bind' as Dns server
Install All Web servers
- No process for 'apache' ('httpd')
- No process for 'lighttpd'
- No process for 'nginx'
- No process for 'hiawatha'
Inactivate Web servers
- Inactivate 'apache'
- Inactivate 'lighttpd'
- Inactivate 'nginx'
- Inactivate 'hiawatha'
Activate Web servers
- Activate 'apache' as Web server
Update All Php (branch and multiple)
- Update process
Initialize PureFtp service
- Initialize process
- Restart pure-ftpd service
Initialize logrotates
- Initialize process
Copy awstats_index.php to /home/kloxo/httpd/awstats/wwwroot/cgi-bin
Install Webmail chooser
- Install process
Initialize Mail service
- Initialize process
Set All SSL Portions
- Copy 'openssl' config Files
Copy all contents from ../file/openssl
- Copy to /opt/configs/openssl
- Copy 'acme.sh' config Files
Copy all contents from ../file/acme.sh
- Copy to /opt/configs/acme.sh
- Copy 'startapi.sh' config Files
Copy all contents from ../file/startapi.sh
- Copy to /opt/configs/startapi.sh
- Install acme.sh
- Install startapi.sh
- Fix SSL path
- Copy 'httpry' config Files
Copy all contents from ../file/httpry
- Copy to /opt/configs/httpry
- Install httpry
- Fix 'Cron Backup' Files
Set Watchdog defaults
- Set process
Fix services
- Fix dns services
- Fix webcache services
- Fix ssl services
- Fix php services
- Fix web services
- Fix mail-all services
- Fix ftp-all services
- Fix skeleton services
- Fix Hiawatha service
*** Execute Update (cleanup) - END ***
*** Restart services - BEGIN ***
Shutting down MySQL. [ OK ]
Starting MySQL.170719 05:07:19 mysqld_safe Logging to '/var/lib/mysql/ns1.pattola.com.err'.
170719 05:07:19 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
[ OK ]
-------------------------------------------------------------------
Stopping named: [ OK ]
Starting named: [ OK ]
-------------------------------------------------------------------
Stopping php-fpm (PHP Used): [ OK ]
Starting php-fpm (PHP Used): [ OK ]
-------------------------------------------------------------------
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
-------------------------------------------------------------------
*** Process for QMAIL service ***
Stopping qmail-toaster: svscan qmail logging.
qmail-send: no process killed
Starting qmail-toaster: svscan.
-------------------------------------------------------------------
- For help, type '/script/restart-mail [--help|-h]'
-------------------------------------------------------------------
Stopping pure-ftpd: [ OK ]
Starting pure-ftpd: [ OK ]
-------------------------------------------------------------------
*** Restart services - END ***
*** Process Time: 00:00:04:02.242098 (dd:hh:mm:ss:xxxxxx) ***
REMARK:
- run 'sh /script/fixdnsaddstatsrecord' to make sure dns records including
'A record' for 'stats'
- '
http://domain.com/stats' will be redirect to '
http://stats.domain.com'