HereWeFix

Easy and Simple Solution

Saturday, July 13, 2019

term environment variable not set ssh top

ERROR:
root@host [/etc]# top -c
TERM environment variable not set.

Solution:
export TERM=xterm

Warning: Cannot modify header information - headers already sent by

ERROR:
Warning: Cannot modify header information - headers already sent by (output started at /home/demo/public_html/contact.php:1) in /home/demo/public_html/contact.php on line 21

Solution:
Remove the whitespace that included on first line in your file.

welcome to emergency mode after logging in type journalctl

While boot your linux based system or laptop or server you will encounter this error. This issue will occur because of unused disk entry in fstab file.

ERROR:
Welcome to emergency mode! After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to
try again to boot into default mode.
Give root password for maintenance
(or type Control-D to continue):

Solution:
1.Open fstab and check for the invalid or unused entry.
2.Remove the entry you found.
File location : /etc/fstab
3.Now try to boot your

Saturday, April 13, 2019

Electronic Product Buy Information

I had a experienced through on my knowledge & suggesting the best.
      
```#LAPTOP```
•Buy: Lenovo,Dell,Apple.
•Don’t: Hp,Asus,Acer,Toshiba,Samsung,Sony and others.

```#MOBILE```
Check and update your mobile update frequently.
•Buy: Apple,Vivo,One Plus,Basic Nokia,New Honor,New Redmi/MI, Blackberry.
•Don’t: Oppo,Realme,Samsung,Huawei,Sony,Moto,Asus,Acer,Google Pixel,Lava,LG,Micromax,Nokia and others.

```#PENDRIVE```
Check and buy high  speed read/write pendrives.
•Buy: Kingston,Transcend,Strontium
•Don’t: Hp,Sandisk,Sony,iBall,PNY,Amazon Solimo,Toshiba,others.

```#MEMORYCARD```
Check and buy high speed read/write cards and use 10th class cards.
•Buy: Kingston,Transcend,Sandisk Ultra / Extream,Sony.
•Don’t: Samsung,Strontium,Hp,Toshiba and others.

```#HEADPHONE```
•Buy: Sony,Jbl,Boss,Sennheiser,Boat,Mivi,Skullcandy.
•Don’t: Samsung,Hp,iBall,Apple(best but ear will pain)and others.

```#HARDDISK```
•Buy: Seagate,WD,Transcend.
•Don’t: Hp,Toshiba,Sony,Samsung and others.

```#ACCESSORY```
•Buy: Logitech,Amazon Basics,Belkin,Dell.
•Don’t: Low/cheap brands.

```#ANTIVIRUS```
•Buy: Eset / Nod32,eScan.
•Don’t: Kaspersky,Avira,Avast,Mcafee,Quick Heal,BitDefender,K7,MaxSecure,BullGuard,TrendMicro.

```#PENTABLET```
•Buy: Apple,Surface,Wacom.

```#SMARTTV```
•Buy: Samsung,Mi,Sony,VU.
•Don’t: LG,Micromax,Onida,Panasonic and others.

Wednesday, January 17, 2018

No Valid CloudLinux License Found

You will get an error while open LVE Manager option on whm panel.
Error:
No Valid CloudLinux License Found
We couldn't validate your CloudLinux License since Aug 22, 17. Please, make sure your license correct.
If your server is licensed by IP, please check if your IP license valid here.
check again If you need help with your license - please, contact our support department at https://cloudlinux.zendesk.com/hc/requests/new
If you need to purchase a license, you can buy it from http://www.cloudlinux.com or contact sales@cloudlinux.com
Solution:
1.Login your server using SSH and run the following command.
/usr/sbin/clnreg_ks --force
2.Once you completed your LVE (cloudlinux) re-licensed successfully.

Monday, January 15, 2018

dpkg: error processing package teamviewer:i386

