5kits

SSH key (passwordless)

March 21st, 2019 by ayad

$ ssh-keygen -t rsa # press enter on all prompts
$ ssh-copy-id -i ~/.ssh/id_rsa[IP address]

the name cannot be matched to a name in the address list

April 6th, 2018 by ayad


if you received this error. you need to update your outlook and reboot your computer. i have encountered this issue for few days with exchange 2013 and Microsoft outlook 2016 . configuring email as exchange.

i used this outlook update    https://www.microsoft.com/en-us/download/confirmation.aspx?id=54546

then the issue is fixed.

 

Change a user name and email address in Office 365

May 22nd, 2017 by ayad


 

Please refer to this article

 

https://support.office.com/en-us/article/Change-a-user-name-and-email-address-in-Office-365-fb5ac074-e203-4e1f-9843-b9d1a3e03297

 

package account without emails and public_html contents – cPanel

May 9th, 2017 by ayad


/scripts/pkgacct –skiphomedir USER

 

You must enable the PECL memcached or memcache extension to use memcache.inc. cpanel

May 5th, 2017 by ayad


Solutions

 

yum install ea4-experimental
yum install ea-php56-php-memcache
yum install ea-php56-php-memcached
yum install ea-memcached

That should fix the issue. i have tried it and fixed my issue. 
Reference

https://forums.cpanel.net/threads/installing-memcache-and-memcached-with-easyapache4.566261/

queueprocd isn’t running? at /usr/local/cpanel/Cpanel/TaskQueue/Manager.pm line 150

May 4th, 2017 by ayad


The issue can be fix by run the following command

 

/scripts/restartsrv_queueprocd

 

 

#1273 – Unknown collation: ‘utf8mb4_unicode_520_ci’

May 4th, 2017 by ayad


1) Click the “Export” tab for the database

2) Click the “Custom” radio button

3) Go the section titled “Format-specific options” and change the dropdown for “Database system or older MySQL server to maximize output compatibility with:” from NONE to MYSQL40.

4) Scroll to the bottom and click “GO”.

I’m not certain if doing this causes any data loss, however in the one time I’ve tried it I did not notice any. Neither did anyone who responded in the forums linked to above.

 

Reference

http://stackoverflow.com/questions/29916610/1273-unknown-collation-utf8mb4-unicode-ci-cpanel/29939906#29939906

Restore Database Plesk Oynx – Linux command line

May 4th, 2017 by ayad


1- plesk db  databasename < databasename.sql

or

2- mysql -uadmin -p”`cat /etc/psa/.psa.shadow`” databasename < databasename.sql

Find and Replace in Linux

May 4th, 2017 by ayad

sed -i 's/original/new/g' file.txt

  • sed = Stream EDitor
  • -i = in-place (i.e. save back to the original file)
  • The command string:
    • s = the substitute command
    • original = a regular expression describing the word to replace (or just the word itself)
    • new = the text to replace it with
    • g = global (i.e. replace all and not just the first occurrence)
  • file.txt = the file name
 

Reconfigure Nginx in Plesk Onyx Centos 7

April 10th, 2017 by ayad


Run the following command

 

/usr/local/psa/admin/bin/httpdmng –reconfigure-all