human choroinic gonadotropin

Archive for the ‘Linux’ Category


 Powered by Max Banner Ads 

package account without emails and public_html contents – cPanel

Tuesday, May 9th, 2017

/scripts/pkgacct –skiphomedir USER

 

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

Friday, May 5th, 2017

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

Thursday, May 4th, 2017

The issue can be fix by run the following command

 

/scripts/restartsrv_queueprocd

 

 

#1273 – Unknown collation: ‘utf8mb4_unicode_520_ci’

Thursday, May 4th, 2017

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

Thursday, May 4th, 2017

1- plesk db  databasename < databasename.sql

or

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

Find and Replace in Linux

Thursday, May 4th, 2017
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

Monday, April 10th, 2017

Run the following command

 

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

 

 

How to RSYNC files between two servers

Wednesday, December 21st, 2016

The below command need to be run in the source server to sync the files to the destination server

rsync -auvP /home/eplusglo/mail –rsh=”ssh -p 55000 ” root@124.216.218.39:/home/alzweac/

in the above command the mail folder will sync to the new server

 

leave a comment if you not understand.

Thanks.

Sort file by size

Friday, November 11th, 2016

du -sh * | sort -rh | head -6

ZIP and UNZIP in Linux Command Line.

Thursday, November 3rd, 2016

Task: Create a Zip File

To create a zip file, enter:

zip filename.zip input1.txt input2.txt resume.doc pic1.jpg

Task: Decompress a zip

To decompress a zip file in Unix, enter:

unzip filename.zip