Below error occurs while install teamviewer on ubuntu.
Error:
root@demo:/download# dpkg -i teamviewer_12.0.76279_i386.deb 
Selecting previously unselected package teamviewer:i386.
(Reading database ... 247287 files and directories currently installed.)
Preparing to unpack teamviewer_12.0.76279_i386.deb ...
Unpacking teamviewer:i386 (12.0.76279) ...
dpkg: dependency problems prevent configuration of teamviewer:i386:
teamviewer:i386 depends on libc6 (>= 2.11).
teamviewer:i386 depends on libgcc1.
teamviewer:i386 depends on libasound2.
teamviewer:i386 depends on libdbus-1-3.
teamviewer:i386 depends on libexpat1.
teamviewer:i386 depends on libfontconfig1.
teamviewer:i386 depends on libfreetype6.
teamviewer:i386 depends on libjpeg62.
teamviewer:i386 depends on libsm6.
teamviewer:i386 depends on libxdamage1.
teamviewer:i386 depends on libxext6.
teamviewer:i386 depends on libxfixes3.
teamviewer:i386 depends on libxinerama1.
teamviewer:i386 depends on libxrandr2.
teamviewer:i386 depends on libxrender1.
teamviewer:i386 depends on libxtst6.
teamviewer:i386 depends on zlib1g.
dpkg: error processing package teamviewer:i386 (--install):
dependency problems - leaving unconfigured
Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
Errors were encountered while processing:
teamviewer:i386
Solution:
apt --fix-broken install -y

Friday, January 12, 2018

cURL cannot communicate with license server

While you install the license in your plesk panel you will encounter an error like below.
Error: 
cURL cannot communicate with license server https://id-00.kaid.plesk.com:5224/ (195.214.233.80): transfer closed with outstanding read data remaining(18)
Solution:
1.Ping the license server URL id-00.kaid.plesk.com and add the IP and license server in hosts file.
2.Open host file and add the line C:\Windows\System32\drivers\etc\hosts
   195.214.233.80 id-00.kaid.plesk.com
3.Allow the port 5224 in your windows firewall.

Wednesday, January 10, 2018

Enter the security code for root

Due to security policies enabled in your whm panel , it asks you to enter the code.
Error:
Enter the security code for “root” 
Solution:
1.Open your /var/cpanel/cpanel.config file and add the below line
SecurityPolicy::TwoFactorAuth=1
               change to
SecurityPolicy::TwoFactorAuth=0
2.Once saved the file restart cpanel service.
service cpanel restart

Monday, January 8, 2018

disable cphulkd in cpanel

To disable cphulkd on cpanel server from cpanel and command line.
From browser:
https://www.domain.com:2087/scripts2/doautofixer?autofix=disable_cphulkd
Replace domain.com instead of your server hostname  or ip address
From SSH:
/usr/local/cpanel/bin/cphulk_pam_ctl --disable
/usr/local/cpanel/etc/init/stopcphulkd

Sunday, January 7, 2018

The test connection to the database server has failed because of network problems

Error: 
The test connection to the database server has failed because of network problems:
Try to establish connection failed
Solution:
1.Login into your server through RDP.
2.Open SQL SERVER CONFIGURATION MANAGER >> SQL Server Network Configuration >>
Protocols for MSSQLSERVER.
3.Enable TCP/IP and Named Pipes.

Could not resolve host: apt.sw.be; Name or service not known

Error:
failure: repodata/repomd.xml from rpmforge: [Errno 256] No more mirrors to try.
http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: apt.sw.be; Name or service not known"

Solution:
yum --disablerepo=rpmforge
yum-config-manager --disable rpmforge
yum-config-manager --save --setopt=rpmforge.skip_if_unavailable=true

no response from subprocess cloudlinux

Error:
Internal Server Error 500
No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/CloudLinux.cgi): The subprocess reported error number 2 when it ended.
cpsrvd/11.62 Server at 22.44.11.53

Solution:
Repair Duplicate Cpanel RPMS and run cpanel update.
/usr/local/cpanel/scripts/autorepair fix_duplicate_cpanel_rpms
/usr/local/cpanel/scripts/upcp --force

Cannot connect to Gmail : Can not authenticate to IMAP server

The below error when try access gmail from php website.

Error:
Cannot connect to Gmail : Can not authenticate to IMAP server: [ALERT] Please log in via your web browser: https://support.google.com/mail/acco

Solution:
1.Login to your gmail account, enable imap.
2.Let the access here first: https://www.google.com/settings/security/lesssecureapps
3.Go to: https://accounts.google.com/b/0/DisplayUnlockCaptcha and enable access.

wp_remote_post() failed wordpress

Due to fopen php extension disabled on your phpversion, you will receive an error on your website.
Error:
wp_remote_post() failed. Some theme features may not work. Please contact your hosting provider.

Solution:
Create or edit php.ini file in your website folder and add the below line and save the file.
allow_url_fopen = on
Real Time Analytics -->