Search found 54 matches

by Martin
Sat Jan 21, 2017 4:35 am
Forum: Hosting Control Panels
Topic: How to check existence of a file using shell script?
Replies: 2
Views: 3690

Re: How to check existence of a file using shell script?

Example : the below script will check the file /etc/redhat-release and output whether it exists or not. #!/bin/bash if [ -f /etc/redhat-release ] then echo "file exists" else echo"file doesn't exist" fi ------------------------------ Martin N Linux Support Engineer. Nixtree Solutions Managed Full Se...
by Martin
Sat Jan 21, 2017 4:21 am
Forum: Hosting Control Panels
Topic: How to Check whether directory exists using shell script
Replies: 1
Views: 2769

Re: How to Check whether directory exists using shell script

dir=cache if [ -d "$dir" ]; then echo "$dir directory exist on the server" fi ====================== OR #!/bin/bash if [ -d ~/directoryname] then echo "directory exists" ------------------------------ Martin N Linux Support Engineer. Nixtree Solutions Managed Full Server Backups https://www.nixtree....
by Martin
Wed Jan 18, 2017 9:50 am
Forum: Hosting Control Panels
Topic: OpenVZ error : Container start disabled
Replies: 1
Views: 3567

Re: OpenVZ error : Container start disabled

Try the below command, it will start the VPS forcefully Command : vzctl start VPSID --force vzctl start 101 --force ------------------------------ Martin N Linux Support Engineer. Nixtree Solutions Managed Full Server Backups https://www.nixtree.com/managed-backups.php Follow us on : https://twitter...
by Martin
Wed Jan 18, 2017 9:03 am
Forum: Hosting Control Panels
Topic: how to kill an Openvz container?
Replies: 1
Views: 2835

Re: how to kill an Openvz container?

Command : vzctl stop 100 --fast use "--fast" option to kill the container. 100 = this is the VEID ------------------------------ Martin N Linux Support Engineer. Nixtree Solutions Managed Full Server Backups https://www.nixtree.com/managed-backups.php Follow us on : https://twitter.com/nixtree
by Martin
Wed Jan 18, 2017 8:53 am
Forum: Hosting Control Panels
Topic: OpenVZ error - Container already locked
Replies: 1
Views: 2705

Re: OpenVZ error - Container already locked

First delete the lock file : [root@server ~]# rm /vz/lock/101.lck rm: remove regular file `/vz/lock/101.lck’? y Then kill the checkpoint using the below command : [root@server ~]# vzctl chkpnt 101 --kill ------------------------------ Martin N Linux Support Engineer. Nixtree Solutions Managed Full S...
by Martin
Wed Jan 18, 2017 8:41 am
Forum: Hosting Control Panels
Topic: How to change apache port on cpanel server?
Replies: 1
Views: 2850

Re: How to change apache port on cpanel server?

Log in to WHM. Search "Apache non-SSL IP/port" in Tweak settings By default it will be port 80, change the port and save tweak settings. ------------------------------ Martin N Linux Support Engineer. Nixtree Solutions Managed Full Server Backups https://www.nixtree.com/managed-backups.php Follow us...
by Martin
Wed Jan 11, 2017 12:30 am
Forum: Hosting Control Panels
Topic: InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
Replies: 1
Views: 3772

Re: InnoDB: Error: Table "mysql"."innodb_table_stats" not found.

Hello, Drop "innodb_table_stats" table. do the below steps to create the table mysql> mysql> USE mysql; mysql> CREATE TABLE `innodb_table_stats` ( `database_name` varchar(64) COLLATE utf8_bin NOT NULL, `table_name` varchar(64) COLLATE utf8_bin NOT NULL, `last_update` timestamp NOT NULL DEFAULT CURRE...
by Martin
Wed Jan 11, 2017 12:22 am
Forum: Hosting Control Panels
Topic: How to increase email attachment size on cpanel server
Replies: 1
Views: 2804

Re: How to increase email attachment size on cpanel server

Log into your server as root. Edit the exim configuration file vi /etc/exim.conf add the line "message_size_limit = 15M" Save the file and exit. Restart exim service : /scripts/restartsrv_exim ------------------------------ Martin N Linux Support Engineer. Nixtree Solutions Managed Full Server Backu...
by Martin
Mon Jan 09, 2017 7:43 pm
Forum: Hosting Control Panels
Topic: ERROR 1932 (42S02): Table 'mysql.innodb_index_stats' doesn't exist in engine
Replies: 1
Views: 6730

Re: ERROR 1932 (42S02): Table 'mysql.innodb_index_stats' doesn't exist in engine

Hello, First drop the table in mysql database and then create the table. mysql> use mysql; database changed mysql> CREATE TABLE `innodb_index_stats` ( `database_name` varchar(64) COLLATE utf8_bin NOT NULL, `table_name` varchar(64) COLLATE utf8_bin NOT NULL, `index_name` varchar(64) COLLATE utf8_bin ...
by Martin
Mon Jan 09, 2017 7:36 pm
Forum: Hosting Control Panels
Topic: How to increase connection timeout in litespeed ?
Replies: 3
Views: 5136

Re: How to increase connection timeout in litespeed ?

Login to litespeed admin and select configuration. configuration >> Connection >> Connection Timeout (secs). Change this value and click on 'save' ------------------------------ Martin N Linux Support Engineer. Nixtree Solutions Managed Full Server Backups https://www.nixtree.com/managed-backups.php...