Archive for the ‘Linux’ Category

httpd status code using curl

Monday, May 30th, 2022
curl -o /dev/null -s -w "%{http_code}\n" http://localhost

show ip in linux

Sunday, May 29th, 2022

ip a |grep “inet 10” |awk ‘NR==1{print $2}’ |sed -r ‘s/\/24/ /g’

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 cpanel

Friday, May 5th, 2017



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. 

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

Thursday, May 4th, 2017

The issue can be fix by run the following command





#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.



Restore Database Plesk Oynx – Linux command line

Thursday, May 4th, 2017

1- plesk db  databasename < databasename.sql


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@

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


leave a comment if you not understand.