Pages

Monday, 30 December 2013

Force Delete a Node [SolusVM]

If at any point you find you have an orphaned slave node linked to your master, you can delete it by running the following command on the master node:

From SSH


php /usr/local/solusvm/scripts/deletenode.php --level=force --comm=delete --id=[NODEID]

Replace [NODEID] with the id of the node shown in solusvm

Message is locked

When trying to remove an email from the queue you get:

# exiqgrep -o 86400 -i | xargs exim -Mrm
Message 1O8o3N-0000Gc-K8 is locked

 Solution, stop exim, remove that specific email and start exim again.

# /etc/init.d/exim stop
Shutting down exim:                                        [  OK  ]
Shutting down spamd:                                       [  OK  ]

# exim -Mrm 1O8o3N-0000Gc-K8
Message 1O8o3N-0000Gc-K8 has been removed


# /etc/init.d/exim start
Starting exim:                                             [  OK  ] 
 

Default page for accounts [cPanel]

Hey,

Ever wanted to add default page for the newly created account in your server? In WHM, look for "Account Functions" and choose "Skeleton Directory". This will show you where your directory is.
Anything you add to your Skeleton Directory will automatically be added to the users directory when you create a new account.

for example, if you place a default HTML page within the "public_html"
sub-directory then it will be included within the public_html directory of the user's new account upon creation.

Usually it's located in : /root/cpanel3-skel/public_html

Give a try :)

Saturday, 20 July 2013

LINUX GUIDE RESET PASSWORD FOR ZADMIN [in zpanel X]

#######################################################
# LINUX GUIDE RESET PASSWORD FOR ZADMIN [in zpanel X] #
#######################################################

If you need the mysql root password look in :

/etc/zpanel/panel/cnf/db.php

If you need the zadmin password reset for the panel then use :
mysql -u root -p
enter password from db.php

mysql> USE zpanel_core;
mysql> UPDATE x_accounts SET ac_pass_vc = '3a20eb1aba49463ac3f76e1e9fea3957' WHERE ac_user_vc = 'zadmin';
mysql> exit

This will reset the password of account zadmin in the panel to zadmin

Friday, 30 November 2012

Updating the Socialengine License Key from a MySQL command


You will need to execute the following SQL query on your database:


 UPDATE `engine4_core_settings` SET value='________' WHERE `name`='core.license.key' LIMIT 1;

Be sure to replace "1234-1234-1234-1234" in the above query with your license key

Reference : support.socialengine.com