Windows VPS KVM virtualizor issue

We had been working on installing windows vps on virtualizor

Intermittently its Internet would go off

The issue was due to NIC setting in VPS

We has to set the NIC type in VPS to e1000  to fix this issue

It can be done in Edit  VPS > Advanced Option > Virtual Network Interface Type

Now we see vps working fine

 

 

 

***** FATAL: Failed to download updatenow.static from server: The system cannot update the /var/cpanel/sysinfo.config file. at /usr/local/cpanel/Cpanel/GenSysInfo.pm line 115.

While trying to upgrade cpanel  to new version was getting error

FATAL: Failed to download updatenow.static from server:

The issue was due to corrupt RPM

I used the below fix to resolve this issue


mkdir /root/old_rpm_dbs/

Now move the original RPMs to the new folder

mv /var/lib/rpm/__db* /root/old_rpm_dbs/

Finally rebuild the RPM database

rpm --rebuilddb

Now you can force an update of the cPanel server and it should work again.

/scripts/upcp -force

Failed to connect 1006 VNC virtualizor

While working on one of the nodes which has Virtualizor Software was facing issues accessing VNC . giving error failed to connected 1006

The issue was due to Virtualizor upgrade

Below is the command you need to execute to kill all process using below command for VNC to work

[root@os1126 ~]# kill $(pgrep -f “/usr/local/virtualizor/enduser/themes/default/novnc/utils/websockify”)
[root@os1126 ~]# kill $(pgrep -f “/usr/local/virtualizor/enduser/themes/default/novnc/utils/websockify”)
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec … or kill -l [sigspec]

Now after retrying accessing virtualizor I can see it working fine

“chown: Invalid username: root:Disk”

The server was not allowing login to server even when ssh keys were saved

On rebooting server I could see it and error on screen “chown: Invalid username: root:Disk”

On troubleshooting found error to be due to corruption of /etc/passwd  as this is where all users are saved and due to corruption the user  root was missing in  /etc/passwd

So I got the serve in single user mode and fastboot as only single user mode wont server and would restart

Once I got access to single user I just moved the /etc/passwd to /etc/passwd.bkp and  copied  /etc/paswd.OLD which was in  /etc to /etc/passwd

Now on rebooting server i can see it working fine. 🙂

Parse html as PHP is easyapache 4

 

Normal rule in .htaccess to parse html files as php on easyapache 3 are not working on easyapache 4

#AddType application/x-httpd-php .php .htm .html

#<FilesMatch “\.(htm|html|php)$”>
#SetHandler application/x-httpd-php56
#</FilesMatch>

 

Below is the code which will need to be added In cpanel, multiphp manager will add the following for force a specific
version of php:

# php — BEGIN cPanel-generated handler, do not edit
# Set the “ea-php54” package as the default “PHP” programming language.

AddType application/x-httpd-ea-php54 .php .php5 .phtml

# php — END cPanel-generated handler, do not edit

Make sure the AddType and the selected php version matches! So there we go, simple when you know how.

 

 

[RVSiteBuilder] Cannot connect using curl_init

While working on one of the issues came across the error  cannot connect using curl_init in rvsitebuilder

The issue was a simple fix by skipping DNS checking by creating below file using command

touch /var/cpanel/rvglobalsoft/rvsitebuilder/var/skip_validate_domain

The issue got resolved with this fix

 

 

DNS error bad owner name (check-names) /tmp/cpanel

While working with one client I was getting below error in DNS

DNS error bad owner name (check-names) /tmp/cpanel

So I went ahead and checked DNS zone file using below command

 

root@vps [/var/named]# named-checkzone onlinecsource.com /var/named/onlinesource.com.db
/var/named/onlinesource.com.db:56: _autodiscover._tcp.cheapsalesleads.onlinesource.com: bad owner name (check-names)
/var/named/onlinesource.com.db:57: _autodiscover._tcp.cheapsalesleads.onlinesource.com: bad owner name (check-names)
zone onlinesource.com/IN: loaded serial 2017030209
OK

So the error pointed to line 56 and 57 in zone file

Went ahead and deleted the line 56 and 57 and reload DNS zone file

All works good now

 

 

 

Sorry, the domain xx.xx.104.in-addr.arpa is owned by another user (nobody)

While adding rDNS file in cpanel server I was getting below mentioned error

Sorry, the domain xx.xx.104.in-addr.arpa is owned by another user (nobody)

I have found that at one point in the past this domain was present on this server.

I have removed remnants of the domain from /var/cpanel/users/system and removed references to it from /etc/userdomains and /etc/remotedomains.

I then rebuilt the various caches:

====
/scripts/updateuserdatacache
/scripts/updateuserdomains
====

I am now able to add zone file without any issues

 

Ignore table and dump mysql database

-bash-4.1# mysqldump satmn13_drup189 > satmn13_drup1891.sql
mysqldump: Got error: 1146: Table ‘satmn13_drup189.dr_cache_admin_menu’ doesn’t exist when using LOCK TABLES

-bash-4.1# mysqldump satmn13_drup189 –ignore-table=satmn13_drup189.dr_cache_admin_menu > satmn13_drup1891.sql


Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/onlinesu/public_html/kb/wp-includes/formatting.php on line 4303

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/onlinesu/public_html/kb/wp-includes/formatting.php on line 4303
This entry was posted in Mysql on by .

Incorrect DiskSpace and Information in cPanel

While working on one clients vps for incorrect disk usage  stats for mails

While the default cpanel has no emails the usage stats showed 750MB.

After going through I found a issue which was causing this

The file causing this issue was maildirsize

maildirsize is the file which shows stats information for each account

root@vps [/home/designse]# find . -iname maildirsize
./mail/designserver.net/gordon/maildirsize
./mail/designserver/gordy/maildirsize
./mail/designserver/auctions/maildirsize
./mail/designserver/homemedia/maildirsize
./mail/maildirsize

I went ahead and deleted the file to fix this issue.
root@vps [/home/designse]# cd mail/
root@vps [/home/designse/mail]# rm -rf maildirsize
root@vps [/home/designse/mail]#

Now all stats shows right details