WHM/cPanel is asking for a reboot while KernelCare is used

Posted in Apache | Leave a comment

Incorrect kernel name release is shown in WHM/cPanel.

/var/cpanel/sysinfo.config was not updated properly during the latest kernel change.

 

To fix this issue you need move/remove this config file:

# mv /var/cpanel/sysinfo.config /var/cpanel/sysinfo.config.bak

and recreate it by running:

# /scripts/gensysinfo
# /scripts/restartsrv_cpsrvd

In case if you will receive the error: “”ERROR: The system cannot update the /var/cpanel/sysinfo.config file because it cannot determine your distribution’s major version.” – please run the following command:

rpm -qf --queryformat '%{VERSION}\n' /etc/redhat-release

Output other than the numbers 6 or 7 indicates a problem and you need open a support ticket and send all this info.
Posted in Apache | Leave a comment

Sloved LVE info Database Error

CloudLinux LVE Manager doesn’t show anything on statistics tab, lveinfo utility displays errors.

If you see errors while running lveinfo command-line tool and the last lines looks like this:

File "/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/default.py", line 436, in do_execute 
cursor.execute(statement, parameters) 
sqlalchemy.exc.DatabaseError: (DatabaseError) database disk image is malformed u'SELECT lve_stats2_servers.lve_version \nFROM lve_stats2_servers \nWHERE lve_stats2_servers.server_id = ?' ('0195404a-a',) 
Sentry is attempting to send 1 pending error messages

Waiting up to 10 seconds

Press Ctrl-C to quit Means that LVE stats database is corrupted.

FIX:-

Please follow these steps to backup and rebuild database and restore LVE statistics functionality:

# service lvestats stop
# tar -zcvf /root/lveinfo_backup_$(date +%Y-%m-%d).tar.gz /var/lve/
# mv /var/lve/lvestats2.db{,.old}
# lve-create-db --recreate
# service lvestats start
Posted in Apache | Tagged , | Leave a comment

How to delete all Trash, Spam and Junk on cPanel Centos server

Let’s create a new bash script:

vi  /root/delete_all_junk.sh

Now paste the following into the newly created file, and then save and exit:

#!/bin/bash
MAILDIRS=$(find /home/*/mail/*/* -maxdepth 0 -type d)
INBOXFOLDERS=(.Trash .Junk .Spam .Low\ Priority .cPanel\ Reports)
for basedir in $MAILDIRS; do
for ((i = 0; i < ${#INBOXFOLDERS[*]}; i++)); do
for dir in cur new; do
[ -e “$basedir/${INBOXFOLDERS[$i]}/$dir” ] && (
echo “Processing $basedir/${INBOXFOLDERS[$i]}/$dir…”
find “$basedir/${INBOXFOLDERS[$i]}/$dir/” -type f -mtime +30 -delete
)
done
done
done
/scripts/generate_maildirsize –verbose –allaccounts –force –confirm

Let’s make the newly created file executable:

chmod +x /root/delete_all_junk.sh

Then you can simply execute the file and it will do some clean up:

sh /root/delete_all_junk.sh

To change the amount of days look at the following line:

find “$basedir/${INBOXFOLDERS[$i]}/$dir/” -type f -mtime +20 -delete

and change the 20 for something else, depending on what you want.

Posted in Apache | Leave a comment

Hiding and Changing Plesk GUI Elements to yours

Changing SSL/TLS Certificate Seller’s URLs

To change the URLs of the Buy SSL/TLS Certificate and View Certificates buttons to “https://www.example.com”, run the following command:

Plesk for Linux

plesk bin panel_gui -p -cert_purchasing_url https://www.example.com

Plesk for Windows

"%plesk_dir%\bin\panel_gui.exe" -p -cert_purchasing_url https://www.example.com
Changing the URL of the View Services Button

To change the URL of the View Services button to “https://www.example.com”, run the following command:

Plesk for Linux

plesk bin panel_gui -p -mpc_portal_url https://www.example.com

Plesk for Windows

"%plesk_dir%\bin\panel_gui.exe" -p -mpc_portal_url https://www.example.com
Changing Domain Name Registrar’s URLs

To change the URL of the Register Domain Names button to “https://www.example.com” , run the following command:

Plesk for Linux

plesk bin panel_gui -p -domain_registration_url https://www.example.com

Plesk for Windows

"%plesk_dir%\bin\panel_gui.exe" -p -domain_registration_url https://example.com

 

To change the URL of the Manage Domain Names button to “https://www.example.com”, run the following command:

Plesk for Linux:

plesk bin panel_gui -p -domain_management_url https://www.example.com

Plesk for Windows:

"%plesk_dir%\bin\panel_gui.exe" -p -domain_management_url https://example.com

Posted in PLESK, Plesk, plesk panel | Tagged | Leave a comment

How to take away your IP from the Outlook blacklist

If you’re having trouble sending emails to any of the subsequent Outlook’s domain names:

live.com
msn.com
hotmail.com
outlook.com

or having problems causing emails to office 365 recipients, then it’s possibly that your ip has been blacklisted by Outlook (Microsoft), and you may need to get it delisted before your emails can reach any Outlook or workplace 365 users.

Before you begin, make sure to investigate the explanation why your IP (or IPs) got blacklisted within the 1st place.

A good place to begin would be to Blacklist Check your ip and domain/hostname, to form sure it’s not blacklisted on other public RBLs. If the IP/domain is blacklisted anyplace else, make sure to handle those delistings 1st, before you apply for delisting at Outlook.

First and foremost, before proceeding with any delisting procedures, ensure to mend the problems that got you blacklisted within the 1st place. This step is extremely necessary, and if you are doing not fix the problem that got you blacklisted, you’ll simply find yourself being blacklisted again shortly once obtaining delisted.

In order to raise Outlook for delisting your ip address, you’ll 1st need to access these links:

https://support.live.com/eform.aspx?productKey=edfsmsbl3&ct=eformts&scrx=1
https://sender.office.com/

Carefully browse and submit the form situated at the links above.

It may take the Outlook delivery support team a while to get back to you with a solution on your request, so it’s important to be patient.

Posted in Mail | Tagged , , | Leave a comment